Manage multiple Claude Code sessions
The short answer: you need to see what every session is doing, and to know when one needs you. amux does that from a single install, on one computer or several, and on your phone. Claude Code’s built-in agent view does it for Claude Code sessions on one computer. tmux keeps sessions running, but can’t tell you which one is waiting.
Where it goes wrong
You’re working on Tally, a small accounting app. You ask Claude Code to write a database migration, and while it reads the schema you open a second terminal to chase a flaky sync test. Then a third, for the checkout redesign.
Twenty minutes later you have three windows and no clear picture. The migration has been waiting ten minutes for you to approve its plan. The flaky test was fixed a while ago. You only find this out by clicking through each window in turn.
Why it happens
A session you start by running claude lives in its terminal. It
ends when that terminal closes,
and a session waiting for you looks much like one still working until you go
and read it.
So whichever tool you choose, you’re after three things:
- Every session in view, with what each one is doing.
- A signal when one of them needs you.
- Sessions that outlive their window, so closing one doesn’t stop the work.
Without amux
Agent view
Agent view is Claude Code’s own
list of sessions, and it’s already installed. Run claude agents, type a task
and press Enter to start a session in the background. From your shell,
claude --bg "find out why the sync test is flaky" does the same, and /bg
moves a session you already have open into the list.
Sessions are grouped by state, such as Needs input and Working. A background service runs them, so they carry on after you close the view or the terminal.
It covers all three needs on one computer. It stops at these edges:
- It’s a research preview, so its interface and keys may change.
- It runs sessions on your machine, and it’s for Claude Code only.
- Sessions you have open in other terminals don’t appear until you background them.
tmux
tmux keeps each session in a window that outlives your terminal, and survives a dropped SSH connection too, and it can show several sessions at once, in panes. You set it all up by hand, and learn its keys.
tmux new -s tallyRun claude in it. Ctrl+B then c opens another window, and Ctrl+B then
w lists them. Naming each session helps: claude -n flaky-sync-test starts
one, and claude --resume flaky-sync-test brings it back later.
tmux doesn’t know what’s happening inside a window, so it can’t tell you which session is waiting. For that, set up a notification hook. You still can’t see what each session is doing at a glance, though community dashboards built on tmux add that.
With amux
amux does the job of that tmux setup without the setup. Every agent keeps running when you close the terminal, and because amux understands what each one is doing, it can tell you which ones need you. That’s worth having on one computer. It also goes further than agent view or tmux. Codex works the same way as Claude Code, your other computers join in, and you can answer any agent from your phone.
Your agents run on your own computers, on your own Claude Code or Codex subscription. You need Claude Code installed and signed in first. Then install amux and open it:
curl -fsSL https://amux.sh/install | shamuxPress n, type a task, and press Ctrl+Enter to start the agent and stay on the list, ready to start the next. Or start them from your shell, in the project’s folder:
amux new claude --name db-migration --prompt "Add the invoices table"amux new claude --name checkout-redesign --prompt "Redesign the checkout page"These two share a folder, so they could overwrite each other’s changes. On a real project, give each agent that edits files a worktree of its own.
A slow test suite might suit a bigger computer. The amux new command only
starts agents on the computer you run it on, so use the list for this: press
n, type the task, then press Ctrl+S followed by h to pick another
computer you’ve paired, a to pick
Claude or Codex, or d to pick the folder.
Here’s Tally’s list a little later, across three computers. The migration is on
a laptop, the checkout redesign is on this computer, and the flaky test went to
Codex on a computer called build:
- Needs you holds the agents waiting on you, with what each one is asking. Here, the migration’s plan is at the top instead of buried in a window.
- Live holds agents working, or idle and ready for more, and ones that have finished until you say you’re done with them.
- Settled holds the agents you’re done with. It starts folded.
Press Enter on a row to open its chat. A question takes the place of the message box, and you press a number to answer it. / filters the list, and q leaves for your shell with every agent still running.
You can do all of this from your iPhone too.
The list and the iPhone app are free and need no account on your own network or over SSH. Pro adds reaching your agents from anywhere, and a notification when one needs you, so you don’t have to keep checking.
To go further, Your first agent covers starting and answering agents, and Terminal app lists every screen and key.
Last reviewed on 5 November 2026.
Next: Your agents overwrite each other's work Run Claude Code agents in parallel