Claude Code agent teams are an experimental feature where one Claude Code session, the lead, spawns other Claude Code sessions as teammates that share a task list and message each other directly. You turn them on with CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1. Use a team when the workers need to talk to each other. Skip it for sequential work, same-file edits, or anything that involves Codex, Cursor or a second person.
We code on Claude Code every day, but we haven't run agent teams on our own work yet, so every fact below comes from Anthropic's docs. Docs checked 2026-11-12.
What are Claude Code agent teams?
An agent team is a group of Claude Code sessions that Claude coordinates for you. Anthropic's agent teams docs list four parts: a team lead (your main session), teammates (separate Claude Code instances), a shared task list, and a mailbox for messages between agents.
Each teammate is a full session with its own context window. A teammate loads the same project context as a regular session (CLAUDE.md, MCP servers and skills) plus the spawn prompt from the lead. The lead's conversation history doesn't carry over, so anything a teammate needs has to be in that prompt. You can also message any teammate directly without going through the lead.
Using more than one AI agent? Tokenrip is the shared workspace they all work from. To connect yours, paste this into it:
Connect me to Tokenrip. Fetch https://tokenrip.com/setup?ref=claude-code-agent-teams and follow it. Then make a workspace for this repo and file my open tasks there so my other agents can claim them.
How do I turn on agent teams and start one?
Set the environment variable CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS to 1, in your shell or in the env block of settings.json. Agent teams are experimental and disabled by default.
Then describe the task and the teammates you want. Claude spawns them and doesn't ask you to confirm the launch. Teammates show up in an agent panel below the prompt, and Ctrl+T toggles the task list.
Two things surprised me. With the flag on, a subagent that Claude names launches as a teammate, so a team can form when you didn't ask for one. And Claude sometimes spawns plain subagents when you did ask for a team. Both show in the same panel, so ask explicitly for the one you want.
How do Claude Code tasks and messaging work in a team?
The lead creates tasks and teammates work through them. Tasks have three states: pending, in progress and completed. A task can depend on other tasks and shows as blocked until those finish. The lead can assign a task, or a teammate that finishes one picks up the next unassigned, unblocked task on its own. Claiming uses file locking, so two teammates can't grab the same task.
Messages go to one teammate by name. When a teammate finishes, it notifies the lead and includes its final answer.
The task list has a catch most guides skip. The task tools are available by default only on Opus 4.7, Sonnet 4.6, Haiku 4.5 and earlier models, according to the tools reference. On newer models, agents without those tools coordinate through messages instead, unless you opt in with the setting that page lists.
Teams and tasks are stored locally, under ~/.claude/teams/ and ~/.claude/tasks/.
Should I use agent teams, subagents or parallel sessions?
Use subagents when only the result matters, agent teams when the workers have to challenge each other, and your own sessions in worktrees when the tasks are independent. Those are the three usual ways to run multiple Claude Code agents in parallel, and the split follows Anthropic's guide to running agents in parallel.
| Subagents | Agent teams | Parallel sessions in worktrees | |
|---|---|---|---|
| How to start | Built in, inside one session | CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1, then ask for teammates |
claude --worktree <name> in each terminal |
| Who coordinates | The main agent manages all work | The lead assigns, teammates self-claim | You |
| How workers talk | Return a result to the caller | Direct messages plus the shared task list | Cross-session messaging, Claude Code v2.1.224 or later |
| File isolation | Each subagent can get its own worktree | None: split the work so each teammate owns different files | Own checkout under .claude/worktrees/<name>/ |
| Token cost | Lower: results are summarized back | About 7x a standard session when teammates run in plan mode | Every session is a full session |
Sources: Anthropic's docs for agent teams, subagents, worktrees, cross-session messaging and costs.
If you searched for a Claude Code orchestrator, the lead of an agent team is the built-in one. The docs also describe dynamic workflows, where a script holds the plan, and a /batch skill that splits one large change into 5 to 30 worktree-isolated subagents.
Worktree sessions can share a task list too: set CLAUDE_CODE_TASK_LIST_ID to the same name in each one, per the interactive mode docs. For passing work between sessions, see our post on Claude Code handoff.
What do agent teams cost, and where do they break?
Agent teams cost more than anything else in that table. Anthropic's cost docs say agent teams use approximately 7x more tokens than standard sessions when teammates run in plan mode, and that each active teammate keeps consuming tokens until it exits or the session ends. Their advice: use Sonnet for teammates, keep teams small and shut teammates down when they're done.
The limits Anthropic lists:
/resumeand/rewinddo not restore in-process teammates.- Task status can lag. Teammates sometimes fail to mark tasks as completed, which blocks dependent tasks.
- A session has exactly one team, and you can't share a team across sessions.
- Teammates cannot spawn their own teammates.
- Two teammates editing the same file leads to overwrites.
- Teammate permission prompts appear in the lead session.
My read: start with review and research, where nobody writes to the same file.
Can Codex, Cursor or a teammate join an agent team?
No. Anthropic's parallel agents guide says it in one line: "In every approach the workers are Claude sessions." A Codex or Cursor agent can't be a teammate. A colleague's Claude Code on another machine can't join either, because the team and its task list are local files tied to one session. And a non-developer who has to sign off has nowhere to do it, since permission prompts surface in the lead's terminal. Cross-session messaging reaches other machines, but the docs describe it for your own sessions.
When the work crosses one of those lines, you need a task list that lives outside Claude Code. There are three kinds.
A kanban board for coding agents. Vibe Kanban is the Claude Code kanban you've probably heard of. Its README lists Claude Code, Codex, Gemini CLI, Cursor and more, each workspace gives an agent a branch, a terminal and a dev server, and it starts with npx vibe-kanban under an Apache-2.0 license. One caveat: bloop, the company behind it, shut down on April 10, 2026. The project continues as open source and community maintained, but the announcement said remote services including kanban issues, comments, projects and organisations would be removed, with local workspaces still working. Cline Kanban is a newer option where each task card gets its own terminal and worktree. Cline labels it a research preview. Both keep agents out of each other's files. In my view neither suits a reviewer who doesn't live in a terminal.
An issue tracker over MCP. Linear's MCP server has tools for finding, creating and updating issues, projects and comments, and connects to Claude, Cursor and other clients. Your non-developers are already there. The trade-off, in my opinion: a tracker was designed for people, so you write the rules for which agent takes what yourself.
A shared workspace. Tokenrip is ours, so weigh this accordingly. It holds tasks, files and pinned decisions that agents in Claude Code, Codex, Cursor, ChatGPT or Grok all read, and a person approves work from a browser. It's the wrong choice if everything happens in one repo, on one machine, in Claude Code: agent teams or worktrees cover that, and Tokenrip doesn't run your agents or isolate their files. For Codex with Claude Code specifically, we compared three ways to connect them.
Give Claude Code, Codex and your reviewer one task list
Agent teams stop at the edge of one Claude Code session on one machine. Tokenrip, which we build, is a shared workspace outside any one tool, so every agent and person works from the same tasks. It's how we work: our Grok Bots file tasks in Tokenrip workspaces and Claude Code picks them up.
- A task filed by you or any agent waits in one queue, and starting it is the claim, so two agents never get the same one.
- Each agent loads the workspace before it starts and gets the pinned decisions, the open tasks and the recent changes with the reason for each.
- A reviewer who doesn't code approves, edits or sends work back from a browser, and joins free as a guest.
- Every change to a file, table or task names the agent that made it.
The Free plan is $0 with no credit card: unlimited workspaces and agents and 2,500 agent actions a month.
When an agent wants to send, post or publish something outside the workspace, it can propose it first, and the proposal waits until you approve it, edit it or skip it.
Related reading: