Contents

Hierarchical teams

Also known as: supervisor of supervisors, multi-level supervisors, nested orchestration

Who decides
A manager agent
Shape
Tree

Intent

Put managers on top of managers: a top agent splits the goal among a few team leads, and each lead splits its part among its own workers. Briefs go down, condensed reports come up, and every agent sees only its direct reports, a short tool list and the context of its own level.

About the name. Some frameworks call a single manager over workers a “hierarchical process”, which is a Supervisor on this site. Here the name means two or more levels of delegation.

Problem

A company wants an assistant that writes market-analysis reports. A typical request: “Write a six-page analysis of the European residential heat-pump market for our strategy team.” The work needs search, scraping, financial data, charts, SQL queries, an outline, a draft, fact-checking, a legal review and formatting: ten specialists with about 25 tools between them.

The team first puts one supervisor over all ten specialists, with every result coming back to the same conversation. It works on small requests, then breaks on this one:

One supervisor is connected to ten specialist workers; its context fills with raw pages and the report comes out with misrouted steps and lost constraints.One supervisorchooses among 10 workerscontext full of raw pagesReportmisrouted stepsmixed prompt ruleslost constraintssearchscrapefinancesqlchartsoutlinedraftverifylegalformat10 specialists and about 25 tools, all reporting into the same conversation
Scroll to see all of it.
One supervisor over ten specialists: every routing decision is harder and every result lands in one context.

Solution

Group the workers into teams and give each team a lead. The top manager now chooses among three teams instead of ten workers, each lead chooses among two or three workers, and every result is condensed before it moves up a level.

  1. Split by team. The root manager reads the heat-pump request and splits it at the coarsest useful grain: research, then writing, then review.
  2. Brief, not transcript. The root sends the research lead a brief: the objective, the background it needs, the constraints (European residential market, dated sources), the report format and a budget. Its own history stays behind.
  3. Repeat one level down. The research lead splits the brief among its searcher, scraper and data analyst. It cannot address the writing team’s workers.
  4. Workers do the work. Each worker runs its own tool loop in a clean context and saves its full output, such as scraped pages or a price table, to a shared artifact store.
  5. The lead checks and condenses. It checks that every figure has a source and a date, then returns one report: status, summary, key findings, artifact IDs and open issues.
  6. The root continues. It briefs the writing team with the findings and artifact IDs, then the review team with the draft. A report marked “partial” gets a follow-up brief.
  7. Code stops the recursion. Workers have no tool to delegate, and a depth limit set in code takes that tool away from any agent that reaches it.

A supervisor or an orchestrator manages one level; a hierarchy appears when some of their workers are managers themselves, each seeing only its own brief and its children’s reports.

Structure

A root manager sends briefs down to three team leads and receives reports back; each lead delegates to two or three workers, workers write full outputs to a shared artifact store, and a governor enforces depth, step and budget limits.goalanswerlimitsbriefreportUserRoot managersees 3 team cardsGovernordepth, steps, budgetResearch leadsees 3 workersWriting leadsees 3 workersReview leadsees 2 workerssearchwebscrapefetchdatasqloutlinedocsdraftdocschartspythonverifysearchlegalpolicyShared artifact store: full outputs live here, reports carry their IDs123456
Scroll to see all of it.

Hover over a number, or tap it, to read what it is.

Between the root and its leads, solid arrows are briefs going down and dashed arrows are reports coming up. The same pair exists between each lead and its workers, drawn there as a single line.
  1. Root manager. Owns the user’s goal, the split across teams, the final answer and the decision to stop. It should hold the least raw detail of any agent.
  2. Team lead. Turns a team brief into worker briefs, checks their outputs and writes one team report. To its parent it is just another worker.
  3. Workers. Run tool loops and return results. They have no delegate tool, so they cannot add a level.
  4. Brief and report contract. A fixed format for everything that crosses a level: the brief carries objective, background, constraints and budget; the report carries status, findings, artifact IDs and open issues.
  5. Shared artifact store. Files or records that hold full outputs, so reports can carry references instead of content.
  6. Governor. Code that enforces maximum depth, children per agent, steps per lead, total budget and timeouts.

Use it when / Avoid it when

Use it when

Avoid it when

How it fails

Telephone-game loss

The root acts on a summary of a summary, and a caveat found by a worker (“the data only covers 2023”) is gone by the time it reaches the top.

Mitigation: reports carry artifact IDs and an open-issues field, so the root can open the full output.

Missing context going down

A child redoes work or contradicts a decision made above, because the manager assumed the child could see what it saw.

Mitigation: every brief has a background field with the decisions and constraints the child needs.

Over-delegation

A simple request spawns dozens of agents, or each agent passes the same task one level further down.

Mitigation: hard depth, fan-out and budget limits in code, and no delegate tool at the limit.

Lead does the work itself

A team lead starts implementing instead of delegating, fills its own context and loses track of the brief.

Mitigation: give leads few or no work tools and tell them to wait for their workers.

Related patterns

Try it

Describe the overall goal and one row per team. The generator writes a shared brief and report contract, a system prompt for the root manager and one system prompt per team lead.

Further reading