Hierarchical Multi-Agent Systems Explained

A hierarchical multi-agent system runs like an org chart: a top manager plans, sub-managers split the work and workers use the tools. Learn how state moves through the tree, what it costs and when to add a layer.

Smiling team lead handing out tasks to colleagues, like a manager agent in a hierarchy

A hierarchical multi-agent system is a tree of AI agents. A top manager takes the goal and splits it into parts. Sub-managers own those parts and split them again. Workers sit at the bottom and do the actual tool calls, such as a web search, a SQL query or a file write. Results then flow back up, and each manager merges what its team sent.

It is the org chart, rebuilt in software. The reason to build one is focus. No single agent has to hold every tool, every rule and every fact. Each one sees a small slice of the job, and the tree keeps the slices joined up.

How a Hierarchical Multi-Agent System Is Layered

Most real trees have two or three layers. Each layer has its own job, its own prompt and often its own model size. For example, Anthropic gives the top seat in its research system to Claude Opus 4, while Claude Sonnet 4 handles the worker jobs.

A flat team with one manager is a two-layer tree. It becomes truly hierarchical when a manager’s direct reports are managers too. That third layer is where the design questions get harder, and where cost starts to climb.

LayerMain jobSeesTypical tools
Top managerTurn the goal into a plan and pick teamsThe user request and team summariesDelegation tools only
Sub-managerRun one part of the plan with its own teamIts slice of the plan and worker resultsDelegation tools, sometimes a scratchpad
WorkerFinish one narrow taskIts own instructions and task inputSearch, code, database, email, file tools

Delegation and Planning in Hierarchical Agent Trees

Delegation is a tool call. The manager calls a tool named after the team or agent, and passes a task in plain language. In LangGraph, that tool is a handoff. In CrewAI, the manager assigns a task. In Google ADK, a parent transfers control to a sub-agent or calls it through AgentTool.

Planning decides what to delegate and in what order. The most detailed public design for this comes from Magentic-One, a Microsoft research system. Its Orchestrator keeps two records. The task ledger holds the plan plus four lists of facts: given facts, facts to look up, facts to derive and educated guesses. The progress ledger is a short checklist it answers on every step:

  • Is the request fully satisfied?
  • Is the team looping or repeating itself?
  • Is forward progress being made?
  • Which agent should speak next?
  • What instruction should that agent get?

A stall counter goes up each time the answers show a loop or no progress. Once it passes 2, the Orchestrator stops, reflects on what went wrong, rewrites the plan and starts again. That rule is worth copying into any manager prompt. Without it, a deep tree can burn calls for minutes on a dead end.

Passing State Up and Down a Hierarchical Multi-Agent System

State is what each layer knows about the work so far. Trees fail most often here. A worker gets too little context and guesses, or a manager gets too much and loses the thread. So decide what flows down, what flows up and where shared facts live.

Down the Tree: Narrow Task Briefs

Send each worker a brief with the goal, the inputs and the output format. Leave out the full chat history unless the task needs it. In Anthropic’s system, each subagent gets a goal, an expected output shape, advice on which tools and sources to use, and firm task limits. Early on, short and vague briefs led two subagents to research the same thing.

Up the Tree: Summaries, Not Transcripts

Return the result, not the whole conversation. The LangGraph supervisor library has an output mode for this. With last_message, a manager gets only a team’s final reply. With full_history, it gets every message. Choose the first for deep trees, or the top manager’s context fills up after a few teams report back.

Across the Tree: A Shared Whiteboard

Google ADK gives every conversation a session with a state dictionary. An agent can write its full reply into state by setting an output_key. Later agents read it back through placeholders in their instructions. Think of session state as a whiteboard. Name each entry after what it holds. Parallel agents should each write to their own slot, so they never wipe out each other’s work.

Read also: Multi-Agent Communication Protocols: MCP, A2A, AG-UI, ANP and FIPA-ACL

Hierarchical Multi-Agent Systems in CrewAI, LangGraph, Google ADK and Microsoft

Four toolkits cover most real builds today. They share the tree idea, but each one draws the layers in its own way.

