Claude Code Agent Teams Collaboration Guide
Claude Code Agent Teams enables multiple Claude instances to collaborate in parallel on complex engineering tasks. One Lead Agent coordinates, multiple Teammate Agents execute subtasks in parallel — 3-5x efficiency gain.
Agent Teams vs Subagents
Two multi-agent modes for different scenarios — understand when to choose Agent Teams vs lightweight subagents.
| Dimension | Agent Teams | Subagents |
|---|---|---|
| Collaboration Mode | Multi-session parallel, Lead coordinates | Same-session sequential invocation |
| Scale | Large projects (>1000 line changes) | Small/medium tasks, quick delegation |
| Communication | Shared task list + mailbox messages | Direct function calls |
| Model Requirement | Lead requires Opus 4.6+ | Any model |
Collaboration Architecture
Lead Agent acts as project manager for task decomposition and result aggregation; Teammate Agents execute specific subtasks in parallel.
Lead (Coordinator)
Lead Agent (Opus 4.8)
Shared Task List
All agents read/write
Mailbox
Inter-agent messaging
Teammate 1
Frontend tasks
Teammate 2
Backend tasks
Teammate 3
Testing tasks
Lead Agent
The team's 'project manager', uses Opus 4.8, responsible for understanding requirements, decomposing tasks, assigning to Teammates, and aggregating results.
Teammate Agent
Dedicated agents executing specific subtasks, can use Sonnet 4.6 for cost savings. Upon completion, writes results to the shared task list.
Shared Task List
A structured task checklist shared by all agents. Lead creates tasks, Teammates claim and update status — coordination without conflicts.
Mailbox Communication
Async messaging system between agents for passing complex context, requesting clarification, or reporting intermediate results — avoiding direct call coupling.
Enable & Configure
Declare Agent Teams working mode in CLAUDE.md and Claude Code will automatically enable multi-agent collaboration in suitable scenarios.
Prerequisites
- Claude Code v2.1.32 or higher
- Lead Agent uses claude-opus-4-8 model
- QCode.cc API Key (supports Fable 5 / Opus 4.8)
Using via QCode.cc
QCode.cc fully supports all models needed for Agent Teams (Fable 5 / Opus 4.8 / Sonnet 4.6), with no limits on parallel multi-session requests.
CLAUDE.md Configuration Example
# CLAUDE.md — enable Agent Teams mode
# Tell Claude that launching multi-agent collaboration is allowed
## Agent Teams configuration
- Complex tasks are automatically split into subtasks
- Up to 5 parallel Teammate Agents
- Lead Agent uses claude-opus-4-8
- Teammate Agent uses claude-sonnet-4-6
## Task assignment principles
- Frontend/backend/testing can run in parallel
- Communicate through the mailbox when shared context is needed
- Each Teammate updates the shared task list once done
Custom Subagents (@ mention)
Claude Code v2.1.32+ supports defining and invoking expert subagents via @ syntax, giving every task type its own dedicated AI.
What are Custom Subagents
Create Markdown files in .claude/agents/ to define dedicated roles, capability boundaries, and behavioral guidelines. When @ invoked, the subagent handles that task type with a specialized persona for more focused, professional output.
Usage Examples
@security-auditor
Focused security vulnerability auditing
@perf-optimizer
Performance bottleneck analysis and optimization
@doc-writer
API documentation and comment generation
Define a Custom Subagent
# .claude/agents/security-auditor.md
---
name: security-auditor
description: Dedicated security-audit Agent that analyzes code for vulnerabilities
model: claude-opus-4-8
tools: [read_file, bash]
---
You are a senior security engineer focused on:
- OWASP Top 10 vulnerability detection
- SQL injection and XSS protection
- Review of authentication and authorization logic
- Dependency security scanning
When you receive code, output a structured vulnerability report.
10x Engineering Efficiency with Agent Teams
Register at QCode.cc for a stable Fable 5 / Opus 4.8 developer platform and unlock Agent Teams' full collaboration capabilities.