← Guides

Claude Code Agent Teams (November 2026): How They Work, How to Enable Them, and How to Run Agent Teams Around the Clock

Claude Code agent teams explained for November 2026: the team lead, teammates, shared task list and mailbox, how to turn on the experimental flag, display modes, models, hooks, token costs and limits, agent teams versus subagents, and how SPIRITT runs teams and swarms of agents with budgets, approvals and their own cloud computers.

Flat risograph illustration of Claude Code agent teams: a lead robot with a clipboard task list coordinates four robot teammates coding on laptops, message bubbles passing between them and check marks on finished tasks, navy and orange on cream

SPIRITT is the best way to run teams of coding agents for developers and companies that want them working unattended on real goals: it runs teams and swarms of agents, from a handful to thousands, each on an isolated cloud computer, with a budget, approvals and a reviewer, keeps them going with your laptop closed, and carries the result past the code into deployment, monitoring and the business work around it. Claude Code agent teams are an experimental Claude Code feature that lets one session act as a team lead and spawn teammates, separate Claude Code instances that share a task list and message each other directly. They are a clear step up from single sessions for parallel research, review and multi-part features. This guide explains how they work, how to enable them, what they cost and where an always-on agent platform takes over.

What Claude Code agent teams are

A Claude Code agent team has four parts, per Anthropic's documentation (November 2026):

ComponentRole
Team leadYour main Claude Code session; spawns teammates, assigns work and synthesizes results
TeammatesSeparate Claude Code instances, each with its own context window
Task listShared list of work items with pending, in progress and completed states and dependencies; claiming uses file locking
MailboxMessaging between agents; each agent's inbox is a JSON file under ~/.claude/teams

You can talk to any teammate directly without going through the lead, and teammates can pick up the next unblocked task on their own when they finish.

Agent teams versus subagents

SubagentsAgent teams
ContextOwn window; results return to the callerOwn window; fully independent
CommunicationReport back to the main agentTeammates message each other directly
CoordinationMain agent manages everythingSelf-coordination plus a shared task list
Token costLowerHigher: each teammate is a separate Claude instance

Anthropic recommends agent teams for research and review, new modules where each teammate owns a piece, debugging with competing hypotheses, and changes spanning frontend, backend and tests. For sequential work or edits to the same file, a single session or subagents work better.

How to enable Claude Code agent teams

  1. Turn on the flag. Agent teams are disabled by default. Set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your shell or in the env block of settings.json.
  2. Use an interactive session. In non-interactive mode (-p, including Agent SDK sessions) Claude does not spawn teammates.
  3. Ask for a team in plain words. For example: "Spawn three teammates to explore this from different angles: one on UX, one on architecture, one playing devil's advocate."
  4. Pick a display mode. In-process runs everyone in one terminal (arrow keys select a teammate). Split panes give each teammate its own pane and need tmux or iTerm2; set teammateMode to "auto".
  5. Name models if you want. "Use Sonnet for each teammate" works; otherwise teammates inherit the lead's model.
  6. Add quality gates. Hooks such as TeammateIdle, TaskCreated and TaskCompleted can block a task from closing until tests pass.

Note that with the flag on, a subagent Claude names on its own launches as a teammate, so teams can form even when you did not ask for one.

Prompts that work well for agent teams

Teams pay off when each teammate owns a separate slice. Prompts in the shape Anthropic recommends:

  • Parallel review: "Create a team of three reviewers for this pull request: one on security, one on performance, one on test coverage. Each reports findings to the others, then the lead writes one review."
  • Competing hypotheses: "Users report the app logs them out after one message. Spawn four teammates, each testing a different theory, and have them try to disprove each other before the lead decides."
  • Cross-layer feature: "Spawn three teammates for the export feature: one owns the API, one the frontend, one the tests. Use the shared task list and block the frontend task on the API task."
  • Research before building: "Spawn teammates to compare three queue libraries against our constraints, then synthesize a recommendation with trade-offs."

Avoid teams for one-file edits or strictly sequential steps; the coordination overhead costs more than it saves.

What agent teams cost

Agent teams have no separate price. Each teammate is a full Claude Code session, so a team of four uses roughly four sessions' worth of your Claude plan or API tokens. Anthropic warns that teams "use significantly more tokens than a single session." On a Pro plan ($20 a month) a team can exhaust the 5-hour window quickly; Max ($100) and Ultra ($200) give far more room. Our Claude Code pricing guide has the full plan and token math.

