Claude Code agent teams, and teams that mix agents and people
Claude Code's agent teams let a lead session split work across Claude teammates. How to turn them on, what they cost, and how Mira mixes Codex and people in.


The short answer
Agent teams are an experimental Claude Code feature from Anthropic, off by default. One session acts as the team lead: it splits the work, assigns tasks and pulls the results together. The teammates are other Claude Code sessions, each with its own context, sharing a task list and messaging each other directly.
- Turn it on
Set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in settings.json or the environment
- Ask for a team
In an interactive session, the lead spawns teammates and hands out tasks
- Split the files
Teammates share one checkout, so give each its own part
Anthropic notes that agent teams use significantly more tokens than a single session, and work best when teammates can operate independently.
Turn it on and start a team
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}- Describe the task and the teammates
For example: “Spawn three teammates to explore this from different angles: one on UX, one on the architecture, one playing devil's advocate.” Roles that don't wait on each other work best.
- Let the lead split the work
The lead fills a shared task list, spawns the teammates and pulls their findings together. If Claude uses subagents instead, ask again and say “agent team”.
- Stay in an interactive session
With
claude -pand the Agent SDK, Claude doesn't spawn teammates; a named subagent runs as an ordinary subagent.
Watch and steer the teammates
| In the lead's terminal | What it does |
|---|---|
| ↑ / ↓ in the agent panel | Select a teammate |
| Enter | Open its transcript and message it directly |
| Escape | Clear the selection; while viewing a teammate, interrupt its current turn |
| x | Stop the selected teammate |
| Ctrl+T | Show or hide the task list |
- To give each teammate its own pane, run Claude Code in tmux or iTerm2 (with the
it2CLI and the Python API on) and set"teammateMode": "auto"in your settings, or passclaude --teammate-mode autofor one session. - Name the model in your request, such as “Use Sonnet for each teammate”. A teammate's model and fast mode are fixed when it spawns.
- Put the lead in plan mode before asking for a teammate, and that teammate plans first and sends a plan approval request before it implements.
- Tasks are pending, in progress or completed, and can depend on each other. Teammates claim the next unblocked task on their own, or the lead assigns them.
- Hooks can hold the line:
TeammateIdle,TaskCreatedandTaskCompletedexit with code 2 to send feedback and keep a teammate working, or stop a task from being created or closed.
Article · Hooks in Claude Code and Codex: run your own commands when the agent acts → Hooks in Claude Code and Codex, and how exit code 2 works.
How big a team, and what it costs
- Start with 3–5 teammates; three focused teammates often do better than five scattered ones.
- Give each teammate 5–6 self-contained tasks with a clear deliverable, such as a function, a test file or a review.
- Token use grows with every active teammate; when teammates work in plan mode, a team uses roughly 7× the tokens of a normal session.
- Teammate permission requests go up to the lead, so pre-approve the common commands in your permission settings first.
Article · Claude Code pricing: what each plan costs, what the API costs, and paying only for what you use → What Claude Code costs on each plan, and how to spend less.
When it doesn't behave
- Teammates don't appear
- In-process teammates sit in the agent panel under the prompt; an idle row hides after 30 seconds but the teammate keeps running. For split panes, check that
which tmuxfinds tmux, or thatit2and iTerm2's Python API are set up. Simple tasks may not get a team at all. - Claude makes teammates when you wanted subagents
- While agent teams are on, a subagent Claude names launches as a teammate. Set
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMSto0in your settings; the next subagent starts as a subagent without restarting. - A teammate or the lead stops early
- Open the teammate and give it more instructions, or spawn a replacement. If the lead declares the team done too soon, tell it to keep going.
- A tmux session is left over
- Run
tmux ls, thentmux kill-session -t <name>for the one the team created.
Claude Code's five ways to run agents in parallel
| What it is | Use it when | |
|---|---|---|
| Subagents | Workers inside one session that report a summary back | A side task would flood your main conversation |
| Agent view | One screen to dispatch and watch background sessions (claude agents); research preview | You have several independent tasks to hand off |
| Agent teams | A lead plus teammates with a shared task list and messaging; experimental, off by default | Claude should split a project and keep the workers in sync |
| Dynamic workflows | A script that runs many subagents and cross-checks their results | The job is too big for a handful of subagents |
| Projects | One ongoing conversation at claude.ai/code or in the desktop app that starts parallel threads | You want Claude to coordinate a longer body of work |
In every one of these, the workers are Claude sessions. Anthropic's guide points to MCP for bringing another tool in.
Teams that mix agents and people, in Mira
- A Codex sessionStarted with the agent and model the task needs
- A Kimi Code sessionRead where it has got to, or send it a message
- A teammate's sessionIn a team space, people steer sessions too
- Each parallel session can start in its own git worktree, so sessions don't overwrite each other's files.
- In a team space, several people send into the same session, each message signed with its sender.
- Every session, whichever agent runs it, is in one sidebar.
Questions
- Are agent teams on by default?
- No. They're experimental; set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS to 1 to turn them on. Teammates are only spawned in interactive sessions, not with
-p. - What's the difference between subagents and agent teams?
- Subagents work for one session and report a summary back. Agent teams are separate sessions that share a task list and message each other, which costs more tokens.
- Can an agent team include Codex?
- Not in Claude Code: its teammates are Claude sessions. In Mira, a Claude Code session can start or message a Codex session through session messaging.
- Do teammates get their own worktree?
- Anthropic's guide says agent teams don't isolate teammates in worktrees, so split the work so each teammate owns different files.
Article · Running two coding agents in one repository → Running parallel agents in separate git worktrees.
Article · Claude Code for teams: access, shared setup, and working in one session → Claude Code for a team of people: access, shared setup, shared sessions.
Article · Subagents in Claude Code and Codex: what they are and how to make your own → Not a team, just a helper for one side task? Subagents in Claude Code and Codex.
Article · Claude Code Projects: what they are, how to set one up, and what to use for a team → Work that keeps coming, not one task? Claude Code Projects run it as cloud threads from one conversation.
Sources
Agent teams and Claude Code's other parallel options were checked against Anthropic's documentation on November 8, 2026, and the setup, steering, cost and troubleshooting sections on November 27, 2026: code.claude.com/docs/en/agent-teams and code.claude.com/docs/en/agents. The feature is experimental and changes quickly, so check those pages for the latest.
Keep reading

Fixing OpenAI and Codex 403 “unsupported_country_region_territory”
Why OpenAI and Codex return 403 unsupported_country_region_territory, how to fix false positives on VPNs or cloud IPs, and compliant alternatives.

Running Claude Code and Codex on Amazon Bedrock, Vertex AI, and Microsoft Foundry
Connect Claude Code and Codex to Amazon Bedrock, Vertex AI, and Microsoft Foundry: env vars, config.toml, auth, model pinning, and limits.

Using Claude Code with Chrome and Codex Browser: live debugging, Playwright, and previews
How to connect Claude Code to Chrome (extension, console logs, login limits) and use Codex Browser or Playwright, plus live dev-server previews in Mira.