Claude Code Agent Teams: Setup, Limits, Costs

Dec 3, 2026Super-Agent Team

How Claude Code agent teams work: enabling the experimental flag, spawning teammates, display modes, token costs, limits, and when separate workers fit better.

Claude Code Agent Teams: Setup, Limits, Costs

Claude Code agent teams let one Claude Code session act as a team lead that spawns several teammates, gives them a shared task list, and lets them message each other while they work. According to Anthropic's agent teams documentation, the feature is "experimental and disabled by default," and you turn it on by setting CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1. It suits research, review and parallel feature work where teammates can work independently. It costs noticeably more tokens than a single session, and a team belongs to the one session that created it.

This guide is written by the Super Agent team. Super Agent is built on the Super-Agent design DeepSeek published, so we have a stake in the topic. We are not affiliated with Anthropic; Claude Code details below are taken from Anthropic's documentation, checked December 3, 2026.

Key Takeaways

  • Agent teams are experimental and off by default. Enable them with CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your environment or settings.json, in an interactive session.

  • A lead session spawns teammates, each with its own context window. They share a task list and message each other directly; subagents only report back.

  • Anthropic suggests starting with 3–5 teammates and says teams use approximately 7x more tokens than standard sessions when teammates run in plan mode.

  • Key limits: one team per session, no nested teams, no session resumption for in-process teammates, and no worktree isolation between teammates.

  • For long-running, independent jobs across projects or computers, separate workers that you dispatch and monitor fit better than one team.

What are Claude Code agent teams?

An agent team is a group of Claude Code instances coordinated by one session. Anthropic's docs describe it this way: "One session acts as the team lead, coordinating work, assigning tasks, and synthesizing results. Teammates work independently, each in its own context window, and communicate directly with each other." You can also talk to any teammate without going through the lead.

The architecture section lists four parts:

  • Team lead: the main Claude Code session that spawns teammates and coordinates work.
  • Teammates: separate Claude Code instances that each work on assigned tasks.
  • Task list: shared work items with three states (pending, in progress, completed). A task can depend on others and shows as blocked until they finish.
  • Mailbox: the messaging system between agents.

Teams and tasks are stored locally, under ~/.claude/teams/ and ~/.claude/tasks/. When spawned, each teammate loads the same project context as a regular session (CLAUDE.md, MCP servers and skills) plus the lead's spawn prompt. As the docs put it, "the lead's conversation history does not carry over."

Agent teams vs subagents

Subagents report back to the session that called them. Teammates coordinate with each other. That is the core difference in Anthropic's comparison table:

SubagentsAgent teams
ContextOwn context window; results return to the callerOwn context window; fully independent
CommunicationReturn a result to the callerTeammates message each other directly
CoordinationMain agent manages all workSelf-coordination through messages, plus a shared task list for agents that have the Task tools
Best forFocused tasks where only the result mattersComplex work requiring discussion and collaboration
Token costLower: results summarized back to main contextHigher: each teammate is a separate Claude instance

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." The subagents guide adds that a subagent is for a side task that "would flood your main conversation with search results, logs, or file contents you won't reference again." For a wider look at running several Claude Code sessions side by side, see our guide on how to run multiple Claude Code agents.

How to set up agent teams in Claude Code

You enable the feature with one environment variable, then ask for a team in plain language.

1. Turn the feature on. Set the variable in your shell, or add it to settings.json:

{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  }
}

Spawning teammates requires an interactive session. The docs say that in non-interactive mode with -p, "including Agent SDK sessions, Claude doesn't spawn teammates."

2. Describe the team. Name the task and the roles you want. Anthropic's example:

I'm designing a CLI tool that helps developers track TODO comments across
their codebase. Spawn three teammates to explore this from different angles:
one on UX, one on technical architecture, one playing devil's advocate.

Claude sometimes uses subagents instead. If that happens, ask again and explicitly request an agent team.

3. Pick models if you want. You can name a model in the prompt, for example "Spawn 4 teammates to refactor these modules in parallel. Use Sonnet for each teammate." Otherwise a teammate gets its model from a subagent definition, then CLAUDE_CODE_SUBAGENT_MODEL, then the lead's current model. You can also reuse a subagent definition as a role: "Spawn a teammate using the security-reviewer agent type to audit the auth module."

4. Choose a display mode. By default teammates run in-process inside your main terminal, which works in any terminal. Use the up and down arrows in the agent panel to select a teammate, Enter to view and message it, x to stop it, and Ctrl+T to toggle the task list. For split panes, where each teammate gets its own pane, you need tmux or iTerm2 with the it2 CLI, then set "teammateMode": "auto" in ~/.claude/settings.json (or pass claude --teammate-mode auto for one session).

