ccdeck

How to run multiple Claude Code sessions at once

Checked on against ccdeck 4.0.0 and the sources below

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 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

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.