Lesson 08.04 · Phase 08 · Multi-Agent Systems
Supervisor hierarchies
When one supervisor manages too many workers, its context fills with their reports. Team leads in between absorb the detail and pass up summaries. You pay for that in extra calls and latency, so a hierarchy has to earn it: by keeping the top supervisor's context small, and by giving budgets and escalations a place to go.
Learning objectives
- Build a two-level hierarchy (top supervisor, team leads, workers) and compare it with one flat supervisor on routing, calls, supervisor context and depth.
- Explain why depth costs latency: each level adds model calls on the critical path.
- Propagate budgets down the tree, with a reserve at the top for overruns.
- Escalate failures up the tree to the level that can decide, instead of retrying forever at the bottom.
Lesson 2's orchestrator handled three workers. Scale the project: research, engineering and operations, three specialists each. One supervisor now plans for nine workers and reads nine reports before it writes anything. At a few hundred to a thousand tokens per report, plus its own plan and instructions, its context is mostly other agents' output, and the important line in report seven competes with everything else.
Loading the full lesson…