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.
Supervisors of supervisors. Scale by layers.
Multiple supervisors organize agents in hierarchical layers, delegating responsibility for larger teams or complex domains.
A top supervisor delegates to sub-supervisors, each managing its own team. The 'supervisor of supervisors' pattern.
| Level | Agent | Decides | Passes up |
|---|---|---|---|
| Top | Launch supervisor | Splits the goal into research and content | The launch plan, to the user |
| Middle | Research lead | Which analyst answers which question | One research summary |
| Middle | Content lead | Who writes and who translates | The approved texts |
| Bottom | Two analysts, a copywriter, a translator | Nothing. Each does one task | The result, to its own lead |
def team(lead_prompt, members):
"""A supervisor whose members are workers or other teams."""
def run(task):
# who gets which subtask
plan = model(lead_prompt, task, options=list(members))
results = {name: members[name](subtask) for name, subtask in plan.items()}
return model(lead_prompt, "Summarise for the level above:", results)
return run
research = team(RESEARCH_LEAD, {"market": market_analyst, "competitors": competitor_analyst})
content = team(CONTENT_LEAD, {"copy": copywriter, "translation": translator})
# the same shape, one level up
launch = team(LAUNCH_LEAD, {"research": research, "content": content})When to reach for it
When it backfires
A request goes through three supervisor layers before reaching a worker. Each layer adds a full LLM call.
Countermeasure
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.
Countermeasure
Expose the global objective to every supervisor tier, or add a periodic global rebalancing pass.
Threat exposure
Adopting this pattern opens these attack surfaces. Each links to its entry in the threat model.
Full threat model →Next pattern
Search patterns, frameworks, and pages.