CHAPTER 11 · Subagents and Multi-Agent Orchestration · 7 / 10
How it works: a spawner with isolated context
The mechanism is a function that takes a task, runs a fresh agent loop with its own history (not the parent's), and returns only the final summary to the parent. The parent's context never sees the subagent's intermediate steps. We reuse Chapter 2's loop shape.