CrewAI Hierarchical Process

CrewAI’s hierarchical process adds a manager agent that hands out tasks by role and checks each result against your standards. You turn it on with process=Process.hierarchical and give it either a manager_llm or a custom manager_agent. Delegation is off by default, so set allow_delegation=True on a custom manager.

A crew is one manager and its team, so on its own it forms a two-layer tree. The CrewAI profile on our site covers plans and pricing.

docs.crewai.com
CrewAI Hierarchical Process website screenshot
CrewAI Hierarchical Process

LangGraph Supervisor of Supervisors

LangGraph builds the deepest trees with the least glue code. You create a research team with its own supervisor and a writing team with its own supervisor. Then you pass both compiled teams to a top-level supervisor as if they were single agents. Each team is a compiled graph with its own routing.

LangChain now recommends building supervisors directly with tools for most projects, in place of the langgraph-supervisor library. The tree shape stays the same. Each team becomes a tool that the manager above it can call. See our LangGraph profile for hosting options.

pypi.org
LangGraph Supervisor on PyPI website screenshot
LangGraph Supervisor on PyPI

Google ADK Agent Trees

In ADK, the tree comes from each parent’s sub_agents list. A parent reads its children’s descriptions to decide when to transfer the conversation. By default, an agent can also transfer to its peers, and disallow_transfer_to_peers=True blocks that.

ADK mixes managers run by a model with fixed workflow agents. A SequentialAgent runs children in order, a ParallelAgent runs them at the same time and a LoopAgent repeats them. Google’s hierarchical decomposition pattern has three levels. A ReportWriter calls a ResearchAssistant through AgentTool, and the ResearchAssistant manages WebSearch and Summarizer agents. Our Google ADK page has more on setup.

AutoGen, Magentic-One and Microsoft Agent Framework

Magentic-One was built on AutoGen. Its lead agent, the Orchestrator, runs four workers. WebSurfer uses the browser and FileSurfer reads files. Coder writes code, and ComputerTerminal runs it. However, the AutoGen repo is now archived. Microsoft points new projects to the Microsoft Agent Framework.

That framework ships five team patterns. They are sequential, concurrent, handoff, group chat and Magentic. In Magentic mode, a manager agent picks which expert works next as the task unfolds.

Amazon Bedrock Supervisor Agents

Amazon Bedrock Agents has a supervisor agent with helper agents under it. Each helper keeps the full Bedrock feature set, with tools, knowledge bases and guardrails. In the mortgage example, one agent handles current loans, one handles new loans and one takes general questions. Note that Bedrock Agents, now called Agents Classic, no longer takes new sign-ups. AWS points new builds to Strands Agents and Bedrock AgentCore.

How Cost Grows in a Hierarchical Multi-Agent System

Cost grows with every layer, and it grows faster than most teams expect. Take a balanced tree where each manager has the same number of reports. Assume each manager makes one planning call, one delegation call per report and one merge call. Assume each worker makes four calls to finish its task.

Reports per managerLayers of managersManagersWorkersTotal model callsCalls on the longest path
3113176
3249568
33132717310
4114226
42516948
43216438210

Going from one layer of managers to three makes total calls about 10 times larger with three reports each. With four reports each, calls grow about 17 times. Now say each call reads 3,000 input tokens on average. Then the three-report tree climbs from about 51,000 input tokens to about 519,000 for one request.

Speed behaves differently. If every manager runs its reports in parallel, the longest path only grows by two calls per layer. So a deep tree can feel fast while it quietly costs ten times more. That gap is why token budgets per run matter. Caps and alerts for this live in our post on AI agent cost control.

The trade can still pay off. A team of agents can burn around 15 times more tokens than a chat. Yet Anthropic’s lead and subagent setup beat a single agent by 90.2% on its own research test. Token use alone explained 80% of the gap in scores. More layers buy more total thinking, at a price.

Real Uses of Hierarchical Multi-Agent Systems

