Skip to content

Multi-agent orchestration patterns

When to split work across agents, how they hand off, and how to avoid coordination overhead.

6 MIN READUPDATED 2026-11-18Agents & agentic AI
ORIGINAL DIAGRAM · SERVICE TOPOLOGYGATEWAYSERVICE 1own dataDB 1SERVICE 2own dataDB 2SERVICE 3own dataDB 3EVENT BUS / ASYNC MESSAGES

Original services diagram — not a copied image

§ 01Key concepts
OrchestratorAn agent or deterministic service that assigns tasks and collects results.
Hand-offPassing state and context from one agent to another with a clear contract.
Specialist agentAn agent with a narrow toolset and role, such as research or review.
§ 02When to use
  • A task separates cleanly into independent sub-tasks.
  • Different steps need different tools or permissions.
  • Parallel work materially reduces latency.
§ 03How it works
  1. 01Define the orchestrator and the specialist roles.
  2. 02Give each specialist only the tools and context it needs.
  3. 03Pass structured hand-offs with explicit success criteria.
  4. 04Aggregate results and verify before returning to the user.
§ 04Use cases & scenarios

Proposal research and review

Context
A proposal workflow needs a researcher and a critical reviewer.
Problem
A single agent both writes and judges its own claims.
Approach
Split roles with a versioned hand-off containing evidence IDs and success criteria.
Outcome
Fewer unsupported claims and a clear record of who produced each part.

Catalogue enrichment at scale

Context
Thousands of products need descriptions enriched in parallel.
Problem
Sequential processing is too slow and one failure can block the batch.
Approach
Run category specialists in parallel with a shared run budget and typed results.
Outcome
Faster completion with spend capped across the whole run.
§ 05Examples

Typed hand-off for a proposal workflow

json
{
  "run_id": "run-8821",
  "from": "researcher",
  "to": "reviewer",
  "schema_version": 2,
  "payload": { "question": "", "evidence_ids": [], "draft": "" },
  "success_criteria": ["every claim has an evidence id"]
}

A versioned hand-off with required fields is far easier to replay than a free-form summary.

Shared run budget across specialists

ts
const run = { id, spent: 0, ceiling: 4000 }; // tokens, shared
async function callSpecialist(name: string, input: string) {
  if (run.spent >= run.ceiling) return handoffToHuman(run);
  const res = await specialists[name].run(input);
  run.spent += res.tokens;
  return res;
}

Cap spend at the run level, not per agent — parallel specialists would otherwise each spend the full budget.

§ 06Trade-offs

Multiple specialists

Up: Focused context and permissions

Down: Coordination and hand-off failures

Single generalist

Up: Fewer moving parts

Down: Large context and mixed permissions

Parallel work

Up: Lower latency

Down: Higher peak cost and harder debugging

§ 07Implementation checklist
  • Start with one agent; split only when a measured bottleneck justifies it.
  • Make hand-offs typed and versioned.
  • Trace every agent and tool call with a shared run ID.
  • Cap total spend across the whole run, not per agent.
§ 08Configuration reference
KeyTypical valueNote
max_agents2–4Beyond this, coordination dominates.
handoff_schemaversionedAvoid brittle free-form context.
run_budgetsharedOne budget for the entire workflow.
§ 09Troubleshooting
SymptomCauseFix
Agents repeat each other's workNo shared state or task ledgerUse a shared run state with task ownership.
Hand-offs lose contextFree-form summariesPass structured fields with required keys.
§ 10Frequently asked questions

Do multi-agent systems perform better?

They help when tasks parallelise or permissions differ. For most workflows a single well-tooled agent is more reliable.

How do I debug a multi-agent run?

Use one run ID across all spans, record each hand-off, and replay the trace step by step.

More in Agents & agentic AI