- Prove that splitting the task solves a specific limitation.
- Use explicit task contracts, state ownership and stop conditions.
- Compare accepted results and operating cost against a simpler baseline.
For engineers deciding whether a workflow needs multiple agents.
Several agents discussing a problem can look convincing while repeating the same mistake. More model calls do not automatically provide independent evidence or better decisions. The architecture must explain what each participant contributes and how disagreements are resolved.
Consider an illustrative technical-review workflow: one worker checks an API contract, another examines migration risks and an orchestrator prepares a decision note. That separation can be useful because the checks have different inputs and acceptance criteria. It also introduces handoffs, shared state and failure recovery that a single workflow would not need.
1. Establish a single-workflow baseline first
Implement the simplest version that can complete the task with validated tools and a clear output schema. Measure where it fails. Perhaps the context is too large, independent checks take too long, or one task requires a different tool boundary. Those observations are reasons to consider decomposition.
Anthropic’s agent guidance discusses patterns such as parallelisation and orchestrator-worker systems. Treat the patterns as options for a task, not as a maturity ladder. A fixed sequence may remain the most reliable solution even when more autonomous coordination is possible.
Build an evaluation set before changing the architecture. Keep the input cases, required evidence and acceptance criteria stable so the comparison remains meaningful. Include ambiguous requests and unavailable dependencies. Otherwise, a multi-agent demo may appear better simply because it was given easier examples.
2. Choose the coordination pattern deliberately
A supervisor can delegate bounded tasks and assemble their outputs. A shared-state design lets workers contribute to a common record, but requires ownership and conflict rules. A handoff design moves responsibility between specialists and needs an explicit record of who currently owns the task.
| Pattern | Useful when | Main risk |
|---|---|---|
| Supervisor and workers | Independent checks feed one decision | Supervisor becomes a bottleneck or loses evidence |
| Shared state | Several stages enrich the same artefact | Conflicting edits or stale reads |
| Explicit handoff | Responsibility changes with task state | Loops and ambiguous ownership |
| Fixed parallel checks | Inputs are known in advance | Duplicated work without extra value |
For the technical review, parallel contract and migration checks may be enough. There is little benefit in allowing workers to invent more workers if the checklist is already known.
3. Define a contract for every delegated task
Give each worker a scoped question, permitted tools, required evidence and a structured result. A review output might contain findings, supporting file locations, unresolved questions and a completion status. Do not ask for a free-form essay and expect the orchestrator to infer whether the task succeeded.
Preserve provenance when passing information between workers. A claim from another agent is not a primary source. The receiving worker should be able to inspect the referenced document, test output or code location. Mark assumptions separately from observed facts.
The following is an illustrative task record, not an executable orchestration framework:
{
"taskId": "contract-review-17",
"owner": "api-reviewer",
"status": "pending",
"inputVersion": "proposal-v3",
"requiredOutput": ["findings", "evidence", "openQuestions"],
"maxAttempts": 2
}Include the input version so a result produced for an older proposal cannot silently approve a newer one.
4. Control shared state and consequential actions
Give each artefact an owner or a concurrency rule. Workers can write separate findings and let the orchestrator merge them, rather than simultaneously editing the same paragraph. If shared writes are necessary, use version checks and reject updates based on stale state.
Keep business actions behind a central execution boundary. Two workers should not independently issue the same refund, deployment or external message. The workflow should collect a proposal, validate it and record a single authorised execution with an idempotency key.
Set limits for elapsed time, worker count, retries and cost. A loop should terminate with an unresolved state and a reason. Repeatedly asking another agent to “double-check” without a stop rule increases cost while creating the appearance of scrutiny. Keep the recovery path visible to an operator.
5. Evaluate the final artefact and the coordination cost
Score whether the final decision note is correct, supported and useful to its reader. Inspect whether the orchestrator dropped a critical finding or turned a disagreement into false certainty. Agreement between agents that used the same evidence is not an independent verification method.
Compare the baseline and multi-agent design on accepted outcomes, latency, total tool calls and recovery effort. Include worker timeouts, malformed results and contradictory evidence. Record how often a person must repair the combined result. A faster parallel run can still cost more to review.
For a sample review, retain the source proposal, each worker result and the merged note. Ask a reviewer to trace every consequential recommendation back to evidence. This reveals whether decomposition improves coverage or merely produces a longer answer.
6. Introduce the smallest useful multi-agent boundary
Start with one additional independent check and keep the rest of the workflow fixed. Observe whether it catches a meaningful class of failures. Expand only when a new role has a distinct responsibility and a measurable contribution.
Version the orchestration configuration alongside tool schemas and evaluation cases. Preserve task IDs across retries and show which worker currently owns each item. An operator should be able to stop the run, inspect completed work and resume a bounded task without restarting everything.
For enterprise actions, combine these patterns with the approval and idempotency controls in our AI workflow guide. For repository work, the coding-agent guide explains why independent checks and normal review gates remain necessary.
Common questions
Do multiple agents provide independent verification?
Only when their methods or evidence are meaningfully independent. Several agents repeating the same unsupported source can reinforce an error rather than correct it.
When is a shared-state design useful?
It can help when stages enrich a common artefact, provided updates have ownership, version checks and a clear conflict policy. Separate outputs are often simpler.
What should happen when agents disagree?
Preserve the disagreement and its evidence. Use an explicit resolution rule or human review rather than averaging incompatible claims into a confident answer.
Sources & further reading
Primary documentation and research used for the technical context in this guide. Examples and checklists are illustrative; validate them against your system and the versions you deploy.
