# Claude Code agent teams: setup, permissions and limits

> How to turn on Claude Code agent teams, start and steer teammates, pick split panes or in-process, and where teammates’ permission prompts land.

Updated November 19, 2026 · https://usecoral.app/guides/claude-code-agent-teams

Agent teams let one Claude Code session (the lead) spawn several more Claude Code sessions (teammates) that share a task list and message each other directly. They’re experimental and off by default: set `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` to `1`, then ask Claude for teammates in plain words. The part most guides skip is permissions. Teammates start with the lead’s permission mode, and every prompt a teammate raises shows up in the lead’s session, so a team of five can leave five requests waiting on one terminal.

As of November 2026, from Anthropic’s [agent teams docs](https://code.claude.com/docs/en/agent-teams). The feature is experimental and changes often, so Anthropic’s page wins if they disagree.

<p data-cta="guide_top">A team only moves as fast as your answers to its prompts. Coral shows every waiting Claude Code session in your Mac’s notch and on your iPhone, so the lead doesn’t sit there unseen. <a href="/download">Download Coral for free</a></p>

## How to turn on agent teams

Add the variable to your settings file (or export it in your shell):

```json
{
  "env": {
    "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
  }
}
```

Two side effects to know before you flip it:

- **Named subagents become teammates.** While teams are on, any subagent Claude gives a name to launches as a teammate, so a team can form when you only expected a subagent. Set the variable back to `0` to stop that; Claude Code rereads it the next time it spawns, so you don’t need a new session.
- **Only in interactive sessions.** With `claude -p` or the Agent SDK, Claude doesn’t spawn teammates, and named subagents stay ordinary subagents.

## Start a team and talk to teammates

Describe the work and the roles you want:

```text
Spawn three teammates to review PR #142: one on security, one on performance,
one on test coverage. Call them sec, perf and tests. Wait for all three,
then give me one list of findings.
```

Naming the teammates in your prompt gives you names you can use later (“ask perf to check the cache change too”). You can also pick models per teammate (“use Sonnet for each teammate”); otherwise they run on the lead’s model, and a teammate on the lead’s model gets the lead’s effort level too.

In the default in-process mode, teammates appear in a panel under the prompt:

| Key | What it does |
|---|---|
| ↑ / ↓ | Select a teammate |
| Enter | Open its transcript and message it directly |
| Esc | Clear the selection; while viewing a teammate, interrupt its turn |
| `x` | Stop the selected teammate |
| Ctrl+T | Show or hide the shared task list |

While you’re viewing a teammate, what you type goes to it, but built-in commands still act on the lead: `/model` and `/fast` won’t run from there, and `/compact`, `/clear` and `/rewind` ask you to confirm first. To end a teammate, ask the lead (“ask sec to shut down”); the teammate finishes its current step first.

## Split panes or in-process

| | In-process (default) | Split panes |
|---|---|---|
| Where teammates run | Inside your one terminal | One pane each |
| Needs | Nothing | tmux, or iTerm2 with the `it2` CLI and its Python API turned on |
| Setting | `teammateMode` unset | `"teammateMode": "auto"` in `~/.claude/settings.json` |
| Permission mode | Follows the lead’s auto, accept-edits or bypass mode (see below) | Its own, switched with Shift+Tab in its pane |

With `"auto"`, teammates open in panes when Claude Code runs inside tmux or iTerm2, and in-process anywhere else. Use `"tmux"` to force a separate tmux session (the prompt shows a `View teammates` command to attach to it), or `"iterm2"` for iTerm2’s own panes. For one session, pass `claude --teammate-mode auto`. If a tmux session outlives the team, `tmux ls` and `tmux kill-session -t <name>` clean it up. More on tmux setups in [Claude Code over SSH and tmux](https://usecoral.app/guides/claude-code-ssh-tmux).

## Permissions: where teammates’ prompts go

This is where teams get slow.

- **Teammates start in the lead’s mode.** You can’t set a different mode per teammate at spawn. If the lead runs with `--dangerously-skip-permissions`, every new teammate starts in bypass mode too. A lead in `dontAsk` mode is the exception: its teammates start in Manual. See [what --dangerously-skip-permissions skips](https://usecoral.app/guides/claude-code-dangerously-skip-permissions) before you start a team that way.
- **In-process teammates can’t be stricter than the lead.** While the lead is in accept-edits, auto or bypass mode, an in-process teammate runs in that mode even if you switch it to Manual and its status bar says Manual. To make it ask before editing, switch the lead to Manual as well.
- **Every prompt lands in the lead’s session.** A teammate’s permission request bubbles up to the lead, and you approve it there. Plan approvals are the exception: a teammate that started in plan mode gets its plan approved automatically, unless you put it in plan mode yourself with Shift+Tab, in which case the lead reviews it.
- **Teammates can’t approve for you.** A message from another agent is marked as coming from another Claude session. A teammate can’t answer a prompt or give consent on your behalf, and in auto mode the classifier treats a relayed “approved” as untrusted.
- **`--allowedTools` doesn’t reach split-pane teammates.** In-process teammates follow the lead’s live allow and deny rules. Split-pane teammates get `--disallowedTools` and `--tools` (from v2.1.309), but not `--allowedTools`. Put pre-approvals in `permissions.allow` instead, for example `claude --settings '{"permissions":{"allow":["Bash(npm *)"]}}'`.

Anthropic’s own fix for “too many permission prompts” is to pre-approve the common commands before you spawn the team. [Fewer Claude Code permission prompts](https://usecoral.app/guides/claude-code-permission-prompts) shows which rules are safe to add.

<p data-cta="guide_body">Prompts from five teammates all queue in one terminal. Coral puts each waiting Claude Code prompt in your Mac’s notch with the full command, so you answer with one key from any app. <a href="/download">Get Coral for free</a></p>

## Agent teams vs subagents

| | Subagents | Agent teams |
|---|---|---|
| What they are | Helpers inside one session | Separate Claude Code sessions |
| Talk to | The caller (named ones can message each other) | Each other, by name, plus a shared task list |
| Your view | Results come back to the main thread | Open any teammate and message it directly |
| Token cost | Lower: results are summarized back | Higher: each teammate has a full context |
| Nesting | Run inside a session | Teammates can’t spawn teammates |
| Best for | Focused jobs where only the answer matters | Work where agents should argue, split files, or check each other |

Teams cost more: Anthropic puts a team at about 7x the tokens of one session when teammates run in plan mode (see [Claude Code usage limits](https://usecoral.app/guides/claude-code-usage-limits)). For work you’d rather split by hand, separate sessions in worktrees are the cheaper option: [Run several Claude Code agents at once](https://usecoral.app/guides/run-multiple-claude-code-agents). For how teams compare with subagents and other ways to split work, see [agent orchestration](https://usecoral.app/glossary/agent-orchestration).

## Limits to plan around

- **No resume for in-process teammates.** `/resume` and `/rewind` don’t bring them back. After resuming, tell the lead to spawn new ones.
- **One team per session,** and the lead stays the lead. No nested teams.
- **Task status can lag.** A teammate may forget to mark a task done, which blocks the tasks that depend on it. Check the work and nudge it.
- **Same-file edits overwrite.** Give each teammate its own files.
- **Start small.** Anthropic suggests 3 to 5 teammates and 5 or 6 tasks each. Three focused teammates often beat five scattered ones.

Hooks can enforce quality: `TeammateIdle`, `TaskCreated` and `TaskCompleted` can each exit with code 2 to send feedback and keep a teammate working or stop a task from closing. Examples of hook scripts are in [Claude Code hooks](https://usecoral.app/guides/claude-code-hooks).

## Where Coral fits

A team runs in parallel until it needs you, and then every request waits in the lead’s terminal. [Coral](https://usecoral.app/features) shows each waiting Claude Code session in your Mac’s notch, next to Codex, Copilot, OpenCode and Grok, with whoever has waited longest first:

- **Answer with one key.** Press 1, 2 or 3 with the full command in front of you. ⌘Z takes it back within two seconds.
- **From any app.** A card drops from the notch when the lead asks; ⌃⌥1 answers without leaving your editor.
- **Away from your Mac.** Alerts on your iPhone are Free; answering from the phone straight to the agent is [Pro](https://usecoral.app/pricing).

You keep teammates in Manual mode and still get the parallel speed-up.

## Questions

### How do I enable agent teams in Claude Code?

Set `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS` to `1`, in your shell or under `env` in `settings.json`, then ask Claude to spawn teammates for a task. The feature is experimental and off by default.

### What’s the difference between agent teams and subagents?

Subagents work inside one session and report results back to it. Teammates are separate Claude Code sessions with their own context that message each other and share a task list, and you can talk to any of them directly. Teams cost more tokens.

### Can teammates have their own permission mode?

Not at spawn: each starts in the lead’s mode. You can switch a teammate with Shift+Tab later, but an in-process teammate follows the lead while the lead is in accept-edits, auto or bypass mode.

### Where do teammates’ permission prompts appear?

In the lead’s session. Each teammate’s request bubbles up to the lead and you approve it there, so pre-approve common commands before you spawn a big team.

### How many teammates should I use?

Anthropic suggests starting with 3 to 5, each owning separate files, with about 5 or 6 tasks per teammate. Token use grows with every teammate.

### How do I get teammates in tmux panes?

Install tmux (or set up iTerm2 with the `it2` CLI), set `"teammateMode": "auto"` in `~/.claude/settings.json`, and start `claude` inside tmux or iTerm2.