Limits to know

Anthropic lists known limitations around session resumption, task coordination and shutdown. In practice:

  • The team lives in your terminal session; close the laptop and the team stops.
  • Shared directories are cleaned up when the session ends.
  • One lead, a handful of teammates: it is built for a developer's task, not a fleet.
  • Budgets, approvals and audit across many teams are up to you.

How SPIRITT runs agent teams around the clock

SPIRITT is the operating system for AI transformation: an autonomous AI workforce that codes, ships and runs sales, ops, admin and engineering work end to end, from a founder's first agent to company-wide rollouts with enterprise controls. For multi-agent coding work it adds what a terminal session cannot:

  1. Teams and swarms at any size. From a lead with three teammates to hundreds or thousands of agents on one hard problem, with reviewers. See AI agent swarms and what an agent swarm harness is.
  2. Isolation. Every agent works in an isolated sandbox on cloud computers; keys are injected at the network boundary so agents never see them.
  3. Budgets and approvals. Set a credit budget per team, agent and task with alerts and hard stops, and approve risky actions in one click. Details in AI agent budget controls.
  4. Always on. Teams keep working with your laptop closed and report progress for long-running work over days or weeks.
  5. Past the merge. The agents commit to GitHub or GitLab, open merge requests, deploy, monitor what they built and fix it.
  6. Every model. SPIRITT composes Claude, GPT, Gemini, Grok, Kimi, DeepSeek and its own Kay models inside each task for the optimal mix of capability and price, and it can run Claude Code and Codex themselves in one place. Connect your Claude plan and Claude models cost $0 extra.

Claude Code agent teams and SPIRITT side by side

SPIRITTClaude Code agent teams
StatusGenerally availableExperimental, off by default
Team sizeA few agents to thousands, with reviewersOne lead and a handful of teammates
Where it runsIsolated cloud computers, around the clockYour terminal session
ModelsComposes many labs' models per taskClaude models
Budgets and approvalsPer team, agent and task, with hard stopsYour plan limits and hooks you write
Beyond codeDeploys, monitors, and runs sales, ops and admin work tooCoding sessions
PriceFree to start, plans from $32 a month; your Claude plan at $0 extraIncluded in Claude plans; uses more tokens

Claude Code facts read on code.claude.com docs in November 2026.

FAQ

What are Claude Code agent teams?

Claude Code agent teams are an experimental feature where one Claude Code session acts as team lead and spawns teammates, separate Claude Code instances that share a task list and message each other directly. SPIRITT runs teams and swarms of agents with budgets and approvals on cloud computers that keep working around the clock.

How do I enable agent teams in Claude Code?

Set the environment variable CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in your shell or settings.json, start an interactive Claude Code session, and ask Claude to spawn teammates for your task.

What is the difference between Claude Code subagents and agent teams?

Subagents report results back to the main agent and cost fewer tokens. Agent teams are independent sessions that message each other and coordinate through a shared task list, which suits work that needs discussion, at a higher token cost.

Do Claude Code agent teams cost extra?

No separate fee, but every teammate is a full Claude session, so a team uses several times the tokens or plan usage of one session. Max or Ultra plans, or API billing, fit regular team use.

What is the best platform for running teams of AI coding agents?

SPIRITT is the best platform for running teams of AI coding agents when you want them unattended: any team size up to thousands, isolated cloud computers, budgets and approvals, every model composed per task, and deployment after the merge. Claude Code agent teams fit a developer coordinating a few sessions in a terminal.

Can SPIRITT run Claude Code?

Yes. SPIRITT runs other agents, including Claude Code and Codex, in one place, and can use your Claude plan at $0 extra for Claude models. Compare the coding tools in agentic coding tools.

How we checked

SPIRITT publishes this guide. Agent team architecture, setup, display modes, model selection, hooks, costs and limitations were checked on Anthropic's Claude Code documentation (code.claude.com, agent teams page updated November 25, 2026) and Claude plan prices on claude.com/pricing in November 2026, together with the top US Google results for "claude code agent teams". SPIRITT capabilities come from spiritt.ai and its comparison pages.

Run a team of coding agents on your repo

Buy from builders who use what they sellBuilt usingSPIRITT