Public examples are still few, but they show where trees earn their cost. Each one splits work that a single agent would struggle to hold.

  • Deep research. Anthropic’s Research feature fans one question out to a lead agent and its subagents. Hard queries finish up to 90% faster when the subagents run side by side. Simple fact checks get one agent and 3 to 10 tool calls, while hard questions can use more than 10 subagents.
  • General web and file tasks. Magentic-One scored 38.00% on the GAIA test set with GPT-4o and o1, against 32.33% for GPT-4o alone. It also reached 32.8% on all 812 WebArena tasks.
  • Creative documents. Google’s ADK codelab builds a movie pitch writer. A greeter hands off to a film concept team, which runs a writers’ room loop, a parallel preproduction team and a file writer.
  • Report writing. The LangGraph pattern pairs a research team with a writing team under one top supervisor, so search tools and editing tools never share a prompt.
  • Customer service routing. The Bedrock mortgage example uses one supervisor over three collaborators, each with its own knowledge and actions.
codelabs.developers.google.com
Google ADK Multi-Agent Codelab website screenshot
Google ADK Multi-Agent Codelab

Designing the Org Chart for Hierarchical Agents

Design the tree the way a good manager designs a team. The same rules apply, and they break in the same ways.

  • Group by tools, not by topic. Put agents that share a tool set under one sub-manager. A research team owns search, and a data team owns SQL. Fewer tools per prompt means fewer wrong calls.
  • Keep spans small. Three to five reports per manager is a sane range. Past that, routing descriptions start to overlap and the manager picks the wrong child.
  • Write distinct descriptions. Managers route by reading each child’s description. Bedrock asks for well-defined roles with little overlap, and the same rule holds everywhere.
  • Add a layer only when a manager struggles. Google’s advice is blunt: do not build a nested loop system on day one. Debug a flat team first.
  • Use code where the order is fixed. A sequential or parallel workflow agent costs no routing calls. Save model-driven managers for steps that truly need judgment.
  • Give every manager a stop rule. Cap turns, cap delegations and copy the Magentic-One stall counter.

Trees are one option among several. Some teams only need to choose between one lead agent and a team of peers. For that choice, read our post on supervisor vs swarm architecture. For how a manager plans and replans in more detail, see dynamic planning in LLM agents.

Where Hierarchical Multi-Agent Systems Help and Where They Hurt

Trees help most when work splits into parallel parts with little shared context. Research, report writing and data gathering fit that shape. Each branch can run alone and send back a short result.

They hurt when every step needs the full picture. Coding is the usual example. Most coding tasks have fewer truly parallel parts than research, and agents must share a lot of context. In that case, each hand-down loses detail and each hand-up adds a summary that may drop it again.

UpsideDownside
Each agent has a short prompt and few toolsEvery layer adds planning and merge calls
Branches can run in parallelDetails get lost in summaries between layers
Teams can use cheaper models at the bottomErrors at the top spread to every branch
Teams can be tested and swapped one by oneTraces get deep and harder to follow

Our multi-agent AI agents category groups the products that build trees like these.

Questions About Hierarchical Multi-Agent Systems

How Many Layers Should a Hierarchical Agent System Have?

Two layers cover most needs: one manager and a team of workers. Add a third layer when a manager handles more than about five reports or more than one kind of tool set. Four or more layers are rare in public examples.

Is a Hierarchical System the Same as a Supervisor System?

A supervisor system is the simplest tree. It has one manager over a few workers. A deeper tree adds managers under the manager. So every tree uses supervisors, but not every supervisor setup is a deep tree.

Can Workers Talk to Each Other in a Hierarchy?

Usually not directly. Results go up to the manager and new tasks come down. Some frameworks allow side doors. Google ADK, for example, lets agents transfer to peers unless you block it. Shared state, such as an ADK session whiteboard, is the safer way for siblings to share facts.

Should the Manager Use a Bigger Model?

Often, yes. The manager plans and merges, so its mistakes spread down every branch. Workers do narrow tasks and can often run on a smaller, cheaper model.

Related AI Agents

Read also: Best Voiceflow Alternatives: 8 Chat and Voice Agent Builders

Explore Agent Categories

Related Articles

Joydeep Bhattacharya Avatar

Written by