Skip to main content

Agent Teams

Agent teams coordinate multiple Claude Code sessions around a shared task list. One session leads, the rest work as teammates — each with its own context window, tools, and the ability to message others directly. This is Claude Code's answer to distributed systems: independent processes, asynchronous communication, and minimal shared state.

Why Teams Exist

A single Claude Code session hits walls. Context windows fill. Sequential execution burns clock time on parallelizable work. One perspective misses what three would catch. Agent teams solve all three problems at once — parallel execution across independent context windows with built-in coordination.

The tradeoff is real: each teammate is a full Claude instance. A 3-person team costs roughly 4x a solo session (3 workers + lead). Teams earn their cost when the task decomposes into genuinely independent units.

When Multi-Agent Beats Single-Agent

ScenarioTeam?Why
3+ independent subtasks across different domains✓ YesParallel execution, no file conflicts
Competing hypotheses for a bug✓ YesFights anchoring bias
Security + performance + correctness review✓ YesDifferent perspectives in parallel
Sequential steps where each depends on the last✗ NoCoordination overhead exceeds benefit
Multiple agents editing the same files✗ NoOverwrites without worktree isolation
Simple, well-scoped task✗ NoSetup cost exceeds time saved

What's Inside

Explore the sub-pages for deep expertise:

  • Mental Model — Architecture patterns (orchestrator/worker, fan-out, pipeline, hierarchy) and the distributed systems mental model that makes teams predictable
  • Playbook — Production team architectures: code review teams, parallel test runners, research pipelines, and competing-hypotheses debugging
  • Compositions — Teams combined with hooks, skills, MCP, memory, and worktrees for production-grade workflows
  • Pitfalls — Context exhaustion, cost multiplication, worktree bugs, race conditions, and when teams make things worse