AI basics7 min read
Multi-agent orchestration: when one AI agent isn’t enough
Splitting work across several specialised AI agents can make complex processes manageable, or add complexity you do not need. Patterns, handoffs, guardrails and monitoring explained.
Ryze Labs engineering team
Key takeaways
- Several agents make sense when a process has clearly separate stages with different tools, permissions or expertise, not simply because a task feels large.
- Handoffs between agents should pass structured, validated data and a clear task description, never an unbounded conversation history.
- A multi-agent system needs end-to-end tracing, per-agent permissions, cost and loop limits, and human approval at the points where real-world actions happen.
A single AI agent works well for a contained task, such as reconciling one supplier statement or answering one customer query with a few lookups. As soon as a process spans several departments, systems and types of decision, one agent with dozens of tools becomes hard to test and easy to confuse. Multi-agent orchestration splits the work across specialised agents and coordinates them, but it brings its own engineering problems.
When one agent is not enough
If you are new to the topic, start with our explainer on what an AI agent is. The short version: an agent receives a goal, chooses which tools to call and repeats until the task is done. Problems appear when a single agent has to do too many different things.
- Too many tools. With a long list of tools, a model is more likely to pick the wrong one or mix up their parameters.
- Conflicting instructions. Rules for writing to customers and rules for posting accounting entries do not belong in the same prompt.
- Different permissions. The part that reads emails should not have the same access as the part that creates credit notes.
- Different models. Some steps need a large model, others run perfectly well on a small, cheap one.
When two or more of these apply, splitting the process into specialised agents is usually worth considering. When none apply, a single agent or a plain workflow is simpler and easier to maintain. It is also quicker to deliver, because every additional agent has to be made reliable on its own; our guide to how long an AI agent takes to build compares the timelines.
Common orchestration patterns
| Pattern | How it works | Good for | Watch out for |
|---|---|---|---|
| Supervisor | A coordinating agent assigns subtasks to specialist agents and combines results | Processes where the order of steps varies | The supervisor becomes a bottleneck or loops |
| Pipeline | Agents run in a fixed order, each passing output to the next | Stable processes with distinct stages | Errors early in the chain propagate |
| Handoff | One agent transfers the whole case to another with a summary | Routing between departments or skills | Lost context at the transfer |
| Parallel | Several agents work on parts at once, then results are merged | Independent checks or research | Conflicting results that need resolving |
In practice, the most robust systems use a fixed workflow as the backbone and call agents only for the steps that need judgement. The workflow decides the overall order; agents handle the variable parts within it. This keeps behaviour predictable while still dealing with messy cases.
Example
Illustrative example: order intake at a freight forwarder
A fictional 50-person freight forwarder receives transport requests by email in several languages. An intake agent reads each email and extracts origin, destination, dates, weight and special requirements into a structured form. A pricing agent, with read-only access to tariffs and recent quotes, proposes a price and flags unusual lanes. A communications agent drafts the reply to the customer. A supervisor workflow checks that each stage produced valid output, and a dispatcher approves the quote before anything is sent.
Handoffs and shared state
Most failures in multi-agent systems happen at the boundaries. If one agent passes its entire conversation to the next, the receiving agent inherits irrelevant details, mistakes and possibly manipulated content. Handoffs work better when they are treated like an API between two services.
- Pass structured data with a defined schema, for example a shipment request with typed fields, and validate it in code before the next agent starts.
- Include a short, explicit task for the receiving agent rather than expecting it to infer what to do.
- Keep the case state in a database, not in the agents’ memory, so any step can be retried or inspected.
- Record who did what: which agent, which model version, which inputs, which outputs.
Guardrails that scale with the number of agents
More agents mean more places where something can go wrong. Each agent should run with its own identity and only the permissions it needs. An agent that reads incoming email is also exposed to whatever text an outsider puts in that email, so it must not be able to trigger payments or change records directly. Our article on prompt injection and AI security covers these defences in detail.
- Least privilege per agent: read-only wherever possible, write access only through narrow, typed tools.
- Human approval at action points: anything that sends, pays, books or deletes waits for a person. See our guide to human-in-the-loop AI.
- Limits: maximum steps, time and cost per case and per agent, with a handover to a person when a limit is reached.
- Input and output checks: schemas, business rules and allow-lists between every stage.
Observability: seeing what the agents did
With one agent, a log of its steps is often enough. With several, you need tracing across the whole case: one identifier that links the original email, every agent call, every tool call, every approval and the final result. Without it, answering “why did the customer get this quote?” means piecing together scattered logs.
- A timeline view per case showing each agent, its inputs, outputs and duration.
- Cost per case and per agent, so you can see where money is spent.
- Alerts for loops, repeated retries, timeouts and unusually long cases.
- A regular review of a sample of completed cases, plus all cases that ended in a human handover.
These traces also feed your evaluation set. Cases where a person corrected an agent are the most valuable test material you have, a point we return to in our article on moving AI from pilot to production.
Failure modes and how to contain them
Multi-agent systems fail in recognisable ways. Agents can pass a task back and forth without progress, a supervisor can keep requesting more information, or two parallel agents can return contradictory answers. Each of these needs a defined response rather than an endless retry.
- Set a hard ceiling on handoffs and steps per case; when it is reached, stop and route the case to a person.
- Decide in advance which result wins when parallel agents disagree, or escalate the conflict.
- Make every write action idempotent, so a retried step cannot create a second invoice or a duplicate booking.
- Keep a manual fallback for the whole process, so work continues if a provider or model is unavailable.
Next steps: before you build a multi-agent system
- Map the process end to end and mark the stages that need judgement and the ones that follow fixed rules.
- Try to solve it with a workflow plus one agent first. Split into more agents only where tools, permissions or instructions clearly differ.
- Define the data passed between stages as schemas, and decide where case state is stored.
- List every real-world action and assign an approver for each one.
- Set up tracing and cost reporting before the first pilot, not after the first incident.
If your process genuinely needs several cooperating agents, our AI agent orchestration work focuses on exactly these points: structured handoffs, scoped permissions, approvals and tracing you can audit.
General information, not legal, tax or investment advice.