Blog · Comparison · 16 November 2026

Claude Code Subagents vs Agent Teams: Which to Use

Claude Code subagents vs agent teams is a choice every heavy Claude Code user meets sooner or later. Both run work in parallel. Both give each worker its own context window. They differ in who talks to whom, how much they cost and how much supervision they need. This guide summarizes Anthropic's documentation for both, adds a third option (separate parallel sessions in worktrees), and ends with a short decision list.

What subagents are

According to the docs, subagents are specialized assistants that run inside one Claude Code session. Each has its own context window, a custom system prompt, its own tool access and independent permissions. Claude delegates to a subagent when a task matches its description. Explore, Plan and a general-purpose agent are built in.

How they behave:

  • Definition. A subagent is a Markdown file with YAML frontmatter, in .claude/agents/ for a project or ~/.claude/agents/ for all projects. They can also come from managed settings, the --agents flag or a plugin.
  • Results. The subagent's work stays in its own context. Only its summary returns to the main conversation.
  • Nesting. Subagents can spawn their own subagents, up to three layers below the main conversation by default.
  • Concurrency. They run in the foreground or in the background. By default 20 can run at once.
  • Worktree isolation. Setting isolation: worktree runs a subagent in a temporary git worktree, removed automatically if it makes no changes.

The mental model: a subagent is a function call. You hand it a task, it returns a result, and the caller decides what to do next.

What agent teams are

Agent teams coordinate several full Claude Code sessions. The docs mark them experimental and disabled by default; you enable them with CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1.

  • Structure. One session is the lead. It spawns teammates, assigns work and synthesizes results.
  • Shared task list. Tasks have three states and can depend on each other. Teammates self-claim unblocked tasks; claiming uses file locking.
  • Messaging. Teammates message each other directly by name through mailboxes, and you can talk to any teammate yourself.
  • Display. In-process in one terminal, or split panes with tmux or iTerm2.
  • Limits. One team per session, no nested teams, a fixed lead, and no teammates in non-interactive mode.

The mental model: a team is a group chat with a task board. Members coordinate among themselves.

Claude Code subagents vs agent teams in one table

This follows the comparison in Anthropic's own docs.

Subagents Agent teams
Context window Own; results return to the caller Own; fully independent
Communication Return a result to the caller; subagents Claude named can also message each other Teammates message each other directly
Coordination The main agent manages all work Shared task list and self-coordination
Best for Focused tasks where only the result matters Work that needs discussion and collaboration
Token cost Lower; results are summarized Higher; each teammate is a separate instance
Status Standard feature Experimental
Non-interactive use Works Teammates are not spawned

How to choose

Use a subagent when:

  • The task is a search, a check or a self-contained change, and you only need the answer.
  • You want to keep the main context clean. A subagent can read fifty files and return ten lines.
  • You are scripting Claude Code with -p.
  • You want predictable cost.

Use an agent team when:

  • Workers need each other's findings while they work. The docs' example is several teammates testing competing hypotheses for a bug and trying to disprove each other.
  • The work spans layers (frontend, backend, tests) with a different owner for each.
  • You are present to steer. The docs advise against letting a team run unattended for long.

Skip the team when the task is sequential, touches the same files throughout, or has many dependencies. The docs say a single session or subagents are more effective there.

A third option: parallel sessions in worktrees

The docs describe one more way to run in parallel: start separate sessions yourself, each in its own git worktree, with claude --worktree <name>. Each session gets its own directory under .claude/worktrees/ and its own branch. These sessions share no task list and no lead. The docs point to cross-session messaging for passing findings between them; otherwise you are the coordinator.

This suits independent tasks that should land as separate pull requests. It is also the base that desktop tools build on.

File conflicts

The three options handle file conflicts differently:

  • Subagents share the working tree unless you set isolation: worktree.
  • Agent teams share it. The docs say two teammates editing the same file leads to overwrites, and tell you to break the work so each teammate owns different files.
  • Worktree sessions cannot collide on disk. Conflicts appear at merge time instead.

"Own different files" is an instruction, and instructions are sometimes forgotten. A system that records who owns what, and refuses an edit that breaks it, is stronger. Git worktrees vs file leases compares the two approaches.

Permission prompts multiply

More workers means more prompts. The docs note that teammate permission requests bubble up to the lead, and suggest pre-approving common operations in your permission settings before spawning teammates.

That advice applies to every form of parallel work. Write your allow rules first. Keep deny rules for what must never run unasked. Then decide what happens to the prompts that remain when you are not at the terminal. Claude Code permission modes compared covers the built-in settings.

Cost in tokens

The docs are direct about cost: agent teams use significantly more tokens than a single session, and usage scales with the number of active teammates. Subagents are cheaper because only a summary returns. The docs suggest starting with three to five teammates and note that three focused teammates often outperform five scattered ones.

A practical habit: start with subagents. Move to a team only when you notice the workers would have done better by talking to each other.

What neither covers

Both features live inside one person's Claude Code on one machine. Neither covers a colleague's agents, a Codex session, or hundreds of headless workers in CI. For those you need coordination that lives outside any single session. Forkit vs Claude Code agent teams goes through that boundary in detail.

Where Forkit fits

Forkit does not replace subagents or agent teams. It adds what they leave out: an inbox for permission requests and questions that reaches you away from the terminal, file claims that are enforced, typed messages between agents that belong to different people, and fan-outs for headless workers. It connects through ordinary Claude Code hooks and is free during the beta. More at forkit-mcp.com.

Sources

Read on 16 Nov 2026: