Several agents, one objective, run at the same time
Parallelisation puts independent agents on separate paths at once and gives one agent the job of merging what they find. This page covers when that split makes sense and how the merge step handles conflicting or incomplete results.
Read the orchestration guidesWhen to run agents side by side
A step that drafts a report needs the research finished first. A step that checks inventory does not need anything from a step that checks shipping rates. The difference between those two cases is what decides whether agents should run one after another or at the same time.
What makes a path independent
An agent's work path is independent when it does not read anything another agent has not yet produced, and does not write to something another agent is also changing mid-run. Three agents each researching a different competitor fit this. A validation agent that needs the output of all three before it can start does not, and belongs after them.
Checking before you parallelise
- Does this agent's prompt reference something another agent produces?
- Does it write to a file, record, or variable another agent also writes to?
- Does the order these agents finish in change the correctness of the result?
If the answer to all three is no, the paths can run side by side. Steps that do not depend on each other can run in parallel. A later step brings their results together once each path reports back. Mapping that split first means the handoff order only has to cover the points where paths actually meet.
Mapping a competitive analysis pipeline
This example is invented to show the pattern. Its objective is to compare three competitors, Competitor A, Competitor B and Competitor C, on pricing, feature set and recent product announcements, and turn it into a report.
- You write the objective as a single line, naming the three competitors and the three things to compare.
- You check whether any of the three research tasks needs output from another before it can start. Researching Competitor A does not depend on what gets found about Competitor B or Competitor C, so each one gets its own agent.
- Each of the three researcher agents gets the same tool list, web search and page fetch, the same trigger condition, start immediately, and a different scope: the one competitor it is responsible for.
- A fourth agent, the synthesiser, gets no tools of its own. Its trigger condition is not "start", it is "all three researchers have returned", so it only runs once the parallel work is done.
- The handoff order has three branches running at the same time. They meet at the synthesiser, which produces the final comparison.
| Agent | Tools | Trigger condition | Handoff target |
|---|---|---|---|
| Researcher: Competitor A | Web search, page fetch | Start | Synthesiser |
| Researcher: Competitor B | Web search, page fetch | Start | Synthesiser |
| Researcher: Competitor C | Web search, page fetch | Start | Synthesiser |
| Synthesiser | None (reasoning only) | All three researchers return | End |
The result is four agents, with three parallel research branches and one point where they meet. The plan cannot tell you whether two researchers will come back with contradicting figures, or whether one will fail to return at all. Checking how the synthesiser handles conflicting or missing findings before you run the pipeline is still your decision.
Conflicting findings and incomplete returns
When three agents search for the same kind of information at the same time, they do not always agree. One agent might report a competitor's pricing has changed, another might report it has not, because the pages they read were cached at different times. A fourth agent, the synthesiser, is the one that receives all three sets of findings and has to decide what to do with the mismatch before the workflow can move on.
Conflicting findings
The synthesiser does not pick a winner by guessing. You set a rule in your plan for how it handles disagreement. It can flag the conflict and pass both versions downstream with their sources attached, or it can defer to one agent's tool output over another's when you have reason to trust one source more. Either way, the role assignment makes the rule explicit. A synthesiser configured this way can still produce a wrong resolution, because it is only as good as the rule and the source data behind it, so the output is worth checking.
Incomplete returns
Parallel agents do not always finish together. One might time out, hit a rate limit on its tool, or return an empty result. The synthesiser needs a trigger condition for this too: wait for every agent before merging, or proceed once a set number have reported and mark the missing one as absent. You set this once for the workflow. The plan also needs a handoff target for an agent that fails outright, so the pipeline has somewhere to send that exception.
Getting this right at the planning stage means the gap between three agents researching at once and one agent making sense of what they found is defined before any of them run. The evaluator-optimiser pattern covers a related case, where a single agent's own output is checked and revised in a loop. For workflows where one agent decides which task goes to which worker at runtime, see orchestrator-workers.