# How to install and use Claude Code Agent Teams (Reverse-engineered) <!-- ref: @content/youtube/ai-jason/how-to-install-and-use-claude-code-agent-teams-reverse-engineered tags: [Claude Code, agent teams, sub-agents, multi-agent coordination, task lists, debugging] version: 2 updated_at: 2026-11-24T05:07:52.800Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=S2WTTMXYcYY)** # How to install and use Claude Code Agent Teams (Reverse-engineered) *Synthesized from AI Jason, 2026-02-07; speakers are not named in the source.* A solo walkthrough of Claude Code's agent teams feature, from setup to the internal tools and message flow that the narrator recovered from model-call logs. ## Core Thesis The narrator argues that agent teams are a different mechanism from the older sub-agent Task tool. A team spawns several full Claude Code sessions that share a task list and message each other, so they can test competing hypotheses and challenge one another, where a single sub-agent tends to settle on the first plausible explanation. ## Key Insights - **Setup.** Update Claude Code to 2.1.34, set the experimental agent-teams environment key to `1` in the global settings.json, then start a new session. The captions render the key name loosely, so check the exact variable name before relying on it. - **Viewing teammates.** With iTerm2, enable the Python API option in General settings and restart; the teammate-mode tmux option then opens each teammate in split panes. - **Old model.** The Task tool spawns a sub-agent; when it finishes, the session ends and only its summary returns to the main agent. - **New tools.** The narrator lists team create (writes a team config under the teams folder, with an empty member list at first), task create (one JSON file per task with subject, description, status, and blocks and blocked-by fields), and an upgraded task tool that takes a team name and member name and starts a full Claude Code session per teammate. - **Task status.** Teammates use task update with pending, in progress, completed or deleted states, and dependencies decide when each task can be picked up. - **Messaging.** The send-message tool supports one-to-one messages and broadcasts, and the lead alone can send a shutdown request; team delete then closes the team. - **Message delivery.** Each agent has an inbox file with a read status. Messages are injected as new user turns wrapped in a teammate-message tag. - **Tracing.** The narrator traces model calls with a tool captioned "LAN fuse" through a stop hook, because a previous tracer no longer works with the latest Claude Code. - **Demo.** Five teammates investigated a hidden bug in a production codebase, each testing a hypothesis, broadcasting findings and trying to disprove the others, and the consensus was written to a findings document. ## Actionable Takeaways 1. Use agent teams when several hypotheses need parallel investigation and cross-critique; use the sub-agent Task tool for simple, one-answer work. 2. Run team members in a tmux split view (iTerm2 with the Python API enabled) so each session can be watched and messaged live. 3. Have teammates write their consensus to a shared findings document, and trace model calls to see what each agent received. ## Notable Quotes > "Cuz quite often, when you just use one sub agent, it tend to find one possible explanation and stop looking." — the AI Jason narrator > "This time you can spin up three to five different cloud code instance to collaboratively complete a task and project." — the AI Jason narrator --- *Related: `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/youtube/sean-kochel/opus-4-7-is-insanely-powerful-and-insanely-expensive` · `@content/youtube/yifan-bth/i-reverse-engineered-claude-code-learn-these-agent-tricks` · `@content/youtube/yifan-bth/the-complete-claude-code-workflow-90-skip-this` · `@content/youtube/tiago-forte/stop-overthinking-ai-use-this-4-step-framework`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*