SOP-015: Sub-Agents
DOCUMENT CONTROL
| Field | Value |
|---|---|
| SOP ID | SOP-015 |
| Version | 1.0 |
| Status | Active |
Purpose
Configure and use sub-agents for parallel task execution and specialized workflows.
What are Sub-Agents?
Sub-agents are:
- Parallel workers spawned by Claude
- Specialized for specific tasks
- Independent execution contexts
- Coordinated by main agent
How Sub-Agents Work
Main Agent spawns sub-agents for:
- Research tasks
- Code generation
- Testing
- Documentation
Sub-agents work independently then report back.
Configuration
In settings.json:
json
{
"subAgents": {
"enabled": true,
"maxConcurrent": 3,
"timeout": 300
}
}Sub-Agent Types
| Type | Purpose |
|---|---|
| Research | Information gathering |
| Code | Code generation |
| Test | Test creation/running |
| Review | Code review |
Best Practices
Sub-Agent Tips
- Enable for complex tasks
- Set appropriate limits
- Monitor resource usage
- Review sub-agent output
Considerations
- Higher token usage
- More API calls
- Requires coordination
- May need approval