So I’ve got a daily automation that does some analysis with Claude Code. Started out using claude -p , which works great, except after June 15, 2026 it bills against a separate credit pool instead of my Max subscription. So now I’d be watching spend like a hawk. I was already starting to stress out about this until I came up with an idea: why not just launch the normal interactive TUI inside a detached tmux pane and pipe the prompt in. Same unattended job, but as far as Claude Code is concerned it’s a regular interactive session, so it stays on the subscription. The flow is dead simple: cron kicks off the tmux session, the agent does its thing and writes output to a file, drops a done marker when it’s finished, and a wrapper script picks it up. Is it perfect? Nope. It for sure can’t do everything claude -p can, since you’re parsing a TUI instead of getting clean structured output, so it’s a bit hacky. But desperate times, you know? What you guys think about this approach? Has anyone tried it before? submitted by /u/TutorDry3089
Originally posted by u/TutorDry3089 on r/ClaudeCode
