Claude Code adds built-in flags to auto-create tmux sessions for coding agents
Recent versions of Claude Code support a `claude --worktree --tmux` command that automatically creates both a git worktree and a tmux session for an AI coding agent, rather than requiring developers to wire this up manually. The guide explains that tmux's persistence, multi-session management, and external scriptability (via send-keys and capture-pane) are what make it a popular backbone for running and orchestrating multiple coding agents.
GoKawiil's interpretation of the reporting above, not reported fact.
Built-in tooling for session and worktree creation could reduce the amount of custom scripting developers need to orchestrate multiple AI agents, lowering the barrier to running several isolated coding tasks in parallel. The piece suggests that while tmux handles basic persistence and scripting well, there is a 'ceiling' to what it can do for more complex agent-orchestration needs, implying developers may eventually need additional tooling beyond tmux.
- Claude Code now offers `--worktree --tmux` flags to auto-create a git worktree and tmux session in one command.
- tmux's core value for AI agents is session persistence across disconnects, multi-session management, and external scriptability via send-keys/capture-pane.
- The guide frames built-in Claude Code tooling as a starting point, followed by manual tmux techniques, and finally tmux's inherent limitations for agent orchestration.
Raspberry Pi 4 Model B (8GB) — A small always-on Linux box is perfect for hosting tmux sessions that run your Claude Code agents around the clock, independent of your laptop's uptime. Keep SSH-accessible sessions persistent on dedicated hardware so you can detach, reconnect from anywhere, and let long-running agent tasks keep humming.
See Raspberry Pi 4 Model B (8GB) on Amazon → Affiliate link — we may earn a commission on purchases, at no extra cost to you. Product picked by AI based on this article; it is not a tested recommendation.Source: crystl.dev, 2026-10-19
Published there as: “Tmux and Claude Code: Sessions, Send-Keys, and the Ceiling”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.