Skip to content

SOP-015: Sub-Agents

DOCUMENT CONTROL

FieldValue
SOP IDSOP-015
Version1.0
StatusActive

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

TypePurpose
ResearchInformation gathering
CodeCode generation
TestTest creation/running
ReviewCode review

Best Practices

Sub-Agent Tips

  1. Enable for complex tasks
  2. Set appropriate limits
  3. Monitor resource usage
  4. Review sub-agent output

Considerations

  • Higher token usage
  • More API calls
  • Requires coordination
  • May need approval

Next Steps

Based on Official Claude Code Documentation