Why Multi-Agent Teams?
Single Agent Limitations:- Complex prompts become unwieldy (2000+ lines)
- Hard to test and maintain
- Generic responses for diverse tasks
- Specialization: Each agent focuses on one domain
- Coordination: Coordinator delegates to specialists
- Maintainability: Small, focused prompts
- Testability: Test specialists independently
Team Structure
How It Works
1. User Reports Issue
2. Coordinator Analyzes & Delegates
3. Specialists Execute
4. Coordinator Synthesizes
Creating Teams
Via MCP Tools
The easiest way to create multi-agent teams:| Tool | Purpose |
|---|---|
create_agent | Create coordinator or specialist agents |
add_agent_as_tool | Link specialist to coordinator |
remove_agent_as_tool | Unlink specialist from coordinator |
Via .prompt File
The coordinator agent calls specialist agents as tools:Creating Specialists
Specialists are regular agents focused on one domain:Agent-as-Tool Naming
When an agent is used as a tool, its name becomes:__agent_kubernetes_expert
Best Practices
Keep Specialists Focused
Keep Specialists Focused
Each specialist should do one thing well. 5-8 tools max per specialist.
Clear Handoff Instructions
Clear Handoff Instructions
Coordinator prompts should clearly explain when to use each specialist.
Test Independently
Test Independently
Test each specialist before testing the full team.
Limit Coordination Depth
Limit Coordination Depth
Avoid coordinators calling other coordinators. Keep hierarchy flat.

