How a multi-agent system actually works
A multi-agent system splits a job across specialised agents, with a handoff you can test and a hard stop. Here is the shape that holds up once the demo is over.
A single agent is a model in a loop. It reads a task, calls a tool, looks at the result, and decides what to do next. That is enough for a narrow job: classify a ticket, pull three fields out of an invoice, draft a reply from a template.
A multi-agent system is what you build when one loop is holding too many jobs. You split the work across a few agents, each with its own brief and its own tools, and you add a piece that decides who runs, what they pass along, and when the run is finished.
The models are the easy part. The system is the roles, the handoff, and the stop.
Why split the work
One prompt gets worse as you pile jobs into it. Search, draft, check the facts, and decide whether to email the customer are four different standards of "done". Left in a single loop, the model mixes them. It cites a number it just invented, sends the mail before the check, or spends the context window on tools that step never needed.
Splitting makes each step smaller. A shorter brief, fewer tools, and a result you can reject before the next agent runs.
- The researcher can search. It cannot send mail.
- The writer can only use what the researcher returned.
- The checker did not write the draft, so it is reviewing someone else's work.
You also get a boundary to test. A researcher that must return a fixed shape fails in the open, before the writer starts. A single agent with no evals fails inside the loop, where the only symptom is a bad final answer.
The four parts
The systems I ship have the same four parts, whether the workflow is a support desk or a weekly ops brief.
Agents
An agent is a model, a role, and a set of tools. The role is a job description. "Find the source records and return quotes with links." "Draft the reply from those quotes and nothing else." "Compare the draft to the quotes and list anything unsupported."
Keep the tool list short. An agent should only have the tools its job needs. The worst thing it can do is bounded by that list.
The handoff
Agents pass a message. They do not share a mind. Make the message a structure: what was asked, what was found, what is still unknown, and whether the next step should run.
Chat between agents looks fluent in a demo. A schema is dull, and you can write an assertion against it. When a run goes wrong, you want to point at a missing field, not reread a conversation.
The orchestrator
Something has to pick who runs next. Two patterns cover most production work.
A fixed pipeline. Research, then draft, then review, in that order, every time. Use this when the path is known. Each step has an input, an output, and a failure that stays in that step.
A router. One coordinator reads the task and chooses a specialist. A billing question goes to the billing agent. A product bug goes to the product agent. Anything uncertain goes to a person. The router should be the smallest piece that can still choose. Once it starts drafting and searching, you have one large agent with extra latency.
Some jobs want both. The router picks a pipeline, and the pipeline runs straight through. Parallel work fits the same shape: two researchers run at once, and the next step waits until both packs are in.
These show up under a lot of product names: crews, swarms, supervisors, graphs. The name matters less than three questions. Is the path fixed? Does one component only route? Can two steps run together, and who waits for both?
Shared state and a stop
Keep state in a record the system owns: the original request, the artefacts so far, the decisions already made, and the budget left. Budget means steps, tokens, time, or money. Agents read what their step needs and write their artefact back. The chat log is a trace of how they got there, not the place later steps should recover the facts from.
Runs like this fail open. Without a cap, they keep delegating. Set a maximum number of steps, a maximum cost, and a rule for a check that fails twice. Stop, and hand a person the draft, the pack, and the objection.
One run, end to end
A support email arrives. It might be billing, a product issue, or a sales lead.
- The orchestrator writes the message into the shared record.
- A router labels it. Billing, product, and a confident sales lead each go to their own specialist. Low confidence skips them and opens a queue for a person.
- The specialist calls only its tools. Billing reads the invoice system. It has no web search and no send button.
- It returns a pack: the facts it used, a draft reply, and the fields it could not find.
- A checker compares the draft to the pack. Supported claims pass. A missing invoice number comes back as one specific objection.
- A second failure ends the run. A person gets the draft, the pack, and the objection. Nothing is sent.
- The trace names the agent on every call, so a bad reply points at the router, the specialist, or the checker.
Trigger, route or sequence, specialised work, an independent check, a stop, a trace. That is the machine.
What goes wrong
A committee for a one-step job. One model and two tools will beat four agents on a task that was never split for a reason. Extra agents add latency, cost, and new places to look when the answer is wrong. Add one when the role, the tools, or the check is actually different.
No owner of the artefact. If every agent can rewrite the last one's work, you get a polite loop. One agent owns the draft. The others may accept it, reject it with a reason, or annotate it.
Chat as the interface. Once two agents discuss the task in paragraphs, the handoff stops being something you can eval. Pass fields.
A router that does the work. Classification is a small job. Read the trace. If one role makes almost every tool call, the other boxes are decoration. Collapse them.
No per-agent trace. A bad brief and a bad writer look the same in the final email. Log which role ran, what it received, what it returned, and who it handed to.
When it is worth it
Split the system when the job has phases that need different tools, when a later step must be kept off data or actions an earlier step used, when you want the check done by an agent that did not write the draft, or when the path branches and one prompt cannot hold the branch rules without going vague.
Leave it as one agent for a single classification, a single draft from a template, or any task you cannot yet describe a failure for. Start there. Split when a trace shows one model mixing jobs.
If you are deciding whether a workflow needs one agent or several, get in touch. The useful question is which boundary to draw, and which tool that boundary is not allowed to touch.