When to use sub-agents
Sub-agents are specialized Claude instances that a main agent can create and delegate tasks to. Rather than one Claude instance handling every aspect of a complex workflow, the main agent acts as an orchestrator — breaking the task into parts and assigning each part to a sub-agent with the right focus and tools.
Two fundamental constraints make sub-agents valuable:
The main agent acts as a project manager: it plans the overall approach, creates sub-agents with specific mandates, collects their outputs, synthesizes the results, and handles coordination. Sub-agents are focused workers: they receive a specific task, complete it, and return results to the orchestrator.
Sub-agents are appropriate when:
For simple, sequential tasks, sub-agents add overhead without benefit. The overhead of creating and coordinating sub-agents is only worthwhile when the task genuinely warrants it.