| Orchestrator | An agent or deterministic service that assigns tasks and collects results. |
| Hand-off | Passing state and context from one agent to another with a clear contract. |
| Specialist agent | An agent with a narrow toolset and role, such as research or review. |
- A task separates cleanly into independent sub-tasks.
- Different steps need different tools or permissions.
- Parallel work materially reduces latency.
- 01Define the orchestrator and the specialist roles.
- 02Give each specialist only the tools and context it needs.
- 03Pass structured hand-offs with explicit success criteria.
- 04Aggregate results and verify before returning to the user.
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.
Typed hand-off for a proposal workflow
{
"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
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.
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
| Option | Upside | Cost |
|---|---|---|
| Multiple specialists | Focused context and permissions | Coordination and hand-off failures |
| Single generalist | Fewer moving parts | Large context and mixed permissions |
| Parallel work | Lower latency | Higher peak cost and harder debugging |
- 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.
| Key | Typical value | Note |
|---|---|---|
| max_agents | 2–4 | Beyond this, coordination dominates. |
| handoff_schema | versioned | Avoid brittle free-form context. |
| run_budget | shared | One budget for the entire workflow. |
| Symptom | Cause | Fix |
|---|---|---|
| Agents repeat each other's work | No shared state or task ledger | Use a shared run state with task ownership. |
| Hand-offs lose context | Free-form summaries | Pass structured fields with required keys. |
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
Agent anatomy: loop, planner, tools and memory
The minimal system behind an AI agent: a goal, a reasoning loop, tool access, state and a stop condition.
Agentic patterns: ReAct, plan-and-execute, reflection
Three reusable reasoning patterns and how to choose between them for real workloads.
Agent frameworks compared
LangGraph, CrewAI, AutoGen and MCP-based composition — what each optimises for and where it fits.