5. Steer and shut down. Tell the lead which task goes to which teammate, or let teammates self-claim the next unassigned, unblocked task. To end one, say "Ask the researcher teammate to shut down." The teammate can approve and exit, or reject with an explanation.

For quality gates, the docs list three hooks: TeammateIdle, TaskCreated and TaskCompleted. Exiting with code 2 sends feedback and keeps the teammate working, or blocks the task from being created or completed.

What agent teams cost

Agent teams cost more because every teammate is a full Claude instance. The costs page states that "agent teams use approximately 7x more tokens than standard sessions when teammates run in plan mode." Usage "scales with the number of active teammates and how long each one runs," and "each active teammate continues consuming tokens until it exits or the session ends."

Anthropic's advice for keeping costs down:

  • Use Sonnet for teammates.
  • Keep teams small.
  • Keep spawn prompts focused, since everything in the prompt adds to each teammate's context.
  • Shut down teammates when their work is done.

On team size, the docs say "there's no hard limit on the number of teammates," but recommend starting with 3–5 and note that "three focused teammates often outperform five scattered ones." For routine tasks, "a single session is more cost-effective."

Limits to know before you rely on agent teams

The limitations section is short but matters for planning:

  • No session resumption with in-process teammates. /resume and /rewind don't restore them. Tell the lead to spawn new teammates.
  • Task status can lag. A teammate may not mark a task complete, which blocks dependent tasks.
  • Shutdown can be slow. Teammates finish their current request or tool call first.
  • One team per session. You can't share a team across sessions.
  • No nested teams. Teammates can't spawn their own teammates; only the lead manages the team.
  • Lead is fixed. You can't hand leadership to a teammate.
  • No per-teammate permission modes at spawn. New teammates start with the lead's mode, including bypassPermissions, and their permission prompts appear in the lead session.
  • Split panes require tmux or iTerm2.

Two more practical points. Teammates aren't isolated in git worktrees, and "two teammates editing the same file leads to overwrites," so give each one its own set of files. And once agent teams are on, a subagent that Claude names launches as a teammate, "so teams can form even when you didn't ask for one." Set the variable to 0 to switch back.

When to use agent teams, and when to use separate workers

Use an agent team when one problem benefits from several angles at once and you will stay at the keyboard to steer. Anthropic's strongest cases are research and review, new modules or features, debugging with competing hypotheses, and changes across frontend, backend and tests. Its own advice for newcomers is to start with tasks that don't require writing code, such as reviewing a PR or investigating a bug.

A team is the wrong shape when the jobs are unrelated, long-running, or spread across machines. A team belongs to one session, and the docs note that "a teammate's background work can't outlive the lead's process." They also warn that "letting a team run unattended for too long increases the risk of wasted effort." The subagents guide points the same way: "For work that needs to keep running in parallel or won't fit in one context window, run it in separate sessions and let Claude pass findings between them." Anthropic's parallel work overview lists agent view (claude agents, a research preview) and git worktrees for exactly that.

Separate workers follow the router and worker pattern behind super agents: a long-lived coordinator takes requests and hands each one to an isolated worker with its own project and context. Super Agent is our take on it. You install the desktop app on each computer and set up bots for Claude Code or Codex, each with its own computer and project folder. Edits and commands that need permission show up for approval on any device. On Pro ($14.90/month), an assistant hands each request to the right bot and reports back.

Agent teamSeparate workers
CoordinatorLead session, fixed for its lifetimeA dispatcher you or an assistant control
LifetimeTied to one sessionEach worker runs on its own
ScopeOne sessionMany projects, many machines
Workers talk to each otherYes, directlyUsually report to the dispatcher
Best forOne problem, many anglesMany independent jobs

Frequently Asked Questions

How do I enable agent teams in Claude Code?

Set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS to 1 in your shell or in the env block of settings.json, start an interactive session, and ask Claude to spawn teammates. The feature doesn't run in non-interactive -p mode.

What is the difference between agent teams and subagents?

Subagents run inside one session and return a summary to the caller. Agent team teammates are separate Claude Code instances that share a task list and message each other directly. Teams cost more tokens.

How many teammates should I use?

There is no hard limit. Anthropic recommends starting with 3–5 teammates and about 5–6 tasks per teammate, and notes that three focused teammates often outperform five scattered ones.

Can I resume an agent team after closing Claude Code?

Not fully. /resume and /rewind don't restore in-process teammates, so after resuming you tell the lead to spawn new ones. The task list stays on disk under ~/.claude/tasks/.

Conclusion

Claude Code agent teams are a quick way to put several Claude instances on one problem: turn on CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS, describe the roles, keep the team small, and give each teammate its own files. Watch the token bill and the experimental limits. When the work is a stream of independent jobs that should keep moving while you're away, separate workers are the better fit. To run Claude Code and Codex bots across your own computers from one browser workspace, try Super Agent free.