You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Agent Teams — Let Specialists Collaborate as a System
9
+
10
+
## Why Teams Are Helpful
11
+
12
+
A single agent can execute many tasks, but complex work often benefits from multiple specialists coordinating: architecture, implementation, QA, and documentation.
13
+
14
+
Agent teams help when:
15
+
16
+
- the task spans multiple disciplines
17
+
- you need parallel work with role-specific quality bars
18
+
- one coordinator should keep global constraints while specialists execute
19
+
20
+
This makes "agents talking to each other" explicit and structured instead of ad hoc.
21
+
22
+
## Claude Code Agent Teams
23
+
24
+
Claude Code supports team definitions in:
25
+
26
+
-`.claude/agents/team/**/*.md`
27
+
28
+
The tooling includes:
29
+
30
+
-`/agents` to manage agents
31
+
-`/agents-team` to create and manage agent teams
32
+
33
+
Team packs can define:
34
+
35
+
- a main architecture/orchestrator agent
36
+
- specialist teammate agents
37
+
- collaboration patterns between teammates
38
+
39
+
## Team Design Pattern
40
+
41
+
Start with three roles:
42
+
43
+
1.**Coordinator** — owns goals, constraints, and final synthesis
44
+
2.**Builder** — implements changes and reports verification
45
+
3.**Reviewer** — validates risks, regressions, and policy alignment
46
+
47
+
Add more roles only when repeated bottlenecks appear.
48
+
49
+
## When to Use Teams vs Sub-Agents
50
+
51
+
Use **sub-agents** when one primary agent can still coordinate effectively and you only need targeted delegation.
52
+
53
+
Use **agent teams** when collaboration itself is the core challenge and role boundaries should be persistent.
54
+
55
+
## Common Mistakes
56
+
57
+
**Too many roles too early.** Start lean; scale roles from real pain points.
58
+
59
+
**Role overlap.** If two teammates own the same decision, accountability becomes unclear.
60
+
61
+
**No integration checkpoints.** Require merge checkpoints and explicit handoffs.
62
+
63
+
## References
64
+
65
+
-[Claude Code: Agent teams (official)](https://code.claude.com/docs/en/agent-teams)
Copy file name to clipboardExpand all lines: docs/05-tool-guides/claude-code.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,9 +86,13 @@ project/
86
86
87
87
## Key Features
88
88
89
-
**Skills**: Claude Code supports custom skills — reusable command patterns stored in `.claude/skills/`. Use these for repetitive workflows like "write tests for this module" or "review this PR."
89
+
**Skills**: Capture repeatable workflows once and reuse them across tasks. This reduces prompt repetition and increases consistency. See the [Skills Guide](skills.md).
90
90
91
-
**Hooks**: Shell commands that run automatically before or after tool calls. Useful for enforcing guardrails programmatically (e.g., run linter after every file edit). See the [Hooks Guide](hooks.md).
91
+
**Hooks**: Enforce deterministic checks around editing and execution. This closes the gap between instructions and actual runtime behavior. See the [Hooks Guide](hooks.md).
92
+
93
+
**Sub-agents**: Delegate larger work units to specialized agents while keeping the main chat focused on coordination and decisions. See the [Sub-Agents Guide](sub-agents.md).
94
+
95
+
**Agent teams**: Define teammate-style specialist collaboration for complex, multi-role tasks. See the [Agent Teams Guide](agent-teams.md).
92
96
93
97
**File references**: Use `@filename` in CLAUDE.md to reference other documentation files (up to 5 levels deep).
Guidelines describe what good output looks like. Hooks enforce it automatically while the model is working. This closes the gap between "the model was told" and "the model actually did it."
12
+
Guidelines say what should happen. Hooks make it happen automatically while the model is editing code and running tools.
0 commit comments