# Managing Multiple Claude Code Sessions at Once

Published 2026-12-01. https://kanbanmcp.com/blog/managing-multiple-claude-code-sessions-at-once

# Managing Multiple Claude Code Sessions at Once

## Key takeaways

- Give every parallel Claude Code session its own git worktree and branch so sessions never share a working directory.
- Run parallel sessions only on tasks with disjoint file lists; anything touching shared state should stay serial.
- Hand off context with a three-line note covering done, found, and next instead of pasting transcripts between sessions.
- Review and merge the smallest diff first, rebase remaining branches onto main one at a time, and always run tests yourself.
- Two or three parallel sessions is the practical ceiling for one human, because review is serial work.

Managing multiple Claude Code sessions at once works when each session gets its own git worktree, a pane in tmux or iTerm, and a written handoff note saying which files it owns. This guide walks through that setup with copy-paste commands, a worked handoff between two sessions, and an honest list of when parallel sessions cost more than they save.

## When does running multiple Claude Code sessions actually pay off?

Parallel sessions pay off when tasks touch disjoint files and can be verified independently. Three shapes fit well: new modules with their own directory, mechanical migrations (rename an API across isolated call sites), and test coverage passes over stable code. Each produces a clean git diff you can review on its own.

Keep serial anything that touches shared state: a schema change, a config refactor, a hot file like a main entry point or a widely imported utility. Two sessions editing one file means one of them loses work, and no amount of worktree discipline fixes a merge conflict in logic both agents reasoned about separately.

Run a simple dependency test before spawning a second session: list the files each task will edit. If the lists overlap, serialize them or split the shared file's change out first. If they don't, each session gets its own worktree and can run without coordination. Anthropic's own guidance on [Claude Code sessions and CLAUDE.md](https://docs.anthropic.com/en/docs/claude-code/overview) assumes one session per context, so the file-disjointness check is on you.

Once you're past two or three sessions, tracking who owns which card in a shared board like [KanbanMCP](https://kanbanmcp.com/agents/claude-code) beats keeping it in your head.

## How do you isolate sessions so they don't conflict over the same files?

The cheapest fix is a hard rule: one session, one directory, one branch. If two sessions share a working tree, they will edit the same file at the same time, and you'll spend your morning untangling a git diff that neither change caused alone.

### One session, one worktree: the basic rule

Give every parallel session its own worktree off the same repo:

```
git worktree add ../myapp-auth -b feat/auth
git worktree add ../myapp-billing -b feat/billing
```

