Chapter 18: Context isolation

A sub-agent keeps its full detail in the log. It returns a capped summary with a fixed shape: a finding, a confidence, and a detail id. Set the cap in code, not in the prompt. The parent’s context stays small.

Figure 18.1. Two outputs from one sub-agent. The detail id links the short summary back to the full record. The chapter does not say whether the parent can fetch the detail itself, so that edge is dashed.
docs