Chapter 16: Sub-agents

A sub-agent has its own system prompt, its own tool allowlist, and its own step limit. The parent calls it through a tool that returns a short summary. A focused agent does one job well.

Figure 16.1. To the parent, a sub-agent is one more tool. Its prompt, tools, and step limit are its own. Chapter 18 fixes the shape of the summary.
docs