| name | agent-patterns |
| description | When to spawn agents vs work directly - parallel execution, specialization |
| allowed-tools | Read, Bash, Task |
| model | sonnet |
Agent Patterns
Spawn smart, not often.
When to Spawn Agents
Good: Parallel Independent Work
"Search for auth bugs"
→ Spawn 5 agents, one per module
→ 5x faster, same tokens
Good: Specialized Tasks
"Review this PR"
→ security-agent
→ performance-agent
→ style-agent
Each has focused expertise
Bad: Sequential Dependencies
❌ Agent 1 creates file
❌ Agent 2 needs that file
= Race condition, wasted tokens
✓ Do sequentially in main conversation
Bad: Simple Single Tasks
❌ "Spawn agent to add one line"
= Overhead > benefit
✓ Just do it directly
Agent Types by Task
Explore Agents (Research)
Task tool with subagent_type=Explore
- Fast file/code search
- Codebase questions
- Pattern finding
Worker Agents (Execution)
Task tool with subagent_type=general-purpose
- Multi-step implementation
- Complex changes
- Autonomous work
Specialist Agents
code-reviewer: Style, bugs, patterns
debugger: Error investigation
security-reviewer: Vulnerability scan
performance-reviewer: Bottleneck analysis