Here's how to run multiple Claude Code agents in parallel, open a terminal tab per task and run claude --worktree <name> (or -w). Each session gets its own files and branch, so edits stay separate. In VS Code, use Open in New Tab; in the Claude desktop app, click + New. Within one session, Claude can also delegate work to background subagents.
Can Claude Code run multiple agents at once?
Yes. You can give each task a separate conversation, or have one conversation delegate parts of a task.
| Approach | How you start it | Best for | Status |
|---|---|---|---|
| Separate sessions in git worktrees | claude --worktree <name> per terminal tab |
Independent tasks in one repo | Generally available |
| VS Code tabs | Command Palette › Claude Code: Open in New Tab (Cmd+Shift+Esc on Mac) |
Working inside your editor | Generally available |
| Claude desktop app | + New or Cmd+N on Mac |
A sidebar of sessions, with split view | Generally available |
| Subagents | Claude spawns them within a session | Research, review or side tasks that report back | Generally available |
| Agent view | claude agents |
Dispatching and monitoring background sessions from one screen | Research preview |
| Agent teams | CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 |
A lead coordinating teammates that message each other | Experimental; off by default |
Start with separate sessions in worktrees; the official agents overview compares the approaches.
How to run multiple Claude Code agents in parallel with git worktrees?
- Open a terminal tab in your repo for each task.
- Start each session with a different name:
claude --worktree feature-authin one tab,claude -w bugfix-123in another. Claude creates.claude/worktrees/<name>/on a new branch,worktree-<name>. Omit the name and Claude generates one, such asbright-running-fox. - Add
.claude/worktrees/to.gitignore. - If a task needs gitignored files such as
.env, list them in.worktreeincludeat the project root, using gitignore syntax. Claude copies those files into each new worktree. - When you exit an unnamed session with no changes, Claude removes its worktree and branch. If there are changes, Claude asks whether to keep it. Reopen a kept worktree with
claude --worktree <name> --resume.
New worktrees branch from the remote default branch by default. Set worktree.baseRef to "head" to branch from your current local HEAD instead. See the worktree documentation.
You can also create one yourself with git worktree add ../project-feature-a -b feature-a, then run claude there. Remove a leftover with git worktree remove <path>; adding --force removes it even with uncommitted changes.
How do I run multiple Claude Code agents in VS Code?
- Open the Command Palette with
Cmd+Shift+Pon Mac orCtrl+Shift+Pon Windows/Linux. - Type "Claude Code" and choose Open in New Tab or Open in New Window. The new-tab shortcut is
Cmd+Shift+Escon Mac orCtrl+Shift+Escon Windows/Linux. - Give tasks their own worktree when they touch the same files. Each tab is a separate conversation, but tabs share one folder.
The extension and CLI share history. Run claude --resume in a terminal to list those conversations.
To dictate prompts in those tabs instead of typing, see how to talk to Claude Code in VS Code.
Can I run parallel sessions in the Claude desktop app?
- In the Code tab, click + New in the sidebar, or press
Cmd+Non macOS orCtrl+Non Windows. - Turn on Worktree in the row under the prompt box before starting a session that needs separate files. Worktree is off by default, so Claude otherwise works in the project folder itself.
- Switch sessions with
Ctrl+TaborCtrl+Shift+Tab. To see two at once, hold Option (Alt on Windows) and click a session, or right-click it and choose Open in › Split view.
When should I use subagents or agent teams instead?
Use subagents for work that should report back to one conversation. Each has its own context window, prompt, tool access and permissions. Subagents spawned from your main conversation start in the background by default, so several can work while you continue.
To make one session the lead that plans the work and hands it out, see how to set up a Claude Code orchestrator.
A session runs up to 20 subagents concurrently by default. Beyond that, you get Concurrent subagent limit reached; CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS changes the limit. Define custom subagents as Markdown files in .claude/agents/ for a project or ~/.claude/agents/ for your user, or ask Claude to write one. Add isolation: worktree to a subagent's front matter for its own worktree.
Agent teams suit work where teammates need to message each other directly. They're experimental and off by default. Set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your shell or under "env" in settings.json. A lead spawns teammates, each a separate Claude Code instance with its own context window. Split panes need tmux or iTerm2; otherwise teammates run in your main terminal.
The agent teams documentation suggests starting with 3 to 5 teammates. Give each different files: two teammates editing one file can overwrite each other.
Separate sessions can message each other too, without a team. See can Claude Code sessions talk to each other.
For background sessions, run claude agents, type a task and press Enter to dispatch it. Agent view is a research preview. Its dispatched sessions move into their own worktree before editing files.
How do I keep track of several Claude Code agents?
Name a session at startup with claude -n auth-refactor, or inside it with /rename auth-refactor. Return with claude --resume auth-refactor; claude --resume alone opens the picker.
Don't resume the same session in two terminals at once: both write to one transcript. Use --fork-session to split it.
For an alert when work finishes, see how to get a Claude Code notification sound when done.
How can Readwalk help me hear the results?
The free Readwalk for Mac reads switched-on sessions' results aloud in their own voices, one session at a time, and "what's going on" gives you a spoken roundup. It works with sessions in Apple's Terminal app. See how to manage multiple Claude Code sessions by voice, or start with how to talk to Claude Code by voice.
How many agents should I run at once?
Run as many as you can review, with tasks split so agents don't edit the same files. Every session, subagent and teammate sends its own requests, so parallel work multiplies token use. Subagents count toward the main conversation's usage limits; check /usage on a subscription plan.
Agent teams use noticeably more tokens than a single session. Shut teammates down when their work is done.
Frequently asked questions
Can you run multiple Claude Code agents at once?
Yes. Use separate terminal sessions, ideally each in its own worktree, VS Code tabs, desktop app sessions, or subagents within one session.
How do I run multiple agents in the Claude Code CLI?
Open a terminal tab per task and run claude -w <name> in each. Or ask Claude within one session to use subagents for parallel parts of a task.
Do I need git worktrees to run Claude Code sessions in parallel?
No, but sessions sharing a folder can overwrite each other's edits. Worktrees give each session its own files and branch.
Does running several agents use more of my usage?
Yes. Each sends its own requests, and subagents share the main conversation's limits. Check /usage on a subscription plan as you add work.