Book a free call

How to Build a Multi-Agent Supervisor with CrewAI and AutoGen

A multi-agent supervisor is a manager agent that plans work, delegates tasks and checks results. CrewAI and AutoGen both offer one — here is how they differ.

Hertiv engineering teamReviewed by a senior engineer
8 min read
How to Build a Multi-Agent Supervisor with CrewAI and AutoGen
On this page

Short answer

A multi-agent supervisor is a manager agent that breaks a job into tasks, assigns each task to a specialist agent, checks the results and decides what happens next. CrewAI builds this with a hierarchical crew process, while AutoGen builds it with a group chat run by a GroupChatManager.

What is a multi-agent supervisor?

A multi-agent supervisor is a manager agent that plans work, hands tasks to specialist agents, checks their results and decides what happens next. Instead of one agent trying to do everything, the supervisor splits the job and keeps control of the whole run.

Picture a support team. One agent reads incoming tickets, another looks up the account, a third drafts a reply and a fourth checks the reply against policy. Without a supervisor, those agents would need to know when to hand work to each other, which quickly becomes tangled. With a supervisor, each worker only talks to the manager, and the manager owns the plan.

The supervisor pattern fits jobs with distinct stages and a clear quality bar: research then write then check, or triage then diagnose then resolve. It fits badly when the work is a single short step, or when the steps are so tightly linked that splitting them adds more coordination than it saves. A single agent is usually cheaper and faster for those jobs.

The supervisor is also the place where human oversight lives. It can pause the run, ask a person to approve a risky step, and keep a log of who did what. That log matters when a result is wrong and someone needs to find where it went wrong.

How does a supervisor differ from a flat team of agents?

A supervisor differs from a flat team of agents because one agent owns the plan and the final answer, while the others own single skills. In a flat team, agents pass work to each other directly and nobody is in charge.

PatternWho decides the next stepBest for
Supervisor (manager)One manager agentStaged work with a quality bar
Peer chatWhoever speaks nextOpen-ended debate and ideas
Fixed pipelineThe code, in advancePredictable, repeatable steps
Single agentThe agent itselfShort, simple tasks

A flat peer chat is good for brainstorming, where any agent can challenge any other. But it is hard to audit, because the conversation can wander, and hard to stop, because no agent has the authority to call the run finished. A fixed pipeline is the most reliable option when the steps never change, but it cannot adapt when a worker's result needs a different next step.

The supervisor sits between the two. It can change the plan when a result is surprising, and it can stop the run when the work is done or when a worker keeps failing. The price is an extra model call for each decision the manager makes, and a manager prompt that has to be written carefully. For a general guide to building multi-agent systems, see how to build a multi-agent system.

How CrewAI runs a supervisor

CrewAI runs a supervisor through a hierarchical crew process, where a manager agent plans the work, delegates tasks to specialist agents and checks their output before the run ends.

You describe each worker as an Agent with a role, a goal and a backstory, such as a researcher who finds facts or an editor who checks tone. Each piece of work is a Task with an expected output, such as a short brief or a draft paragraph. The agents and tasks are grouped into a Crew, which runs under a Process.

With a sequential process, tasks run in order and each one's output becomes context for the next. With a hierarchical process, the manager agent takes over: it breaks the goal into tasks, assigns them to workers, reviews what comes back and asks for fixes. You can let CrewAI pick the manager model or name one yourself.

CrewAI also offers Flows for control beyond a single crew, with event-driven steps, typed state and a step where a human reviews the work. Flows are useful when the supervisor's job spans more than one crew, such as intake, then research, then review. Keep the number of agents small at first: a manager plus two or three workers is easier to debug than a crew of eight.

How AutoGen runs a supervisor

AutoGen runs a supervisor as a group chat managed by a GroupChatManager, which picks which agent speaks next and keeps the conversation moving toward the goal.

Each agent in AutoGen is a conversable agent, such as an assistant agent that does the work or a user proxy agent that can run code and approve steps. The agents are placed in a GroupChat, and the GroupChatManager selects the next speaker, either in turn, by a rule you write, or automatically from the conversation.

The manager pattern in AutoGen is therefore a conversation with a referee. The manager can ask the researcher for facts, hand the facts to the writer, then ask the checker to review the draft, all by choosing who speaks. Nested chats let one group call another group for a sub-task, which is useful when a worker needs its own small team.

One thing to check before you start: the AutoGen repository is in maintenance mode, and Microsoft points new feature work to the Microsoft Agent Framework. That does not make AutoGen unusable, but it does mean you should check which version you are building on and whether the framework you need is still receiving fixes. The comparison with other frameworks is covered in LangChain vs CrewAI vs AutoGen.

CrewAI or AutoGen: how to choose

Choose CrewAI when the work is a role-based pipeline with a clear manager, and choose AutoGen when the work is an open-ended conversation where agents need to challenge each other.

QuestionPick CrewAIPick AutoGen
How is work split?Roles and tasks, set in advanceConversation, decided as it goes
Who is in charge?Manager agent in hierarchical modeGroupChatManager picks the speaker
How do agents talk?Through tasks and outputsThrough messages in a chat
Where is it strongest?Content and research pipelinesDebate, diagnosis and exploration
What to watch?Manager prompt qualityChat loops and long histories

