| Stage | Agent | Context it carries | Returns to orchestrator |
| 1. Plan | architect | Ticket + repo map (~12k tokens) | 5-step plan, files to touch (~600 tokens) |
| 2. Build | coder | Plan + only the 4 relevant files (~18k tokens) | Diff + rationale (~1.2k tokens) |
| 3. Verify | reviewer | Diff + tests + style guide (~10k tokens) | Pass/fail + 3 findings (~400 tokens) |
| Orchestrator total | Peak ~20k tokens at any moment | vs. ~45k+ for one monolithic thread |
Monolithic thread: 12k + 18k + 10k accumulates → context bloat,
quality degrades as the window fills with stale file dumps.
Agency pipeline: max(12k, 18k, 10k) per specialist,
orchestrator holds only ~2.2k tokens of summaries.
Cost: roughly similar tokens spent overall.
Benefit: each model call operates near the front of a clean context —
where models are most accurate — instead of the murky middle of a full one.