Giving a Coding Agent an Org Chart
Описание и применение
Протокол subsession ограничивает рост контекста агента только структурированными отчётами, позволяя эффективно управлять многими подагентами и визуализировать их структуру в браузере.
Задача
When an agent spawns multiple subagents, the mother’s context swells with each child’s transcript, exhausting limited context windows and obscuring the final outcome.
Результат
The subsession protocol limits mother context growth to report size, enables structured reporting, and provides a clear org‑chart UI for human oversight, improving scalability and traceability of multi‑agent workflows.
Рабочий процесс
- 1. Mother writes a brief with mission, file globs, token cap, depth allowance, report contract, and optional verify list.
- 2. Mother spawns child subsessions via role‑typed spawn, each child receives its own runtime, context window, and tool permissions.
- 3. Child executes, sending progress reports through a single tool and final reports that satisfy the report contract.
- 4. If a child blocks (e.g., needs approval), it checkpoints and reports the blocker; the human reviews the blocked queue in the UI.
- 5. Human may spawn a successor with the same brief and a continues reference to the predecessor, triggering a fresh hire with handover.
- 6. The system performs a quiescence sweep to clean up dead children before succession.
- 7. The browser UI polls RPC endpoints to render the org tree, live token usage, checkpoint badges, and blocked queue with a handover button.
Доказательства
The mother sees only structured reports.
Four phases, four gates, one rule kept throughout: no pass claim without machine evidence.
- Дата записи: 2026-09-08T00:29:42.358Z