Claude Agent Teams: Setup, Use Cases and Limits
Enable Claude Code agent teams, split a review across sessions, and choose when peer discussion earns the extra usage. Includes setup and recovery steps.
Published

Claude agent teams are an experimental Claude Code feature for giving several sessions one job, with one session leading and the others free to compare findings.
The Claude Team plan is a subscription for people in an organization. For seats and billing, see Claude Cowork pricing.
Claude agent teams vs subagents
Use a team when one worker's finding should change what another worker does next. Suppose you're reviewing a change that exports invoices. A reviewer spots a database call inside a loop. The teammate checking test coverage can use that observation immediately to look for a missing test with a large batch of invoices. The lead can then report one finding with evidence, instead of leaving you to connect two separate reports.
Think of a design review. Each reviewer has a private notebook, everyone can speak across the table, and one chair owns the final decision. The notebook is the context window, the information a session has in front of it. A new teammate receives its assignment and the project's instructions, including CLAUDE.md. It doesn't inherit the conversation you had with the lead. If you spent the morning narrowing the bug to large exports, put that clue in the assignment.
Named subagents can also message each other. What you gain with a team is a set of independently addressable sessions that can organize their work together. When you only need the list of callers back, Claude Code subagents are the lighter choice.
How to enable agent teams in Claude Code
Anthropic lists agent teams as experimental and disabled by default. I verified the setting and limitations in Anthropic's agent teams guide on November 27, 2026.
In your user settings file, ~/.claude/settings.json, add the variable below to the env object. If the file already contains settings, merge the entry so you keep them.
{
"env": {
"CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
}
}You can also set the variable in your shell environment. To return to ordinary delegation, set it to 0. This matters even on days you never ask for a team. While the experiment is enabled, a subagent Claude names can launch as a teammate.
Claude agent teams example for a first session
Open Claude Code in the project and ask for an agent team in plain language. Give each role a question it can answer, tell it where to look, and say what the lead should deliver. Here's a read-only first assignment you can adapt to the change in front of you.
Create an agent team to review the invoice export diff. Ask one teammate to trace database calls and another to inspect the export tests. If either finds a batch-size assumption, send the file and line to the other for a cross-check. Leave files unchanged. Have the lead summarize confirmed findings and open questions.
If Claude starts ordinary subagents, ask explicitly for an agent team again. Both can appear in the agent panel. Spawning teammates requires an interactive session. A noninteractive -p run, including an Agent SDK session, uses ordinary subagents even with the setting enabled. For programmatic work, see how to build a first agent with the Claude Agent SDK.
How Claude Code agent teams coordinate
Give each teammate a name you can use in follow-ups. The mailbox delivers messages directly, so the test reviewer can ask the database reviewer for the exact query. When a teammate goes idle after finishing, its notification gives the lead its final answer.
With the Task tools available, teammates also share a task list. The lead can assign work, or an idle teammate can claim an unassigned, unblocked task. A task moves from pending to in progress to completed. For example, the lead could make “check how the client handles an empty export” depend on “settle the API response for an empty export.” Marking the latter complete releases the former. Agents without the Task tools coordinate through messages.

The task list protects a claim so two agents don't both take the same task. Separate tasks can still touch the same file. Assign an owner to that file before either teammate edits it.
Claude agent teams tmux setup
The default in-process display keeps everyone in your terminal. Use the up and down arrows in the agent panel to select a teammate, then press Enter to read its transcript or send it a message. Use Ctrl+T to toggle the task list. This is enough to run the invoice review.
For a visible pane per teammate, Claude Code supports tmux or iTerm2. With teammateMode set to "auto", Claude uses panes inside tmux or iTerm2 and the in-process display elsewhere. The tmux setup for Claude Code is useful when you want to watch both reviewers at once.
How to use Claude agent teams on three kinds of work
A pull request with competing concerns. Anthropic's code review example splits a pull request among security, performance and test-coverage reviewers. Give the lead a decision to make about the merge. On the invoice export, a performance reviewer might suggest caching results. Ask the access-control reviewer whether the proposed cache key distinguishes customers, and the test reviewer whether a test exercises that boundary. The useful output is a merge decision grounded in the same lines of code.
A bug with several plausible causes. Anthropic gives the example of an app that exits after one message. Assign the client lifecycle to one investigator and the server connection to another. Ask each for an observation that would rule out its own theory. If the server records a clean connection after the client has already exited, send that trace to the client investigator before anyone changes the reconnect logic. Once the evidence points to a single function, hand the fix to one session.
A feature with a stable interface. For an export that runs in the background, agree first on what the API returns while the file is being prepared. Then assign separate owners to the server endpoint, the client download state and the integration tests. Give each the same example response. If the API owner discovers the response has to change, they can tell the other owners before their implementations drift. If everyone needs to edit the same response parser, keep that change with one owner.

A team uses significantly more tokens than one session because each active teammate processes its own context. Add a teammate when you can name both the work it owns and the finding someone else could use. If the next step is already clear, the Claude Code best practices guide has simpler ways to organize a session. For another approach to coordinating agents, see Antigravity Swarm.
Where the experiment gets rough
Resuming the lead can leave it talking to absent teammates. Neither /resume nor /rewind restores in-process teammates. If the lead tries to contact an old teammate, ask it to spawn a replacement. Include the last confirmed finding in the new assignment. A task that looks stuck can have a simpler explanation, too. Sometimes the work is finished and its status is stale. Check the result, then update the task or ask the lead to nudge its owner.
A shutdown request can take time. A teammate can accept or decline the request. It finishes the current request or tool call before it shuts down. Check the teammate's transcript before assigning its unfinished work to someone else.
The lead and the team belong to one session. You get one team per session, with a fixed lead. You can't promote a teammate, share the team with another session or ask a teammate to start a nested team. An in-process teammate's own subagents run in the foreground. A subagent definition requiring background execution produces an error, and a background request can fail or run in the foreground.
Permission modes have to be considered at the lead. You can't choose a different permission mode for each teammate at spawn. A teammate generally starts in the lead's mode, with exceptions documented by Anthropic. For instance, a lead using dontAsk starts its teammate in Manual mode. Check the lead's permissions before handing out edit work.
What is Claude Team?
Team is Anthropic's subscription for an organization. The agent teams setting controls how Claude Code delegates a developer's work. For the subscription itself, see Anthropic's plan comparison.
For a broader tool choice, these are the best AI coding assistants for development work.
- Published
- Category
- Build








