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: Setup, Use Cases and Limits

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.

ChooseWho manages the work?A job that fits
One sessionYou and Claude follow the same thread.Trace a failing assertion, change the function, then rerun its test. Each step needs the last result.
SubagentsThe main session delegates bounded tasks and receives results.Find every caller of the export function and return the file paths.
Agent teamThe lead coordinates independent sessions. Teammates can message peers, claim available work and respond to you directly.Review the export together when a finding in the query changes the test you need.

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.

JSON
{
  "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.

Anthropic's agent teams guide with the enable setting and team controls
Claude Code agent teams documentation

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.

Two work bays share a task board and a passage beneath the lead's gallery
Teammates can pass a finding directly to a peer while the lead tracks the overall job.

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.

Hands crowd one shared drawing beside separate client, API and test drawings measured by the same gauge
Agree on the interface first. Then give each teammate files it can change independently.

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.

Get the next developer guide by email.

Published
Category
Build
Related Articles
Odysseus AI: The Official Repository, What It Does, and How to Start

Odysseus AI: The Official Repository, What It Does, and How to Start

Find PewDiePie’s official Odysseus repository and demo, see how local and external models connect, and start the workspace with its Docker commands.Nov 27, 2026Build
Boris Cherny and How He Uses Claude Code

Boris Cherny and How He Uses Claude Code

How Boris Cherny created Claude Code, why he changed his mind about Plan Mode, and what developers can learn from his talks and interviews.Nov 27, 2026Build
Claude Code /ship

Claude Code /ship

Use /ship on your first branch, ask Claude to show its findings before it pushes fixes, and use /steward to watch checks and comments on an open PR.Nov 27, 2026Build
Anthropic's Python to Rust Migration: The Method, Step by Step

Anthropic's Python to Rust Migration: The Method, Step by Step

How Anthropic moved its Messages API from Python to Rust: the old service as the check, Claude agents fixing each difference, and a checklist to copy.Nov 26, 2026Build
NotebookLM API Guide to Notebooks, Sources and Audio Overviews

NotebookLM API Guide to Notebooks, Sources and Audio Overviews

Create a Gemini Notebook from code, add a source and see which Google API can generate an Audio Overview for a personal or business workflow.Nov 26, 2026Build
Grok API: Get a Key and Make Your First Request

Grok API: Get a Key and Make Your First Request

Get a Grok API key, send the official first request, choose a model, and see how billing and rate limits work when you call Grok from code.Nov 26, 2026Build
Claude Code Skills: Where They Live and How to Add One

Claude Code Skills: Where They Live and How to Add One

Add a Claude Code skill from a copyable SKILL.md example. See which copy wins, how slash commands work, and when a team can block inline shell commands.Nov 26, 2026Build
Open WebUI: What It Is, What It Costs, and How to Start

Open WebUI: What It Is, What It Costs, and How to Start

See where team chats and documents go, how the Open WebUI License works, and how to start the interface with Docker and connect a model.Nov 26, 2026Build
Newsletter

One letter, every Sunday.Working systems, not hot takes.

Weekly. No spam. Unsubscribe anytime.