Skip to content

ProperPath

Menu

Free resources · Notes and skills

Claude agent teams, and when a job is worth one

What claude agent teams are, how they differ from subagents, when a job is worth one, what a team costs, and the plan to write before your first one.

Built by ProperPath

What is a Claude agent team?

A Claude agent team is one Claude Code session, the lead, that starts other full Claude Code sessions, its teammates, and runs them on one job. The lead turns the job into a shared task list, teammates claim tasks from it, and they message each other by name.

Each teammate has its own context window, the working memory that holds what it has read and said. It starts with your project's CLAUDE.md, MCP servers (the connections that give Claude outside tools) and skills, plus the lead's instructions, but not the lead's conversation. Claude Code agent teams are experimental and off until you turn them on.

Three other setups get called "a team":

Is your job worth a team?

A job is worth a team when its parts can run apart and the result gets better from discussion: a review where each teammate takes one lens, a bug with several possible causes, or separate modules that each teammate owns. One session does better, and costs less, on steps that wait on each other, edits to one file and routine tasks.

Every agent makes small choices as it works, and none of them can see the choices made in another context window. When those choices clash, the combined result goes bad. In our view, messages between teammates narrow that gap but do not close it.

What does a team cost?

A team costs several times one session, because every teammate is a separate Claude instance with its own context. With teammates in plan mode (planning before editing), a team uses about 7 times the tokens (the units Claude usage is measured in) of a standard session.

The bill grows with each teammate you add and each minute it runs, so start with three, name Sonnet for each teammate in your request, and have the lead shut each one down when its work is done.

How do you turn agent teams on?

Set one environment variable to 1, in your user settings file, ~/.claude/settings.json, or in your shell before you start Claude Code:

{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  }
}
export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1

The export line lasts only for that terminal window. Then describe the job and the teammates you want in plain words. Teams start only in an interactive session, never in a script run with the -p flag. Ask for "an agent team" by name, because Claude sometimes uses subagents instead, and both show in the same agent panel.

While the variable is 1, a subagent that Claude names on its own, to message it later, launches as a teammate, so a team can form without your asking. To stop it, turn teams off: set the variable to 0 in ~/.claude/settings.json. A 1 in a higher-ranked file still wins: project settings in .claude/settings.json, local settings, or a company-managed setting.

Why must each teammate own its own files?

When two teammates edit the same file, no merge conflict warns you. The later write replaces the earlier one, and that work is gone. So split the job by files, with each set owned by exactly one teammate. A review, which changes no code, avoids the problem and makes a good first team.

What should you write before your first team?

Write the lead's whole plan in one file before the team starts. Give it only to the lead. The shared task list holds tasks, and this file holds what the task list does not: the job's goal, its questions and when the job is done.

A sample job to practise on:

Job: review pull request 142 before it merges.
It changes three files:
  src/auth/login.ts      (sign-in)
  src/db/orders.ts       (database queries)
  tests/orders.test.ts   (tests for the new code)
Questions: is sign-in safe? are the queries fast? is the new code tested?

Save the plan with one line for the goal, one per question and one for when the job is done. In a terminal, run this (our own wording, untested):

mkdir -p ~/team-plan && cd ~/team-plan
cat > lead-plan.txt <<'EOF'
goal: review pull request 142 before it merges
question: is sign-in safe?
question: are the queries fast?
question: is the new code tested?
done when: every question has an answer the lead has read
EOF
grep -c "^question:" lead-plan.txt

When you ask for the team, start your request with: read ~/team-plan/lead-plan.txt first (our own wording, untested).

Then do the same for one job of your own, and change any private names (clients, repositories, paths) if you share the file.

Where can you read more?

Check: does your plan hold every question?

The last command prints 3. Count the questions on the sample job's "Questions:" line: there are three, so the numbers match. A different number means a question is missing, doubled or mistyped. For your own job, the number must equal the questions you wrote down before you made the file.