Glossary
Supervisor agent
An AI agent that coordinates a team of worker agents, deciding which one acts next and tracking the task until it is done.
A supervisor agent is an AI agent whose job is to coordinate a team of other agents rather than do the work itself. It reads the task, decides which worker agent should act next, passes that agent what it needs, reviews what comes back and repeats until the task is finished. The workers are usually specialists, such as a researcher, a coder or a reviewer, and the supervisor is the single place where routing decisions and overall progress live.
How a supervisor agent works
The supervisor runs its own agent loop, but its tools are other agents. On each step it looks at the current state of the task and chooses one of three moves: send work to a worker, answer or finish, or ask a person for input. Most implementations make that choice through structured output or function calling, so the supervisor returns something like { "next": "researcher", "instruction": "Find the 2025 revenue figure in the annual report" } rather than free text.
The worker runs, returns its result and the supervisor updates the shared state. That state is the heart of the pattern. It usually holds the original request, a plan or task list, the results each worker has produced and a record of which steps are done. Some designs keep the full message history in the state; others keep a compact summary and a list of agent artifacts, which keeps the supervisor’s own context window from filling with worker output.
LangGraph has a prebuilt supervisor library that wires this up as a graph, CrewAI has a hierarchical process in which a manager agent assigns tasks to crew members, and AutoGen’s group chat uses a selector to pick the next speaker. The details differ, and the CrewAI vs LangGraph and CrewAI vs AutoGen comparisons cover them, but in each case one component decides who acts next.
Supervisor designs
There are three common ways to build the supervisor itself, and they trade simplicity against flexibility.
A router supervisor makes one decision per turn: which worker should handle this? It has no plan, holds little state and is cheap to run. It suits conversational systems where each user message maps to one specialist, and it overlaps heavily with an agent handoff design.
A plan-and-delegate supervisor writes a plan first, using agent planning and task decomposition, then works through it by assigning steps to workers and revising the plan as results arrive. This is the usual shape for research, analysis and content production, where the task has several stages and the order matters.
A tool-calling supervisor treats each worker as a tool and calls it like any other, often with several calls in parallel. Each worker then behaves like a subagent: it receives an instruction, works in its own context and returns a result. This design is easy to add to an existing single agent and scales well to independent sub-tasks.
Design | What the supervisor does | Best for | Watch out for |
|---|---|---|---|
Router | Picks one worker per turn | Chat assistants with clear specialist areas | Little memory of the overall task |
Plan-and-delegate | Writes a plan, assigns steps, revises | Multi-stage research, analysis, content | Plans that go stale as results arrive |
Tool-calling | Calls workers as tools, often in parallel | Independent sub-tasks, adding agents to an existing agent | Loss of detail in worker summaries |
Hierarchical | Supervises other supervisors | Very large tasks with natural sub-teams | Latency and cost compound at each level |
When a task is too large for one supervisor, the pattern nests: a top-level supervisor delegates to team supervisors, each of which runs its own workers. That arrangement is covered under hierarchical agents.
Supervisor compared with other multi-agent patterns
The supervisor pattern is the most centralised form of multi-agent orchestration. In a handoff design, control moves from agent to agent and no single agent owns the whole task. In an agent swarm, agents coordinate as peers and the overall behaviour emerges from their interactions. With a supervisor, one agent always knows the state of the whole task and every decision about what happens next passes through it.
That centralisation is the main reason to choose it. It makes the system easier to reason about, easier to trace and easier to constrain: if the supervisor never sends a draft to the publishing worker without a passed review, that rule holds for the whole system. It also gives you one obvious place to put human in the loop approvals.
It is also worth asking whether you need agents at all. If the steps are always the same and in the same order, a fixed workflow with an LLM at each step is cheaper and more predictable than a supervisor deciding the order every time. The agents vs workflows and single-agent vs multi-agent entries cover that choice.
Trade-offs
Every routing decision is an extra model call, so a supervisor adds latency and tokens to each step. For a five-step task, that might mean five or more additional calls on top of the workers’ own. Using a smaller, faster model for routing and a stronger one for the workers, a form of model routing, recovers some of that cost.
The supervisor can also become a bottleneck for context. If every worker result flows back through it in full, its context grows with each step until context rot sets in and routing quality drops. The fix is to keep worker outputs outside the supervisor’s context, in files or notes that it can read when needed, and pass it only short summaries and references.
Paraphrase loss is a related problem. When the supervisor rewrites a worker’s answer before passing it on, details can drop out or change. Many systems let the final worker’s output go straight to the user, or have the supervisor cite the worker’s artifact rather than restate it.
Finally, a supervisor that makes a poor plan will route a capable team in the wrong direction. Logging each routing decision with its reason, through agent tracing, and evaluating the supervisor separately from the workers in agent evaluation, make it clear whether a bad result came from the plan or from the execution.
A worked example
A company builds a system that produces a weekly competitor briefing. The supervisor receives the instruction “Prepare this week’s briefing on our three main competitors” and writes a plan: gather news for each competitor, check pricing pages for changes, summarise product announcements, fact-check every claim, then assemble the briefing.
It sends three research workers out in parallel, one per competitor. Each writes its findings, with links and dates, to a shared workspace and returns a three-line summary. The supervisor sees that one competitor changed its pricing, so it adds a step and sends a pricing worker to compare the new page with last week’s notes. It then sends a writer to draft the briefing from the stored findings, and a fact-checker to verify each claim against the sources the researchers saved, with page or section references for anything it confirms.
The fact-checker flags one claim that the source does not support. The supervisor routes it back to the relevant research worker with that specific question, gets a corrected finding and has the writer revise one paragraph. Only then does it send the final draft to a person for approval. Throughout, the supervisor’s own context holds the plan, the summaries and the status of each step, not the raw research. The same structure fits research agents and deep research agents generally.
Where Exabase fits
Exabase does not provide the supervisor; your framework does that. Exabase provides the shared workspace and memory the team works from, which is where the supervisor pattern most often runs into trouble.
A Base gives the supervisor and every worker the same isolated agent workspace. Workers write their findings, drafts and notes as files and notes through Resources, and pass back only a summary and an ID. The supervisor keeps its context small and reads the full artifact only when it needs to, which is the cleanest answer to the context bottleneck described above. Everything is indexed as it is written, so any worker can use Deep Search to find a passage by meaning, with page numbers and timestamps that support source attribution for a fact-checking step (searching resources).
Exabase Memory holds what the team should know across runs: the house style, which competitors matter, which sources the user distrusts. Memory resolves contradictions as these facts change and returns only what is relevant to a query, so the supervisor can brief a worker with a few hundred tokens of current preferences instead of a long system prompt. That also helps keep the token overhead of a multi-agent system in check, as covered in reduce token costs.
When workers have write access, enabling snapshots on the Base lets you see what any run moved, renamed or deleted, compare the Base before and after and recover removed resources (filesystem snapshotting). Snapshots cover resource metadata rather than file content. The agent undo solution describes the full approach.
One naming note: Exabase’s own Workers are scheduled agents that run inside a Base to maintain it, such as tagging new files or producing a daily digest. They are a separate product from the worker agents in a supervisor design, though a scheduled Exabase Worker can keep the shared workspace tidy between supervisor runs (about Workers).
Frequently asked questions
What is the difference between a supervisor agent and an orchestrator?
An orchestrator is any component that coordinates agents, including fixed code. A supervisor agent is an orchestrator that is itself an LLM-driven agent, deciding at runtime which worker acts next based on the state of the task.
When should I use a supervisor agent?
Use one when a task has several stages handled by different specialists, when the order of steps depends on what earlier steps find, and when you want one place to enforce rules and approvals. For fixed sequences, a plain workflow is usually simpler and cheaper.
Does the supervisor need a stronger model than the workers?
Not always. Routing is often a simple decision that a smaller model handles well. Planning complex tasks benefits from a stronger model. Many teams use a strong model for planning and a cheaper one for per-step routing.
How does a supervisor avoid context overload?
Keep worker outputs outside its context. Workers store full results as files or notes and return short summaries with references, and the supervisor reads the full material only when a decision depends on it.
What is the difference between a supervisor and a subagent?
A subagent is a worker that a parent starts for one task. A supervisor is the parent role in a team, usually with a fixed set of named workers and a shared state it maintains across many steps.
Can a supervisor include a human?
Yes. A person can be one of the destinations the supervisor routes to, typically for approvals or decisions the system should not make alone. Placing that step in the supervisor’s plan makes it hard to skip.
What frameworks support the supervisor pattern?
LangGraph, CrewAI and AutoGen all support it in different forms, and it can be built with any framework that supports tool calling. The best AI agent frameworks roundup compares them.
Related pages: Hierarchical agents, Subagents, Agent handoff, Orchestration, Multi-agent, Agent state, Multi-agent coordination use case, Exabase vs CrewAI, Automating competitive intelligence with a scheduled agent, Agent memory solution.