All Days
Day 25

Agent Teams — Multiple Claude Sessions Talking to Each Other

Claude Code // Day 25

Multiple full Claude sessions.
Talking to each other.
Self-coordinating.

Experimental Feature StatusPeer-to-Peer Messaging ModelShared Task List Coordination Layer
01 // Critical Distinction

Subagents vs Agent Teams

These are not the same thing. Most people confuse them. Here is the difference that matters.

Subagents

Stable Feature
  • Fan-out from one parent session
  • Return results only, no peer comms
  • Parent decides, children execute
  • Cheaper: lightweight spawned processes
  • One-way: parent sends task, child returns result
  • Good for parallelizable, independent tasks

Agent Teams

Experimental
  • Each teammate is a full Claude session
  • Talk to each other directly (peer-to-peer)
  • Self-coordinate through shared task list
  • Can challenge, review, build on each other's work
  • Higher cost: each teammate = full instance
  • Good for complex, interdependent work
02 // Setup

How to Enable Agent Teams

Agent teams require an experimental flag. This means the feature is functional but the API may change without warning in future releases.

settings.json
// In your settings.json (project or user-level) { "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }

What "experimental" means

1.The feature works and is usable in production workflows
2.The API surface (env var name, spawning syntax) may change
3.You need to explicitly opt in — it will not activate by default
4.Cost implications are real: each teammate is a full Claude instance
03 // The Architecture

How Agent Teams Actually Work

This is the mental model. You talk to the lead session. The lead assigns work to teammates. Teammates talk to each other. Everyone sees the shared task list.

04 // Spawning a Team

Actual Prompts That Work

The key pattern: define each teammate's role, scope, and the lead's coordination responsibility. Be explicit about who does what.

Example 1: Research Team
Example 2: Full-Stack Feature Build
Example 3: Security Audit
Example 4: Board of Directors (Business Use)
06 // Shared State

The Task List

The shared task list is the coordination layer. It is visible to every teammate. It is how agents self-organize without constant human intervention.

Lead Creates
The lead session defines and populates the task list based on the overall goal.
Teammates Self-Assign
Unclaimed tasks can be picked up by any teammate. Self-organizing when roles overlap.
Visible to All
Every teammate sees the full list. No information silos. Everyone knows who is doing what.
07 // Decision Framework

Teams vs Subagents: When to Use Which

Click through the questions to get a recommendation.

Question 1 of 4
Do workers need to communicate with each other?
08 // Cost Reality

What Agent Teams Actually Cost

No sugarcoating. Each teammate is a full Claude instance. A 4-person team costs roughly 4x what a single session costs. Here is when that is worth it.

The Math: 1 teammate = 1 full Claude session (same context window, same token usage, same cost per token). A 4-person team running for 30 minutes each = cost of 4 individual 30-minute sessions running in parallel.
Use CaseComplexityPeer Comms Needed?Verdict
Parallel file edits (independent)LowNoSubagents
Code generation + tests (same feature)MediumNice to haveEither
Full-stack feature (API + UI + tests)HighYesTeams
Security audit (multiple domains)HighYesTeams
Linting / formatting batchLowNoSubagents
Architecture reviewHighCriticalTeams
Data migration scriptsMediumMinimalSubagents
Competing hypotheses (debug)HighEssentialTeams
09 // Real Prompts

5 Ready-to-Use Team Configurations

Copy, adapt to your codebase, run. Each is a complete prompt.

1. Client Build Team (AY Automate Pattern)
2. Competing Bug Hypotheses
3. Content Strategy Team
4. Security Audit Team
5. Architecture Review Team
10 // Knowledge Check

Quiz: Agent Teams

Question 1 of 4
What environment variable enables agent teams?
Question 2 of 4
How do teammates communicate with each other (not through the lead)?
Question 3 of 4
What is the main difference between agent teams and subagents?
Question 4 of 4
How do you cycle between teammates in the terminal?
don't miss what's next.
playbooks, templates, and tools that actually save you hours. straight to your inbox. no spam. unsubscribe anytime.