How to run multiple Claude Code sessions at once
Short answer
Start one claude for each task, side by side in terminal splits or tmux panes, give each its own git worktree, and use a view that tells you which one is waiting on you.
- Terminal splits or tmux: one session a pane. You watch each pane yourself.
- Agent View (
claude agents) runs sessions in the background, in one list. - Claude Code Desktop opens a second session in a split view.
- ccdeck’s Workspace shows up to four Claude Code or Codex sessions side by side, beside a list of every session that marks the ones waiting on you.
Terminal splits and tmux
Each Claude Code session is its own process, so open a tab or a split of your terminal, or of your editor’s terminal, for each one and run claude there. In tmux, C-b % splits a pane into two side by side and C-b " into two one above the other; C-b d detaches, and the sessions keep running until you attach again.
Inside tmux, add the lines Claude Code’s terminal guide gives to ~/.tmux.conf: without them, “Shift+Enter submits instead of inserting a newline, and desktop notifications don't reach the outer terminal.”
What it misses. Nothing gathers the sessions, so you look at each pane to see which one waits on you. A terminal that implements the OSC 7501 Program Status Protocol can show “whether each interactive Claude Code session is working, waiting on you, or done”; inside tmux, Claude Code asks tmux for that support instead. Every session uses your quota: in Anthropic’s words, “Running several sessions or subagents at once multiplies token usage.”
A git worktree for each session
Sessions in one checkout edit the same files. --worktree starts Claude in a new worktree under .claude/worktrees/, on a branch of its own, so each session has its own copy of the files:
claude --worktree feature-auth
“Run the command again with a different name in another terminal to start a second isolated session.”
What it misses. A worktree is a fresh checkout, so its dependencies need installing again, and it needs a git repository, or hooks that stand in for one.
Agent View, for background sessions
Run claude agents, type a task and press Enter. “Every prompt you enter here starts its own new session,” which keeps running without a terminal and moves into a worktree of its own before it edits files. Each row says whether its session is working, waiting on you or done. Space peeks at one and lets you reply; Enter or → attaches to the whole conversation.
What it misses. An attached session takes over the terminal, so you read one conversation at a time, and “Interactive sessions you have open in other terminals don't appear until you background them.” Agent View is a research preview.
Claude Code Desktop, in a split view
In the desktop app, hold Option on macOS or Alt on Windows and click a session in the sidebar, or right-click it and choose Open in, then Split view. Ctrl+Tab moves between sessions.
What it misses. The split puts a second session next to the current one, and dims the pane you are not using. It is the desktop app’s, not your terminal’s.
ccdeck’s Workspace, up to four side by side
ccdeck is a free, open-source dashboard that runs on your machine and lists the Claude Code and Codex sessions from every terminal. Workspace, beside Board in its topbar, or Ctrl+`, shows up to four of them in terminal panes.
npx ccdeck --ref=multiple-claude-code-sessions
- Click a session in the list to show it in a pane. ⇧↵ on its row opens it beside the pane in focus; dragged onto a pane’s edge, it opens beside, above or below that pane.
- One pane has the keys; the others keep running. Ctrl+Shift+X takes them back.
- The list opens with Needs you, the Claude Code sessions stopped on a prompt or a question, and the topbar counts them.
- Its + starts Claude Code or Codex in a project; Claude Code can start in a new git worktree.
- A Claude Code pane switches between Chat, the conversation, and Term.
- The panes run on ccdeck’s terminal engine, which comes with ccdeck (npm installs the one for this machine, the desktop app carries it) and is checked before every start.
What it misses. Four panes at most, and none on a phone. A session running in a plain terminal, outside tmux, is answered there; once you quit it, Reopen here continues it in a pane. The waiting list is Claude Code only. Windows on ARM has no terminal yet.
Step by step
Sources
Read on . What ccdeck does is checked against ccdeck 4.0.0, and what another tool does against its own documentation.
- Claude Code docs: Run agents in parallel, Choose an approach
- Claude Code docs: Terminal configuration, See session status in your terminal
- Claude Code docs: Terminal configuration, Configure tmux
- tmux wiki: Getting Started, Splitting the window
- Claude Code docs: Worktrees, Start Claude in a worktree
- Claude Code docs: Agent view, Quick start
- Claude Code docs: Agent view, Monitor sessions with agent view
- Claude Code docs: Desktop, Work in parallel with sessions
- The ccdeck README at 4.0.0