Claude Code now spins up a git worktree and tmux session with one flag
Tmux and Claude Code: Sessions, Send-Keys, and the Ceiling

Tmux keeps long-running coding agents alive through closed terminals and dropped SSH links, and lets you script them with send-keys and capture-pane. Recent Claude Code versions bundle the basics: claude --worktree --tmux creates an isolated worktree and a session in one command. The guide then covers what the flag doesn't reach — per-project session naming, pane layouts, a tuned .tmux.conf, reliable send-keys patterns, and a status-line monitor — before showing exactly where tmux stops.
The tmux server is just a process owned by your user. Nothing about tmux makes it survive a reboot, and a session's scrollback is lost when the server stops.
- piro0919
I don't use tmux. I run Claude Code in Cursor windows, and each window title shows the folder name, so that's how I tell them apart. It rarely gets confusing, and an app I built for myself made it a lot easier.
- zackham
Like others here I created my own terminal multiplexer as well. Daemon that holds all sessions, seamless binary upgrades so those sessions never get lost, everything recorded so recovery is always possible, thin client mode so laptop has a native app that connects to daemon, and a wasm responsive webui with transcription so I can carry on with sessions from phone. Claude/codex sessions started with a uuid so they can be killed/resumed at will (mine autosleep after 12h inactivity to free resouces). CLI allows agent control of everything for a harness independent implementation of claude's channels. A few friends have forked and adopted it as their daily driver. Similar organization to herdr wrt spaces to organize sessions. Optimized for speed/bandwidth when running in thin client mode.
- f311a
This website is so hard to read on a 15" retina screen.
The text content occupies like 20% of the screen, the rest is empty.
Resizing the window helps.
- thomas_witt
I really liked Tmux and Zellij for the time being, but Herdr does it all so much better out of the box when it comes to agentic coding. I haven't found something I can do with tmux/zellij but can't do with herdr.
- blfr
You can just install Claude Code on the server and drive it from Claude Desktop via remote control. That way you can control Claude Code on mutiple servers straight from your Claude Desktop, Mobile or Web, and stay fully within Anthropic tools.
Everything works: you get the native view of subagents, you can upload files and images, fork threads, etc.
The massive upside is that the actual work happens on the server so you can close your laptop and it will continue plus it will not fry your thighs. The advantage over sessions (which I haven't tried but theoretically sound) is that you can configure Claude's environment on the server however you like. Give it any tools you need, ssh access to other machines, sudo, whatever.
The only downside is that every new project requires a setup step on the server (to add the systemd service) where you will develop it since Claude can only handle one server per directory. Claude will handle this step however if you give it ssh access to your server.
The machines show up nicely in Claude Desktop/Mobile/Web, and repos/projects are in a dropdown. Unless you work on very many projects at the same time, this setup is golden.