Ask one Claude why something broke and it tends to pick the first plausible theory and run with it. Anthropic's docs call this anchoring.
Claude Code has an experimental feature called agent teams. Several Claude sessions work together, share a task list and message each other directly. This guide switches it on and gives you three prompts that make the team argue before it answers, without changing any of your files.
01 / 06
Turn it on
Agent teams are experimental and off by default. They need an interactive Claude Code session.
Open your
settings.json. For all projects it is~/.claude/settings.json, which on Windows isC:\Users\YOUR-NAME\.claude\settings.json. For one project it is.claude/settings.jsoninside that folder.Add this. If the file already has an
envsection, add only the middle line inside it.
{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1" } }
Save the file. Anthropic's docs say Claude Code reapplies
env values from settings when you save. If no team forms, restart Claude Code.
02 / 06
Turn it off again
Change "1" to "0" and save. This matters because, while teams are on, Claude can start a team without being asked. Anthropic's docs say a subagent that Claude names on its own launches as a teammate, and a team is a lot more expensive than one session. Switch it off when you are not using it.
{ "env": { "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "0" } }
03 / 06
Run a council
Pick one prompt, replace the words in capitals, and paste it. All three are research only. Anthropic's agent teams docs base their debugging example on teammates who try to disprove each other, and say the theory that survives is much more likely to be the real cause.
Download the ZIP for the settings lines, the three prompts and the limits in one folder.
04 / 06
What it costs
Each teammate is a separate Claude with its own context window. Anthropic's docs say agent teams use significantly more tokens than a single session, and the cost grows with each teammate. They suggest 3 to 5 teammates to start, and say a single session is cheaper for routine work. Keep councils for research and reviews.
05 / 06
Test it safely
Teammates start in the same permission mode as your session. If your permission checks are off, "research only" in the prompt is the only brake. (Source: Anthropic's agent teams page, Permissions section.)
Switch the setting on and run the bug-hunt prompt on something harmless, such as a small problem in a practice folder.
In the panel below the prompt, use the up and down arrows to pick a teammate. Press Enter to read what it is doing and type to message it. Press
xto stop it.Check that FINDINGS.md exists and that no other file changed.
Switch the setting off again.
Where was this tested? The settings lines and the limits were checked against Anthropic's agent teams page on 8 November 2026, and the settings snippets are valid JSON. The three prompts were not run in a live Claude Code session, so edit the wording if a team does not form as you expect. A prompt is a request, not a lock: check that "research only" was followed.
Common mistakes
Leaving teams switched on.
Claude can then start a team you did not ask for. Set the value to
"0"when you are done.Using a council for routine tasks. It costs far more than one session.
Starting with ten teammates. Begin with three to five.
Trusting the winner without checking. The theory left standing is the one to check first, not a proven answer.
Expecting split panes on Windows. Anthropic's docs say split panes are not supported in VS Code's terminal, Windows Terminal or Ghostty. The default in-process mode works anywhere.
Is this the same as subagents?
Not quite. Subagents mainly report their result back to whoever started them. In an agent team, teammates message each other directly and share a task list.
Is it safe to leave on?
It is experimental and can start a team without being asked, which uses much more of your plan. Switch it off when you are not using it.
What can go wrong?
Anthropic lists limits: resuming a session does not bring back in-process teammates, task status can lag, and each session can run one team.
Do I need to code?
No. You edit one line in a settings file, or let Claude do it after you say yes.
Finish line
What to do next
Switch teams on and run the bug-hunt prompt on a low-stakes problem.
Read FINDINGS.md and check the surviving theory yourself.
Switch teams off.
Back to all the free guides. Two that pair well with this one: prove your idea wrong before you build it and have a fresh Claude review Claude's work.
You reached the end of the guide