Best practices for composing multi-agent teams, selecting team sizes, choosing agent types, and configuring display modes for Claude Code's Agent Teams feature.
When to Use This Skill
Deciding how many teammates to spawn for a task
Choosing between preset team configurations
Selecting the right agent type (subagent_type) for each role
Large codebase migration (framework upgrade, language port, API version bump) requiring parallel work with correctness verification
Agent Type Selection
When spawning teammates with the Task tool, choose
subagent_type
based on what tools the teammate needs:
Agent Type
Tools Available
Use For
general-purpose
All tools (Read, Write, Edit, Bash, etc.)
Implementation, debugging, any task requiring file changes
Explore
Read-only tools (Read, Grep, Glob)
Research, code exploration, analysis
Plan
Read-only tools
Architecture planning, task decomposition
agent-teams:team-reviewer
All tools
Code review with structured findings
agent-teams:team-debugger
All tools
Hypothesis-driven investigation
agent-teams:team-implementer
All tools
Building features within file ownership boundaries
agent-teams:team-lead
All tools
Team orchestration and coordination
Key distinction
Read-only agents (Explore, Plan) cannot modify files. Never assign implementation tasks to read-only agents.
Display Mode Configuration
Configure in
~/.claude/settings.json
:
{
"teammateMode"
:
"tmux"
}
Mode
Behavior
Best For
"tmux"
Each teammate in a tmux pane
Development workflows, monitoring multiple agents
"iterm2"
Each teammate in an iTerm2 tab
macOS users who prefer iTerm2
"in-process"
All teammates in same process
Simple tasks, CI/CD environments
Custom Team Guidelines
When building custom teams:
Every team needs a coordinator
— Either designate a
team-lead
or have the user coordinate directly
Match roles to agent types
— Use specialized agents (reviewer, debugger, implementer) when available
Avoid duplicate roles
— Two agents doing the same thing wastes resources
Define boundaries upfront
— Each teammate needs clear ownership of files or responsibilities
Keep it small
— 2-4 teammates is the sweet spot; 5+ requires significant coordination overhead