Why flat multi-agent design failed: a 3-level hierarchy from a hospital ops system

Repulsive_Sugar_5252 · reddit · 2026-09-23

The author building Hospilot, a multi-agent orchestration system for hospital operations, explains why their early flat design (goal → agents) collapsed on a real domain: "bed management" bundles genuinely distinct concerns — availability checks, ventilation tracking, isolation rules, cascading bed effects — that don't belong in one blob of logic.

The redesign uses a 3-level hierarchy:

The planner routes goals at the agent level, while the real decision of which sub-agents fire and in what order happens one level down. Adding capability means adding a sub-agent or task without touching upstream dependents. Granularity matters: task-level was too fine for the planner to reason efficiently over hundreds of tasks, agent-level alone too coarse.

The post closes by asking how others choose hierarchy depth in multi-agent systems.

Original post →

More from coding & agent

coding & agent channel →