Each session gets a directory, a branch, and a lane on your board. The agent claims a card, works only inside its worktree, and leaves a handoff note when it's done. If you're tracking tasks across sessions on a shared board like [KanbanMCP](https://kanbanmcp.com/agents), the card's lane tells you which worktree owns which change, so you always know where a diff came from.

Scope the branches too: assign each session a slice of the codebase (auth, billing, docs) so merges stay independent.

### What stays shared: main repo, CLAUDE.md, CI

Worktrees share the repo's objects and remotes, so fetches and pushes stay cheap. Keep CLAUDE.md shared: every session reads the same conventions, tests, and rules. One CLAUDE.md per repo, not per worktree, or your instructions drift. CI runs per branch, so each session's work is verified independently before you merge.

## Should each session get its own git worktree or branch?

Three options: branches in one directory, a clone per session, or a worktree per session. Worktrees win for parallel Claude Code sessions because each gets an isolated working directory while sharing one `.git`, so every session sees the full object database without re-cloning.

### Worktrees: shared .git, isolated working directory

Each worktree is a full checkout on its own branch. Two sessions can build simultaneously, and a `git diff` in the morning shows exactly what each one changed. The [official git-worktree documentation](https://git-scm.com/docs/git-worktree) covers the mechanics; the practical rule is one worktree per lane on your board, named after the card it serves.

### Branches alone: why they fail with two live sessions

Branches only isolate committed state, not the working directory. Two sessions in one checkout both edit `src/` and stomp each other mid-task. Clones work but duplicate the repo and any node_modules or venv setup you have to rebuild per copy.

| Option | Isolation | Setup cost | Disk |
|---|---|---|---|
| Branches | None (shared checkout) | None | Minimal |
| Clones | Full | Reinstall deps | High |
| Worktrees | Full working dir | One command | Low (shared objects) |

### Commands: git worktree add, remove and prune

`git worktree add ../feature-x -b feature-x` creates it; `git worktree remove ../feature-x` cleans up after merge; `git worktree prune` clears stale entries. Pair each worktree with a card on [KanbanMCP](https://kanbanmcp.com/agents/muse-code) so the next session claims the lane instead of guessing which directory is free.

## What's the best terminal layout for watching several sessions at once?

### tmux: one window per session, a status bar per agent

Give each Claude Code session its own tmux window and rename it to the task it owns: `auth-fix`, `migration`, `docs`. In your tmux config, set the status bar to show window names plus CPU, so you can spot a session that's spinning without doing work. Keep one window reserved for `git status` and `git diff` across your worktrees, and never let an agent run in it.

### iTerm2 panes and profiles as a lighter option

If you'd rather see everything at once, iTerm2 splits into panes: three vertical columns for sessions, one narrow pane at the bottom for diffs. Create a profile that opens the split layout and cds into each worktree automatically, so a fresh morning is one hotkey, not five commands. Panes beat windows when you're steering, because you can watch a session think while another waits on your review.

### A layout for 3 sessions plus one lane for git diffs

A workable default: left column, three stacked panes, one per agent session; right column split between a `git diff` pane and a scratch pane for handoff notes. When a session finishes, you read its note, check the diff in the right lane, and either merge or send it back. If the notes and card states start living in your head instead of the board, that's the signal to move handoffs onto something shared like [KanbanMCP](https://kanbanmcp.com/agents/claude-desktop), where each session claims a card and leaves its note for the next one.

## How do you hand off context between sessions without pasting transcripts?

Pasting transcripts between sessions burns tokens and still loses the thread. A handoff note in the repo does the job: the finishing session writes it, the next session reads it before touching anything. Keep it short enough that an agent actually reads all of it.

### The three-line handoff note: done, found, next

Every note answers three questions. **Done:** what changed, which branch or worktree, did tests pass. **Found:** anything the next session must know, like a failing test that predates this work or a config quirk. **Next:** the single task to pick up, with the file paths involved. Three headings, a few lines each. If a note needs more than a screen, it belongs in a doc, not a handoff.

### System of record vs working memory: keep chats disposable

Treat the split the way one builder described it: tasks live in one place, documents in another, and chat sessions stay disposable. Your CLAUDE.md holds the standing rules, backlog.md or a board holds the tasks, and the handoff note is the only bridge between sessions. If a project only lives across AI chats, recovering context a week later is painful; if it lives in files the agents read on startup, any session can resume cold. This is the same reason tmux sessions survive a detached terminal: the state lives somewhere that outlives the window.

### Claiming a card: how agents coordinate through a board instead of files

With three or more agent sessions, "who owns this task" becomes a real question. A card claimed on a shared board beats a convention like "edit the CLAIMED.md file first," because two sessions can race on a file and never notice. On a board, one card moves to in-progress and the other agents skip it. KanbanMCP works this way: agents claim a card, do the work in their own worktree, and leave the handoff note on the card, so you watch progress and steer from the same board ([Qwen Code | KanbanMCP](https://kanbanmcp.com/agents/qwen-code)). The note travels with the task, not in a transcript you have to paste.

## How do you review and merge work from parallel sessions?

### Review order: smallest diff first

Start your review with the branch that has the smallest git diff. It takes minutes to check, and merging it early shrinks the surface the remaining branches can conflict with. Save the largest diff for last, when the tree is otherwise settled and you can give it full attention.

### Running tests per worktree before merging

Each worktree already has its own checkout, so run the test suite there before anything touches main. Never trust an agent's claim that tests pass; run them yourself in that worktree and read the output. If a session left failing tests, fix or reject the branch before it contaminates the merge order.

### Rebasing later branches onto merged work

Once a branch lands, rebase the remaining branches onto the new main and resolve conflicts immediately, while the changes are fresh in your head. A quick git diff against main shows what each agent touched. Rebasing one branch at a time keeps conflicts small; batching three rebases after a long session turns a five-minute fix into an afternoon.

## What are the failure modes of running sessions in parallel and how do you avoid them?

### Two sessions, one file: merge collisions

The classic failure: two sessions edit the same module because nothing told them not to. Worktrees prevent the runtime conflict but not the semantic one, so you still resolve a painful git diff in the morning. Guardrail: assign each session a lane of files in its prompt, and keep a shared task board that says which card owns which paths.

### Stale context: a session working from yesterday's assumptions

A session resumed after lunch is working from a CLAUDE.md and a handoff note, not reality. If a card changed hands twice, the second session may build on a decision the third one already reversed. Guardrail: every handoff note states the current state of the branch and what was rejected, and you re-read the note before approving work.

### Cost and attention: three sessions is a real ceiling for one human

Each session needs human review, and review is serial. Past three or four parallel sessions you stop reading diffs and start rubber-stamping. Guardrail: keep the count at what you can genuinely review, use iTerm2's panes to watch all sessions from one window, and park the rest on the board until a lane frees up.

## When does a shared board beat files and handover prompts?

### The criteria: multi-tool sessions, handoff frequency, recovery after a week away

Three signals say it's time for a board. First, sessions span tools: a Claude Code session, a Cursor session and a Codex session can't see each other's notes in one CLAUDE.md. Second, handoffs happen daily, so writing a fresh handover prompt each time costs more than the work. Third, recovery: if a project lives only across chats, context is hard to reconstruct a week later.

### Applying the criteria to KanbanMCP, Vibe Kanban and backlog.md honestly

KanbanMCP fits all three: agents claim a card, do the work and leave a handoff note for the next session, and you steer from the same board. [Vibe Kanban](https://github.com/BloopAI/vibe-kanban) covers similar ground with a different shape. backlog.md stays a strong choice if you want files in the repo and a simple web UI; it wins on portability, loses on live handoff between parallel sessions.

### When your current file setup is still enough

If you run one or two sessions, hand off rarely, and your git diff each morning tells the whole story, keep the files. A board earns its keep only when coordination itself becomes the bottleneck.

## FAQ

### How many Claude Code sessions can I realistically run at the same time?

Two or three is the practical ceiling. Review is serial work, and past three or four parallel sessions you stop reading diffs carefully and start rubber-stamping them. Run only what you can genuinely review, park remaining tasks on a board until a lane frees up, and remember that file-disjointness of your tasks matters more than the session count.

### Can Claude Code sessions in the same repo corrupt each other's changes?

Not if each session gets its own worktree and branch. Two sessions sharing one checkout will edit the same files and stomp each other mid-task. Worktrees prevent the runtime conflict but not the semantic one, so two sessions can still reason about the same logic separately and produce a painful merge. Assign each session a disjoint slice of files.

### Do I need Claude Code Max or higher usage limits to run parallel sessions?

Parallel sessions burn tokens faster than one, since each session reads context and generates output independently, so heavier usage limits help. But the setup itself depends on git worktrees, tmux or iTerm2, and clear file ownership, none of which require a specific plan. Start with the tasks and workflow first; upgrade when sessions hit rate limits.

### How do I resume a Claude Code session the next morning and know what it did?

Read the handoff note the finishing session left: what changed, which branch, whether tests passed, and what to pick up next. Check the git diff in that session's worktree and run the test suite yourself rather than trusting the agent's claim. If state lives in files the agents read on startup, any session can resume cold.

### Can I mix Claude Code with Cursor or Codex on the same board?

Yes, and it's one of the strongest signals that you need a board at all. Sessions from different tools can't see each other's notes in a single CLAUDE.md, so a shared board becomes the only coordination point. Agents claim a card, work in their own worktree, and leave the handoff note on the card for whichever tool picks it up next.
