When to reach for it
- The number of agents is large.
- Domains must be organized into sub-teams.
- Local decisions need to be aggregated centrally.
/pattern/hierarchical-supervisor/
Multiple supervisors organize agents in hierarchical layers, delegating responsibility for larger teams or complex domains.
When to reach for it
When it backfires
The tradeoff
Scalable organizational structure is achieved against higher complexity and longer decision paths.
A top supervisor delegates to sub-supervisors, each managing its own team. The 'supervisor of supervisors' pattern.
A request goes through three supervisor layers before reaching a worker. Each layer adds a full LLM call.
Fix · Compress layers: only add a new supervisor tier when the fan-out exceeds a threshold (e.g., > 8 workers).
A sub-supervisor maximizes its own team's throughput but the global objective requires cross-team coordination.
Fix · Expose the global objective to every supervisor tier, or add a periodic global rebalancing pass.
Next pattern
Search patterns, frameworks, and pages.