A Claude Code orchestrator is one session that plans a task, delegates pieces to other agents and combines their reports. Claude Code has two built-in approaches: subagents, where the main conversation delegates and collects results, and experimental agent teams, where a lead assigns work to teammates. Start with subagents defined as Markdown files in .claude/agents/.
What is a Claude Code orchestrator?
One session takes the lead. It breaks your request into tasks, gives each worker a part, then reviews and merges the results. Workers have their own context, so side tasks don't fill the lead's conversation.
The agents overview describes subagents, agent teams and scripts called dynamic workflows as approaches to coordination. It doesn't describe a separate "orchestrator mode" setting.
| Approach | Who coordinates | How to start | Status |
|---|---|---|---|
| Subagents | Main conversation | Define agents in .claude/agents/ and ask Claude to delegate |
Built-in |
| Agent teams | Team lead | Enable CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 |
Experimental; off by default |
| Dynamic workflows | A script holds the plan | Put the plan in a script | Documented approach |
| Separate sessions you run yourself | You | Run sessions in separate git worktrees | Manual coordination |
How do I set up a Claude Code orchestrator with subagents?
- Create a Markdown file in
.claude/agents/for this project, or~/.claude/agents/for all your projects. You can ask Claude to write it. - Add YAML front matter with the required
nameanddescription. Optional fields includetools,modelandisolation: worktree. - Make the description say when to use the subagent. Claude uses that description to decide when to delegate.
- Ask the main session to plan the work and delegate parts, or name a subagent in your prompt: "Use the test-runner agent after the code changes and review its report."
- Read the results in the main conversation. Each subagent returns a final report; background runs send a completion notification when they finish.
Example file, .claude/agents/test-runner.md:
---
name: test-runner
description: Runs the test suite and reports failures. Use after code changes.
tools: Read, Bash
model: haiku
---
Run the project's test suite. Report which tests failed and include the failure messages.
The subagent documentation lists the front matter options. Running /agents now prints a reminder to ask Claude or edit the agents folders directly. In v2.1.197 and earlier, it opened an interactive wizard.
How many subagents can an orchestrator run at once?
Subagents spawned from the main conversation start in the background by default, so several can work at once. The default limit is 20 concurrent subagents. Set CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS to change it.
Subagents can spawn their own subagents up to three layers below the main conversation. CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH changes that limit; set it to 1 to turn nesting off.
Each subagent sends its own requests. More workers mean more token use.
When should the orchestrator be an agent team lead instead?
Use subagents when you want Claude to delegate and collect results inside one conversation. Choose an agent team when you want Claude to split a project into tasks and keep the workers in sync.
Each teammate is a separate Claude Code instance with its own context window. The lead creates and assigns tasks on a shared task list; teammates can claim tasks and message each other by name.
Agent teams are experimental and off by default. Enable them with CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your shell, or under "env" in settings.json. The agent teams documentation recommends starting with 3 to 5 teammates. Teams use significantly more tokens than a single session.
A session can have one team. Teammates can't spawn their own teammates, and the lead stays fixed for the session's lifetime. Use the in-process display in any terminal, or split panes with tmux or iTerm2.
For messaging, see how Claude Code sessions talk to each other.
Can I be the orchestrator across separate sessions with Readwalk?
Yes. You can coordinate separate sessions yourself, each in its own git worktree; see how to run multiple Claude Code agents in parallel for setup.
With the free Readwalk for Mac 1.8 or later, you talk to one controller session and the app sends what you say to the right session. Other switched-on sessions read a one-line headline aloud in their own voice. Your controller gets their full reports.
Say start a new session for <project>, <request> to open Claude Code in a new Terminal window in that project's folder. Your request becomes its first message, with reporting switched on. Say "what's going on" for a spoken roundup, or "switch to" followed by a session's name to talk to it.
This needs Apple's Terminal app, macOS 15 or later and Apple silicon. Speech recognition runs on your Mac; choosing the right session uses your own Claude Code sign-in and needs an internet connection.
Start with how to talk to Claude Code by voice, or learn to manage several Claude Code sessions by voice.
How do I keep an orchestrator's work reliable?
- Give workers different files. Two teammates editing one file can overwrite each other. For subagents that edit code, use
isolation: worktreeto give each a temporary git worktree. - Keep subagent descriptions specific about when the lead should use them.
- Choose a cheaper model for simple work. The
modelfield acceptssonnet,opus,haiku,fable, a full model ID orinherit. - Check
/usageon a subscription plan. Subagents count toward the main conversation's usage limits.
Frequently asked questions
How does a Claude Code orchestrator work?
The lead plans the task and delegates parts. Subagent descriptions help it choose workers; a team uses a shared task list. The lead reviews and merges the reports that come back.
Does Claude Code have an orchestrator mode?
The docs don't describe a setting by that name. You get the pattern through subagents or an experimental agent team lead.
What's the difference between an orchestrator agent and a subagent?
The orchestrator is the main conversation or team lead that coordinates the work. A subagent is a worker with its own context that reports back.
Can a Claude Code orchestrator use agent teams?
Yes. Enable agent teams, then ask Claude to create a team. That session stays the lead for its lifetime. Start with 3 to 5 teammates.
Can I run a Claude Code orchestrator by voice?
With free Readwalk for Mac 1.8 or later, you talk to one controller and hear other sessions' headlines aloud. Say start a new session for <project>, <request> to open another session. You'll need Apple's Terminal app, macOS 15 or later and Apple silicon.