Subagents can investigate independent questions in parallel and return a focused report. They add startup time, context boundaries, and resource use, so small or dependent tasks often belong in the main conversation.
A coding agent can delegate an investigation to a subagent, then use the result in its own work. The main advantage is not that the subagent is automatically smarter. It is that independent tasks can be investigated at the same time, with a smaller report returning to the main context.
In Claude Code’s documented model, a subagent starts with its own context window. It does not automatically receive the parent conversation history; the parent must provide the task and relevant background. This separation can keep a long investigation from filling the main conversation, but it also means missing context can lead to a weak report.
Subagents are useful when questions do not depend on one another. For example, one worker can inspect the authentication flow while another looks for a performance bottleneck. The parent can then compare their findings and decide what to change.
Give a worker a narrow brief:
The worker’s available tools and model can be configured in Claude Code. Other agent frameworks have different controls, so do not assume the same configuration applies everywhere.
A tiny task can take longer after startup and coordination overhead. Work that depends on an earlier result is usually sequential: launching all steps at once does not remove the dependency. Each worker also uses its own tokens and time.
The parent still needs to verify the returned evidence. A short summary is easier to use than a second full conversation, but compression can omit details. Ask for file paths, concrete findings, and unresolved assumptions, then check the parts that matter before acting.
Use subagents for parallel discovery, not as a substitute for a clear task or review.
Sources: Claude Code subagents.