Hierarchical Supervisor

Supervisors of supervisors. Scale by layers.

Multiple supervisors organize agents in hierarchical layers, delegating responsibility for larger teams or complex domains.

Level
03 · Multi-Agent
Also known as
Multi-Level Supervisor, Manager Hierarchy, Hierarchical Teams, Hierarchical Agent
Trade-off
Scalable organizational structure is achieved against higher complexity and longer decision paths.
Native in
CrewAI, LangGraph, Google ADK, Microsoft Agent Framework
The mental model

A shape you can draw on a napkin.

A top supervisor delegates to sub-supervisors, each managing its own team. The 'supervisor of supervisors' pattern.

TopSupervisorSub ASub BRetrieverAnalystDrafterEditor
Walk it through

A real run, step by step.

Task“Prepare the launch of our product in Germany.” Seven agents on three levels:
Illustrative setup.
LevelAgentDecidesPasses up
TopLaunch supervisorSplits the goal into research and contentThe launch plan, to the user
MiddleResearch leadWhich analyst answers which questionOne research summary
MiddleContent leadWho writes and who translatesThe approved texts
BottomTwo analysts, a copywriter, a translatorNothing. Each does one taskThe result, to its own lead
What this shows: each supervisor sees only its own team. The top level reads two summaries, not four transcripts, and that is what lets the structure grow. The price is the path: a worker's result passes through two summaries before the top sees it, and a question from the copywriter to the market analyst has to travel up and down again.
In code

The pattern in code.

Plain Pythonpython
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})
Fit

Use it, or not.

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.

When it backfires

  • A small number of agents suffices.
  • Communication paths must remain short.
  • Responsibilities cannot be cleanly separated.
Pitfalls

Two ways this pattern will hurt you.

Decision latency multiplies with depth

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).

Lower supervisors optimize local metrics at global cost

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

What this pattern exposes

Adopting this pattern opens these attack surfaces. Each links to its entry in the threat model.

Full threat model →
Framework support

Where Hierarchical Supervisor is native.

Search

Search patterns, frameworks, and pages.