How to manage multiple Claude Code sessions in parallel
You have a few Claude Code sessions open. You switch to one and spend a minute working out what it was doing, whether it's waiting for you, and what you meant to ask next.
Find your problem and jump to the fix. There's no need to set up all of it at once.
| Your problem | Start with |
|---|---|
| I can't tell the tabs apart | Names and colors |
| Sessions overwrite each other's files | Worktrees |
| A session sat waiting and I didn't notice | Notifications |
| I want to hand tasks off and check on them from one screen | Agent view |
| I forgot where this one stopped | Recap and a short status |
| I forget what I meant to ask next | A list per session |
Name and color every session
The simple setup is one terminal tab or pane per task, with claude running in each. It stays manageable only if you can tell them apart.
claude -n auth-refactor
Inside a running session, /rename auth-refactor sets the name and shows it on the prompt bar. /color blue colors that bar. Later, return to a session by name:
claude --resume auth-refactor
claude --continuereopens the most recent session in the current directory. With several sessions in one directory, resume by name.claude --resumewithout a name opens a picker. Press Ctrl+W to include sessions from all worktrees, or Ctrl+A for all projects.- Don't resume the same session in two terminals. Both write to one transcript, and messages from one can be missing later. To keep both, add
--fork-sessionto each command.
More in Manage sessions.
Give each session its own worktree
Two sessions editing the same folder can overwrite each other's work. A git worktree is a second working directory of the same repository, with its own files and branch.
claude --worktree feature-auth
Run it again with another name in another terminal. The short form is -w. By default the worktree lives in .claude/worktrees/<name>/, on a new branch called worktree-<name>.
Things that catch people:
- A new worktree starts from your repository's default branch, so your current branch's work isn't in it. To start from your local
HEAD, setworktree.baseRefto"head"in Claude Code's settings. - It's a fresh checkout. Install dependencies again. To copy ignored files such as
.envinto new worktrees, add a.worktreeincludefile. - Add
.claude/worktrees/to your.gitignore. - If you've never run Claude Code in this directory, run
claudethere once and accept the trust prompt first. - A worktree separates files only. Two dev servers can still want the same port, and a local database is still shared.
- When you exit and the worktree has work in it, Claude Code asks whether to keep it. Removing it deletes that work.
You can also create worktrees with git directly, which works with any coding agent:
git worktree add ../project-feature-a -b feature-a
More in Run parallel sessions with worktrees.
Get told when a session needs you
When Claude finishes or stops at a permission prompt and you seem to be away, Claude Code sends a notification event. What you see depends on the terminal:
| Terminal | By default |
|---|---|
| Ghostty, Kitty, iTerm2 | A desktop notification when Claude Code detects the terminal. In iTerm2 you also have to turn on its alert settings. |
| Apple Terminal | No sound. Depending on your profile settings, a window flash or Dock bounce, or nothing. |
| Other terminals | Nothing. |
To get a sound in any terminal on a Mac, add a Notification hook to ~/.claude/settings.json. If the file already has a hooks key, add Notification inside it.
{
"hooks": {
"Notification": [
{
"hooks": [{ "type": "command",
"command": "afplay /System/Library/Sounds/Glass.aiff" }]
}
]
}
}
In tmux, desktop notifications don't reach the outer terminal by default. set -g allow-passthrough on lets a visible pane send them to Ghostty, Kitty or iTerm2. Panes in tmux windows you aren't looking at still won't notify you. See Configure your terminal for the full setup.
Use claude agents for work you don't need to watch
Agent view is one screen for background sessions. It shows what each one is doing, and puts those that need your input or review near the top. It's a research preview, so keys and behavior may change.
claude agents
- Type a task and press Enter to start a new background session.
- Press Space on a row to see its latest output or question, and reply there. A permission prompt needs the full session.
- Press Enter to open the full session. Press
←on an empty prompt to go back. - Run
/bginside a normal session to move it to the background. Sessions open in other terminals don't appear until you do. - From your shell,
claude --bg "investigate the flaky login test"starts one directly. - To try a second approach without losing the first, run
/fork. It copies the conversation into a new background session, and the original keeps going.
Read these before you rely on it:
- In a git repository, a session you start this way moves into its own worktree before editing. A session you moved with
/bgkeeps editing where it was. - In such a worktree, Claude is told to commit its work without asking, and to push the branch if there's a remote. The same instructions say never to push to
mainormaster, force-push or merge. If you want to handle git yourself, say so in your task orCLAUDE.md. - Deleting a session in agent view also deletes the worktree Claude created for it, including uncommitted changes.
- Sleep is fine. Shutting down the Mac stops the sessions.
- Every session uses your plan's limits. The docs put ten parallel agents at roughly ten times the usage of one.
More in Manage multiple agents with agent view. If you want Claude to split one job between workers, look at subagents, or at agent teams, which are experimental and off by default. Run agents in parallel compares the options.
Make each session say where it stopped
Claude Code has a session recap. If at least three minutes passed since the last finished turn and the terminal wasn't focused, a one-line recap is ready when you come back. It appears once the session has at least three turns. You can also ask for it:
/recap
A recap tells you what happened. If you also want your next move, ask for it before you leave the tab:
In two sentences: what's done, and what do you need from me?
For work that will outlive the session, ask Claude to write the same into a notes file in the worktree: what's done, what's left, how to check it. The next session can read that file.
Keep your own list for each session
While one session works, you think of things for the others: a follow-up, an edge case, a message someone sent you. Claude Code's task list is Claude's checklist for its own multi-step work. Your queue needs a place too.
A text file per worktree is enough to start. One heading per session, one line per thing to ask next. It costs nothing to set up. The catch is that you have to open the right file and copy each line yourself.
Plan Shelf, if you want that list next to the terminal
I built Plan Shelf, so read this part knowing that. It's a free Mac app.
It's a small floating list. In Terminal and iTerm2, each tab can have its own, and the list changes when you switch.
- ⌃⌥C turns selected text, such as a numbered list in Claude's reply, into tasks. ⌃⌥A adds one you type.
- ⌃⌥N pastes the next task at the prompt. You read it and press Enter. Pressing Enter for you is a separate option that's off by default.
- Once you connect Claude Code in Settings, it can leave a short summary on that session's list: what it did and what it needs from you. It can also suggest tasks, which you accept or dismiss, and mark them started or done. Connecting adds hooks and an MCP server to Claude Code's settings, with a backup. Codex, Cursor, VS Code Copilot, OpenCode and Zed can be connected too.
Three Claude Code sessions, each with its own list. The Slack window in the demo is a sample with made-up messages.
What it doesn't do
- It doesn't start or coordinate agents, and it doesn't create worktrees.
- It doesn't alert you when another session is waiting. Use notifications or agent view for that.
- Two tabs with exactly the same title can end up sharing a list, and so can tmux panes inside one tab. Terminal and iTerm2 keep each tab separate. In another terminal, try it before you rely on it.
- It's for Mac only (macOS 14 or newer).