GlossaryMulti-agent system
Multi-agent system
A multi-agent system is a design in which several AI agents, each with its own role, instructions and tools, work together on a task. Instead of one agent doing everything, specialists handle parts of the work and pass results between them.
How it works
Common patterns include:
- Supervisor and workers. A supervisor agent breaks the task down, assigns parts to worker agents and combines their results.
- Pipeline. Agents run in a fixed order, each taking the previous agent's output as input.
- Peer review. One agent produces work and another critiques it, and the first revises.
Research frameworks for multi-agent conversation showed that agents with distinct roles, conversing and handing off control, solve tasks that single agents struggle with. Agent-to-agent protocols define how agents built separately describe their capabilities and exchange tasks, so a system combines agents from different teams.
Each agent has narrow permissions matched to its role. Shared state, such as a task record or a common memory store, keeps agents working from the same facts.
Work moves between agents through handoffs. A handoff has a trigger, such as a task outside the agent's role, a failed check or a needed approval, and a package: the goal, the steps taken, results so far, open questions and the files involved. Unlike a tool call, where the caller stays in charge, a handoff transfers ownership to the receiving agent or person. Many multi-agent failures are handoff failures, where the receiver gets the task without its history.
Multi-agent system vs single agent
A single agent with many tools is simpler to build, debug and reason about. A multi-agent system splits complex work into focused roles, each with a shorter prompt and fewer tools, which improves reliability on each part. It also adds coordination cost: more calls, more latency and more places for context to get lost. Teams usually start with one agent and split only when one role is doing too much.
Why it matters
Engineering tasks span several kinds of expertise, and one prompt that covers all of them becomes long and inconsistent. Splitting roles lets each agent follow its own rules and permissions. It also makes failures harder to trace, since an error in one agent's output shows up later in another's, so observability matters more.
How to get it right
- Give each agent one clear role, with its own tools and permissions.
- Define each handoff trigger and package in a structured format.
- Keep a shared task record that every agent reads and writes.
- Trace every agent's calls under one task ID.
- Set step and cost budgets for the whole system, not only per agent.
- Put human review at the points with the highest stakes.
Multi-agent systems in robotics and drone hardware
Robotics has long studied multi-robot systems that divide work across machines. Software multi-agent systems apply a similar division to engineering work: one agent reviews schematics, another checks parts and stock, another prepares build files, with an engineer approving releases. Clear roles and a shared record keep each agent's work tied to the same design revision.