Claude Code Agent Teams is an experimental Anthropic feature that gives every teammate its own session instead of sharing one context window. You enable it in settings.json, start a TMUX session, and then ask for a team in plain language. This guide walks through the three modes, the setup flags, shutdown, and cost tracking.
What are Claude Code Agent Teams?
Claude Code Agent Teams is an experimental feature of Claude Code, Anthropic terminal-based coding tool, in which a lead agent splits a request into tasks and runs several teammates, each in its own session. Anthropic introduced it as a research preview alongside the Opus 4.6 model in February 2026 according to contemporary coverage. It sits beside the older default mode and subagent mode rather than replacing them.
Treat the word feature as load-bearing. In the February 2026 coverage the capability is described as a research preview shipped with Opus 4.6, not as long-settled general availability. That status matters because it means configuration keys, defaults, and shutdown behavior can change between releases.
Default mode, subagents, and agent teams compared
The three Claude Code modes differ mainly in how many sessions exist and how much context returns to the caller. Default mode is one session. Subagent mode is one main session whose helper returns only a summary. Agent teams give every teammate its own session and let them message each other.
The practical consequence of that split is token accounting and context loss. A default session degrades as it fills; a subagent protects the main context by reporting only an outcome; a team spreads work across separate windows that each hold their own history.
| Mode | Sessions | What returns to the caller | Best use |
|---|---|---|---|
| Default | One | Everything in one thread | Setup, model choice, skills, orchestrating the project |
| Subagents | One main plus hidden helpers | A summary of the delegated task | Focused jobs where you only need the result |
| Agent teams | One per teammate | Meetings, messages, and per-agent state | Wide tasks that benefit from parallel viewpoints |
In the transcript, the host uses a security-company analogy: the control room is default mode, a single officer sent to investigate is a subagent, and a full team securing a building floor by floor is an agent team. The analogy maps to the session count, not to model quality.
How to enable Claude Code Agent Teams
You enable Claude Code Agent Teams by updating Claude Code and adding two keys to settings.json, then starting a TMUX session before launching Claude Code. Without the TMUX step there are no split panes, and the agents talk over each other in one terminal.
The setup in the transcript, recorded on macOS, ran as follows:
- Run the update command so Claude Code checks for and installs the current version.
- Open settings.json and set the split-pane option to true.
- In the same file, set the experimental agent-teams option to 1.
- Install TMUX if it is missing; the install typically takes a minute or two.
- Start a TMUX session first, then launch Claude Code inside it.
The host applied those two settings globally so agent teams would be available across sessions instead of being reconfigured per project. Mark that as a personal preference in the transcript, not an Anthropic recommendation.
Why TMUX split panes matter for multi-agent sessions
TMUX split panes give each teammate a separate terminal view, which is the difference between watching five interviews in one noisy room and giving each interviewee a room of their own. Without split panes, the in-process mode mixes every agent's output into a single stream.
A practical limit: TMUX runs in a normal terminal, not inside editors. In the transcript the host states that TMUX will not work inside VS Code or Cursor and has to run in the core terminal app. If you code inside an editor, keep a separate terminal window for the team.
Once a team is running, the split view lets you click into one agent's pane and type to it directly, asking what it is working on or handing it new instructions. That direct channel exists alongside the lead agent's assignments.
What the lead agent does with your request
The lead agent reads your request, breaks it into tasks, writes a prompt for each teammate, and then spawns them. Teammates do not inherit the full conversation history, so anything you discussed in an earlier default session has to be handed over deliberately.
Two behaviors are worth planning around. First, the task list is shared, and Anthropic guards against two agents claiming the same task at once, so you do not pay twice for identical work. Second, the lead decides how many teammates to create; in the recorded research run it spawned five panes rather than the four the host expected.
Because teammates start cold, the transcript recommends writing a project memory file in default mode before opening a team, then instructing the lead to point each teammate at it. A shared memory file that logs bugs and fixes also survives a full team shutdown, so later agents can read it.
Model choice and effort settings inside a team
You can assign cheaper models to teammates, and effort levels on Opus 4.6 trade capability for token savings. A four-agent refactor does not need the most expensive model in every pane.
In the transcript the host distinguishes a 200,000-token Opus 4.6 option from a 1-million-token option, describing premium pricing for usage above 200,000 tokens in the larger configuration. He also recommends starting at low effort and stepping up to medium and high only when a task stalls. Verify current model names, context limits, and per-token prices on Anthropic own pages before budgeting, since those change.
Shutting down agents and reading session cost
The lead agent usually closes the team when every task is complete, but you can also ask it to shut down a named teammate mid-run to stop spending tokens. The teammate can refuse if it believes its work is at a critical stage, and it explains why.
For research tasks the shutdown is total: sessions close and resources are released. For coding work the transcript describes a different pattern, where the lead keeps the team or some agents idle so you can send a failing test back to the backend agent or ask the QA agent to recheck a fix. Those teammates still hold their accumulated context.
Cost reporting deserves caution. In the recorded run, five agents produced a reported $1.15 over about four minutes, yet one agent's own counter showed over five minutes of work. The host flags the discrepancy on camera and notes that durations for parallel agents should compound. Treat the session cost tab as a rough signal and check it after each run.
Turning a repeatable team into a Claude Code skill
A Claude Code skill stores a repeatable process so you do not retype the prompt, and a team workflow is a good candidate. Run the process once by hand, adjust it, then ask Claude Code to convert it into a skill with variables.
The transcript's sequence is: run a research team, iterate on the output, then prompt for a skill that accepts a topic argument and a model override. The skill is saved to the project, appears in the slash-command list, and must be invoked in a new session. Skills then become the reusable shell around the team pattern rather than a per-run prompt.
FAQ
- Do Claude Code Agent Teams work inside VS Code or Cursor? No. The split-pane view needs TMUX running in a standard terminal, and the host in the February 2026 walkthrough states it will not work inside VS Code or Cursor. Keep a separate terminal window open for team sessions.
- Do teammates see my earlier conversation in default mode? Teammates do not receive the full conversation history. Write the context to a memory file in default mode and instruct the lead agent to point each teammate at it.
- Can two agents claim the same task? Anthropic includes a check against simultaneous task claims, so once one agent takes a task the others cannot claim it. This avoids paying twice for identical work.
- Why is the reported session duration wrong? Output from parallel agents can produce inconsistent duration figures, and the host notes that durations should compound across five-minute agents. Compare the cost tab against individual agent counters before trusting either number.
- When does the team shut down automatically? The lead agent closes the team when all tasks are complete. For coding work it may keep agents idle so you can send follow-up fixes without losing their accumulated context.
Where a Brazilian developer community fits
The patterns above reward deliberate practice: writing memory files, naming named agents for shutdown, and turning a workflow into a skill. Communities that teach this hands-on help. Gustavo Dev Doido runs the Crazystack Typescript track and the Bootcamp do Dev Doido, which cover TypeScript and full-stack fundamentals for developers who want structured practice rather than scattered tips.
If you are building a team workflow inside a real product, the Crazystack curriculum is a reasonable place to check whether your JavaScript and TypeScript foundations are ready. YouBlog also covers tooling like this, and the practical value comes from running a small team on a bounded task before spending on a large one.
From a recorded walkthrough to a written guide
A 22-minute walkthrough carries details a transcript alone does not, such as the exact settings keys, the pause before TMUX, and the cost figure the host questions on screen. Writing those details into a structured article lets a reader follow the setup without scrubbing a video timeline.
If you have a video that explains a workflow, a fix, or a lesson worth keeping, YouBlog turns it into a written article.