Claude Code Agent Teams: How to Enable and Use Them (2026)
Claude Code agent teams let one Claude Code session act as a team lead that spawns several teammate sessions, gives them tasks from a shared list and combines their results. In Anthropic’s words, agent teams “coordinate multiple Claude Code instances working together as a team, with shared tasks, inter-agent messaging, and centralized management.” They are experimental and off by default: you turn them on with the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS setting.
Key points
- Status: experimental and “disabled by default”. Anthropic added them as a research preview in Claude Code 2.1.32 on February 5, 2026.
- Enable: set
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1in your shell or insettings.json, then start an interactive session. - How they work: a lead session, teammates that are separate Claude Code instances, a shared task list and a mailbox for messages between agents.
- Cost: each teammate is a full Claude instance, so token use grows with the number of active teammates.
- Scope: one team per session, on your machine. Agent teams coordinate one person’s sessions, not several people’s.
How to enable agent teams
Anthropic documents two ways to turn them on. In your shell:
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
Or in settings.json:
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}
Then start Claude Code normally and ask for a team in plain language. Spawning teammates needs an interactive session: in non-interactive (-p) or Agent SDK mode, Claude doesn’t spawn teammates.
One side effect to know about: while agent teams are enabled, “a subagent that Claude names launches as a teammate, so teams can form even when you didn’t ask for one.”
How the lead and teammates work
| Part | What it does |
|---|---|
| Team lead | Your main Claude Code session. It spawns teammates, creates and assigns tasks, and pulls the results together. It stays the lead for the life of the session. |
| Teammates | Separate Claude Code instances, each with its own context window. They load the project’s CLAUDE.md, MCP servers and skills, but not the lead’s conversation history. |
| Task list | Shared work items in three states: pending, in progress and completed. The lead can assign tasks, or a teammate picks up the next unassigned, unblocked task itself. |
| Mailbox | Messages between agents. Any teammate can message any other by name, and a teammate’s final answer goes back to the lead when it finishes. |
You can also talk to a teammate directly:
- In-process mode (the default, works in any terminal): use the up and down arrow keys in the agent panel to pick a teammate, press Enter to open its session and type to message it. Ctrl+T shows the task list.
- Split panes: each teammate gets its own pane, which needs tmux or iTerm2. Choose the mode with the
teammateModesetting (in-process,auto,tmuxoriterm2).
Anthropic’s own example prompts are a good place to start:
- “Spawn three teammates to explore this from different angles: one on UX, one on technical architecture, one playing devil’s advocate.”
- “Spawn three teammates to review PR #142: one focused on security implications, one checking performance impact, one validating test coverage.”
- “Spawn 4 teammates to refactor these modules in parallel. Use Sonnet for each teammate.”
Limits to know before you rely on them
Anthropic lists these limitations, among others:
- No session resumption for in-process teammates:
/resumeand/rewinddon’t bring them back. - Task status can lag: teammates sometimes don’t mark tasks complete, which blocks tasks that depend on them.
- Slow shutdown: teammates finish their current request or tool call before stopping.
- One team per session: you can’t run several named teams or share a team across sessions.
- No nested teams: only the lead manages the team; teammates can’t spawn teammates.
- Permissions: teammates start with the lead’s permission mode, and their permission prompts appear in the lead session.
Two practical rules from the same docs: start with 3 to 5 teammates, and give each one its own set of files, because “two teammates editing the same file leads to overwrites.”
Agent teams vs subagents
| Subagents | Agent teams | |
|---|---|---|
| Context | Own context window; results return to the caller | Own context window; fully independent |
| Communication | Report a result back | Teammates message each other directly |
| Coordination | The main agent manages all the work | Shared task list and messages |
| Best for | Focused tasks where only the result matters | Work that needs discussion and collaboration |
| Token cost | Lower | Higher: each teammate is a separate Claude instance |
| Status | Available | Experimental, off by default |
Anthropic’s rule of thumb: “Use subagents when you need quick, focused workers that report back. Use agent teams when teammates need to share findings, challenge each other, and coordinate on their own.” For sequential tasks, edits to the same files or work with many dependencies, a single session or subagents work better. More on subagents in Claude Code subagents.
When you need several people’s agents instead
Agent teams are stored locally and scoped to one session, so they coordinate one person’s Claude Code sessions. When the work spans people (your agent, a teammate’s agent, maybe a Codex or Cursor session too), you need a place where everyone’s agents can see each other’s plans and results. That’s what a shared thread does: each person keeps their own agent and connects it to the thread over MCP. See Claude Code multiplayer and Claude Code for teams.
Frequently Asked Questions
What are Claude Code agent teams?
An experimental Claude Code feature in which one session acts as team lead, spawns teammate sessions, assigns them tasks from a shared task list and combines their results. Teammates can also message each other directly.
How do I enable agent teams in Claude Code?
Set the environment variable CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS to 1, either in your shell or under env in settings.json, then start an interactive Claude Code session and ask for a team.
What’s the difference between agent teams and subagents?
Subagents are helpers that do a focused task and report the result back to your main session. Agent team teammates are fully independent Claude Code instances that share a task list and message each other. Teams cost more tokens and are still experimental.
How many teammates should an agent team have?
Anthropic suggests starting with 3 to 5 teammates for most work and about 5 to 6 tasks per teammate. There’s no hard limit, but token use grows with every active teammate.
Can several people share a Claude Code agent team?
No. A team belongs to one Claude Code session and is stored locally on that machine. To coordinate several people’s agents, connect each person’s agent to a shared thread instead.
Sources
Orchestrate teams of Claude Code sessions, Claude Code changelog (2.1.32, February 5, 2026), Manage costs: agent team token costs and settings reference (Anthropic), checked November 24, 2026.