CrewAI is usually the faster route to a working supervisor, because roles and tasks map directly onto a team chart. A crew of a researcher, a writer and an editor is a few dozen lines, and the hierarchical process gives you a manager without extra code.

AutoGen is the better fit when the right next step is not known in advance, such as debugging, where one agent proposes a cause and another tests it. The trade-off is that conversations can loop, histories grow long, and costs rise with every message. Set a maximum number of turns and a clear stopping rule either way, and log every decision the manager makes.

How to build a supervisor in 6 steps

You build a multi-agent supervisor in six steps: define the job, pick the framework, write the manager, add the workers, set the stopping rules, then test with real work.

  1. Define the job and the quality bar. Write down what good output looks like and what the supervisor must check, such as facts, tone or policy.
  2. Pick the framework. Choose CrewAI for a role-based pipeline or AutoGen for a conversational team, and pin the version you build on.
  3. Write the manager first. Give it a clear brief: what it can delegate, what it must check, and when it must stop and ask a human.
  4. Add two or three workers. Give each worker one skill, one tool set and one expected output. A worker that does everything is a single agent in disguise.
  5. Set stopping rules. Cap the number of turns, the number of retries and the total tokens, so a confused run ends instead of looping.
  6. Test with real work. Run the supervisor on past cases, read the logs, and fix the manager prompt before you add more workers.

Resist the urge to add workers early. Most supervisor failures come from a vague manager brief or workers with overlapping jobs, not from missing specialists. Fix the manager first, then grow the team.

Example (hypothetical): a support-ticket triage crew

Example (hypothetical): a software company receives 500 support tickets a day. A supervisor crew is built with a manager, a triage worker, a knowledge worker and a drafting worker. The manager reads each ticket, the triage worker labels it, the knowledge worker finds the relevant help article, and the drafting worker writes a reply for a human to send.

Of the 500 tickets, the crew resolves 320 without human help and sends 180 to a person. Each resolved ticket saves about 12 minutes of human time, so the crew saves 320 times 12 minutes, or 3,840 minutes a day. That is 64 hours a day across the team.

The manager also catches errors: 24 of the 320 drafts fail its policy check on the first pass, and the drafting worker fixes them before they reach a human. Without the manager, those 24 would have gone out as they were. The team keeps a human in the loop for the 180 hard tickets, and reviews a sample of the 320 automatic replies each week to keep the manager's bar honest.

What are the common mistakes?

The most common mistakes are a vague manager brief, workers with overlapping jobs, no stopping rules, and a supervisor that nobody watches.

  • A manager that can do anything. If the manager has no limits, it will delegate poorly and retry forever. Give it a short list of allowed actions and a maximum number of turns.
  • Workers that overlap. Two agents that can both research and write will fight over the work. Give each worker one job and one output.
  • No stopping rule. A chat without a turn cap or a clear finish condition will run until the budget does. Decide in advance what done looks like.
  • No human checkpoint. A supervisor that can send messages or change data without approval is a risk. Keep a person on risky steps.
  • Ignoring the log. The manager's decisions are the audit trail. If nobody reads them, a bad run will repeat the same error.
  • Too many agents too soon. Start with a manager and two workers. Add a worker only when a real gap appears in the logs.

Key takeaways

  • A supervisor is a manager agent that plans, delegates, checks and stops the run
  • CrewAI builds it with a hierarchical process; AutoGen builds it with a managed group chat
  • Give each worker one skill and one expected output
  • Cap turns, retries and tokens so a confused run ends instead of looping
  • Keep a human on risky steps and read the manager's log every week

Frequently asked questions

Do I need a supervisor, or will a single agent do?

A single agent is enough for short, simple tasks. A supervisor earns its keep when the job has distinct stages, a quality bar and more than one skill, such as research, then writing, then checking. If the job is one step, skip the supervisor.

What is the difference between CrewAI and AutoGen here?

CrewAI splits work by roles and tasks, with a manager agent running a hierarchical process. AutoGen splits work by conversation, with a GroupChatManager choosing which agent speaks next. CrewAI fits pipelines; AutoGen fits open-ended debate and diagnosis.

How many agents should a supervisor manage?

Start with two or three workers plus the manager. Small teams are easier to debug and cheaper to run. Add a worker only when the logs show a real gap, such as a step the manager keeps doing itself.

How do I stop a supervisor from looping forever?

Set a maximum number of turns, a maximum number of retries per task and a token budget, and define what finished looks like. The manager should stop the run when the output passes its checks or when a limit is hit, and hand the work to a human.

Is AutoGen still a safe choice for new projects?

AutoGen works, but its repository is in maintenance mode and Microsoft points new feature work to the Microsoft Agent Framework. Check the current version and support status before starting, and weigh it against CrewAI for a new build.

Where should a human check the supervisor's work?

On any step that sends a message, changes data or spends money, and on a weekly sample of automatic output. The human checkpoint is what keeps a confident but wrong agent from doing real damage.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: AI and agent systems in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a multi-agent supervisor for your team? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Multi-Agent Systems service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to contact@hertiv.com.

Prefer email? Write to contact@hertiv.com
Estimate costBook a call