Download Beam

How to Use Claude Code Agent Teams: Complete Setup Guide

February 2026 • 10 min read

On February 5, 2026, Anthropic shipped Claude Opus 4.6 alongside the biggest Claude Code feature drop yet: agent teams. Instead of a single agent working through your tasks sequentially, you can now orchestrate multiple Claude Code instances that coordinate autonomously, challenge each other's findings, and tackle complex codebases in parallel.

This guide walks you through everything you need to know: what agent teams are, how to enable and configure them, when they make sense over a single session, and how to use Beam to keep your multi-agent workflow organized.

Agent Teams: Parallel Coordination Team Lead Agent 1: Security Agent 2: Performance Agent 3: Tests Agents message each other directly Coordinated Output Synthesized findings from all agents

What Are Agent Teams?

Agent teams are a new experimental feature in Claude Code that lets you coordinate multiple Claude Code instances working together on the same project. One session acts as the team lead, orchestrating the work, while separate teammates each operate in their own context window, working independently and communicating directly with each other.

This is fundamentally different from subagents. Subagents are lightweight helpers that report results back to a single parent session and cannot talk to each other. Agent team members, on the other hand, message directly, challenge each other's findings, and self-coordinate through a shared task list.

The architecture consists of four components:

Subagents vs. Agent Teams at a Glance

Subagents: Own context window, report results back to main agent only, lower token cost. Best for focused tasks where only the result matters.

Agent Teams: Own context window, teammates message each other directly, shared task list with self-coordination, higher token cost. Best for complex work requiring discussion and collaboration.

When to Use Agent Teams

Agent teams add coordination overhead and consume significantly more tokens (roughly 5x per teammate) than a single session. They are not the right tool for every task. Reserve them for work that genuinely benefits from multiple perspectives working in parallel:

For sequential tasks, same-file edits, or work with many dependencies between steps, stick with a single session or subagents. Agent teams shine when teammates can operate independently.

Step-by-Step Setup

Agent teams are experimental and disabled by default. Here is how to enable and start using them.

1. Enable the Feature Flag

Set the CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS environment variable to 1. You can do this in your shell profile or in your Claude Code settings.json:

{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  }
}

Or export it directly in your terminal before launching Claude Code:

export CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1

2. Choose a Display Mode

Agent teams support two display modes:

To set split-pane mode in your settings:

{
  "teammateMode": "tmux"
}

Or pass it as a flag when launching:

claude --teammate-mode tmux

3. Create Your First Agent Team

Once enabled, simply tell Claude Code to create an agent team and describe the task in natural language. Claude spawns the teammates and coordinates work based on your prompt:

Create an agent team to review the authentication module.
Spawn three reviewers:
- One focused on security implications
- One checking performance impact
- One validating test coverage
Have them each review and report findings.

Claude creates the team, assigns roles, and the teammates begin working in parallel immediately.

4. Interact with Teammates

Each teammate is a full, independent Claude Code session. You can message any teammate directly:

5. Use Delegate Mode

Sometimes the lead starts implementing tasks itself instead of delegating. Press Shift+Tab to cycle into delegate mode, which restricts the lead to coordination-only tools: spawning, messaging, shutting down teammates, and managing tasks. This keeps the lead focused on orchestration.

6. Clean Up When Done

When work is complete, ask the lead to shut down teammates and clean up:

Ask all teammates to shut down, then clean up the team.

The lead sends shutdown requests to each teammate (they can approve or reject with an explanation), then removes shared team resources. Always clean up through the lead, never through a teammate.

Pro Tip: Require Plan Approval

For risky or complex changes, you can require teammates to plan before implementing. The teammate works in read-only plan mode until the lead approves their approach. Tell the lead: "Require plan approval before they make any changes." You can also give the lead criteria like "only approve plans that include test coverage."

Organizing Agent Teams with Beam

Running three or more parallel Claude Code agents is powerful, but it creates an immediate organizational challenge: you need to track what each agent is doing, jump between them quickly, and keep their output separated. This is exactly the problem Beam was built to solve.

One Workspace Per Agent Team

Create a dedicated Beam workspace for your agent team. Press ⌘N to create a new workspace and name it after the task (e.g., "Auth Module Review"). Within this workspace:

If you are using split-pane display mode with tmux, Beam's split panes (⌘⌥⌃T) let you see multiple agent outputs side by side within a single tab.

Quick Switcher for Agent Navigation

Press ⌘P to open Beam's Quick Switcher and fuzzy-search across all your workspaces, tabs, and layouts. When you have multiple agent teams running across different projects, this is the fastest way to jump to the exact agent you need.

Save Your Agent Team Layout

Once you have your agent team workspace configured perfectly, press ⌘S to save it as a layout. The next time you spin up an agent team for a similar task, restore the layout and your entire workspace structure is back instantly.

Real Workflow Example: Codebase Review with 3 Agents

Here is a concrete example of running a parallel code review using agent teams, organized with Beam.

Step 1: Set up your Beam workspace

  1. Create a workspace named "PR Review #142"
  2. Open 4 tabs: Lead, Security, Performance, Tests

Step 2: Launch the agent team

Create an agent team to review PR #142. Spawn three reviewers:
- One focused on security implications
- One checking performance impact
- One validating test coverage
Have them each review and report findings.

Step 3: Monitor parallel progress

Each agent works independently in its own context window. The security reviewer examines token handling and input validation. The performance reviewer profiles database queries and memory usage. The test reviewer checks coverage gaps and edge cases. They can message each other directly -- for example, if the security reviewer finds an unvalidated input, it can alert the test reviewer to check whether that path has coverage.

Step 4: Review synthesized findings

When all agents finish, the lead synthesizes their findings into a unified report. You have three thorough, independent analyses instead of one reviewer that gravitates toward a single type of issue.

Why This Works Better Than Sequential Review

A single reviewer tends to anchor on the first category of issues they find. With agent teams, each reviewer applies a dedicated lens from the start. Security, performance, and test coverage all get thorough attention simultaneously, and agents can challenge each other's findings in real time.

Tips for Getting the Most Out of Agent Teams

Real-World Scale: The C Compiler Experiment

To demonstrate what agent teams can do at scale, Anthropic ran an experiment where 16 parallel Claude agents wrote a 100,000-line C compiler (implemented in Rust) in just two weeks. The compiler can compile the Linux 6.9 kernel, QEMU, FFmpeg, SQLite, PostgreSQL, and Redis, achieving a 99% pass rate on the GCC test suite. While most teams will operate at a smaller scale, this shows the ceiling of what coordinated parallel agents can accomplish.

Organize Your Agent Teams with Beam

Running parallel Claude Code agents is powerful -- but only if you can keep track of them all. Beam gives you workspaces, tabs, Quick Switcher, and saveable layouts to keep every agent organized.

Download Beam for macOS

Summary

Claude Code agent teams, launched with Opus 4.6 on February 5, 2026, let you orchestrate multiple Claude Code instances that work in parallel, communicate directly with each other, and coordinate through a shared task list. They are the most powerful tool yet for codebase reviews, multi-module features, competing-hypothesis debugging, and cross-layer changes.

To get started:

  1. Enable the feature with CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
  2. Tell Claude Code to create a team and describe your task in natural language
  3. Use Beam to organize each agent into its own tab or pane for clean parallel tracking
  4. Monitor, steer, and let the lead synthesize results when agents finish

Agent teams are experimental and have known limitations around session resumption, shutdown timing, and one-team-per-session constraints. But for the right tasks, they represent a genuine step change in what a single developer can accomplish with AI-assisted coding.