Subagents

Send a helper with a fresh context to search or investigate, and get back a summary.

What it is
The main agent delegates a bounded job ("find every caller of parse_date") to a subagent with its own clean context; only the condensed answer comes back.
When to use it
  • Wide searches and investigations that would flood the main context
When to skip it
  • Splitting tightly coupled edits across agents: they can't see each other's changes
Why (the trade-off)
Exploration is token-hungry. Doing it elsewhere keeps the main agent focused on the change.
Where it sits
Control layer, spawned by the main loop.
What it needs first
What can be added to it
Nothing builds on it directly.
Effect of adding it
  • cost ↑
  • latency —
  • reliability ↑
  • safety —
Risks it handles
  • The context fills up · partial
Learn first (AI Engineering)