Skip to main content

Your buyers are asking AI. Are you the answer?

Find out with OptimizeCamp →
Back to Blog
multi-agentagent orchestrationprompt engineeringagentic AIagent patterns

Multi-Agent Prompting Guide: Coordinating Specialist Agents (2026)

How to prompt multi-agent systems in late 2026 — orchestrator-worker topology, hand-off contracts, shared vs isolated context, MCP scoping, model routing, and failure modes.

April 20, 2026
Updated December 1, 2026
15 min read

TL;DR

Multi-agent systems distribute a problem across specialist agents with distinct prompts, scoped tools, and right-sized models. Orchestrator-worker is the default topology; the main design decision is shared vs isolated context between workers.

Multi-agent prompting splits a problem across several specialist agents — a planner, a researcher, a writer, a reviewer — each with its own prompt, tool surface, and context window. The default topology is orchestrator-worker: one agent decomposes and delegates, while workers execute scoped sub-tasks and report back. The central design question is not "how many agents" but "what does each one see" — shared context keeps workers coordinated but expensive; isolated context keeps them focused but demands explicit hand-offs.

What Multi-Agent Prompting Is

A multi-agent system replaces one long prompt with several short ones, each tuned to a role. Instead of asking one agent to "research, draft, and review," the setup hands research to a researcher whose prompt is about source selection, the draft to a writer whose prompt is about structure and voice, and the review to a critic whose prompt is about what to flag.

Even with standard 1M–1.05M token context windows across late-2026 frontier models, single-agent prompting still stops scaling in three places: role confusion (one prompt juggling planner, coder, and tester trades them off), context rot (long runs accumulate noisy tool outputs that degrade attention long before the window fills, as documented in Anthropic's guide to effective context engineering for AI agents), and parallelism (independent sub-tasks cannot run concurrently inside one sequential loop). Multi-agent enters when any of those three starts to bite. See the agentic AI glossary entry for the broader category.

Orchestrator-Worker Topology

One planner, many executors. The orchestrator's prompt is about decomposition and delegation: read the goal, produce sub-tasks, hand each to a worker, assemble the output. Workers' prompts are about execution within a tight scope: here is your one job, here are your inputs, produce this output.

As Anthropic's guide to building effective agents emphasizes, orchestrator-worker is the most common production topology because its failure modes are legible. When something goes wrong, you know whether the plan was bad (orchestrator), a sub-task failed (worker), or the hand-off dropped information. Contrast that with a single monolithic run where "the agent got confused somewhere around step four" is the typical post-mortem.

The pattern pairs directly with plan-and-execute prompting: the orchestrator is a plan-and-execute planner. Workers use whatever internal loop fits their slice — a ReAct loop for open-ended exploration, or a single-shot call for deterministic extraction. In Anthropic's multi-agent research system engineering report, an orchestrator delegating parallel search subagents substantially outperformed a single agent on breadth-heavy research — while consuming roughly 15x more tokens than simple single-turn chat, underscoring why orchestration belongs on tasks whose value justifies the token multiplier.

Other Topologies

Peer-to-peer. Agents as equals, no central coordinator. Rare in production because coordination overhead explodes — every agent has to negotiate who does what, the problem an orchestrator solves once. Shows up in debate patterns, where the judge is effectively an orchestrator.

Hierarchical (nested orchestrators). Workers that are themselves orchestrators. Works when the top-level task has phases that are each independently decomposable. The risk is depth — each nesting level adds hand-off latency and token overhead, and by level three a flatter graph is usually faster and easier to debug.

Pipeline. Agents chained in fixed order: A feeds B, B feeds C. Strictly speaking a deterministic workflow with specialist prompts rather than dynamic coordination, though the per-stage prompt discipline is identical.

TopologyWhen it fitsMain risk
Orchestrator-workerMost real tasks — distinct sub-tasks, clear ownershipOrchestrator becomes a bottleneck
HierarchicalMulti-level decomposition (research -> subtopics -> sources)Hand-off cost compounds with depth
Peer-to-peerDebate, critique, consensusCoordination overhead dominates
PipelineFixed stages with predictable I/OBrittle when any stage surprises the next

Most production systems in late 2026 are orchestrator-worker with occasional hierarchical nesting for research-heavy sub-tasks.

Specialist Prompts and Scoped Tooling

Each worker gets a prompt tuned strictly to its role — and only the tools its role requires. This is where multi-agent earns its cost.

A researcher's prompt is about source quality and breadth — where to look, how to cite, when to stop — not prose voice. A writer's prompt is about structure and tone and receives verified sources as input rather than searching on its own. A critic's prompt is about what to flag and never rewrites.

Pair prompt specialization with tool specialization. With the Model Context Protocol (MCP) now standardizing how agents connect to external tools and data sources, resist mounting every MCP server onto every worker. Give the researcher read-only search and fetch servers; give the writer zero external network tools; give the critic schema validators and policy lookups. Narrowing both prompt instructions and MCP tool surfaces prevents workers from drifting into each other's jobs and shrinks the blast radius if a worker ingests hostile content.

Resist pasting the same generic preamble into every worker. Specialization means each prompt differs materially in instructions, output format, and explicit refusals. For related prompt-construction techniques see the complete guide to prompting AI coding agents.

Hand-Offs

The hand-off is the contract between agents. Two things have to be explicit.

What gets passed. Define the shape — a JSON object, a labelled section, a typed tool-call result. The worker's prompt specifies this as required output; the orchestrator's prompt specifies it as expected input. Mismatch is the most common failure: the researcher returns prose, the writer expects a list with verified URLs, and the writer improvises and hallucinates.

What does not. Workers rarely need the full task history or another worker's scratchpad. Strip the hand-off to what the next agent strictly needs.

Hand-offs make state visible. In a single-agent run, state hides inside a sprawling context window. In a multi-agent run, state is the hand-off object — log it, diff it, replay from it. That visibility is half the reason multi-agent systems are easier to debug once built.

Shared vs Isolated Context

The central design choice: does every worker see every other worker's transcript plus the full orchestrator context, or does each worker see only its scoped inputs and task description?

Shared context is easy to wire — paste the full conversation into each call. It keeps workers loosely aligned, but it burns tokens linearly with worker count, dilutes focus, and reintroduces the role-confusion problem multi-agent was supposed to solve. A writer that sees the researcher's scratchpad starts second-guessing the research.

Isolated context is cheaper and sharper. Each worker sees only its inputs; coordination happens through explicit hand-offs. The trade-off is that hand-off design becomes load-bearing — drop one constraint the next worker needed and the run fails in hard-to-trace ways.

The pragmatic middle is isolated context with structured hand-offs plus a compact task record: workers do not share raw transcripts, while the orchestrator maintains a concise task record (goal, audience, constraints, completed hand-off summaries) passed to each worker.

ApproachCostFocusFailure mode
Fully sharedHigh tokens per workerLowRole confusion and context rot return
Fully isolatedLow tokens per workerHighHand-off drops critical state
Isolated + task recordModerateHighTask record grows unbounded without pruning

Start isolated, add a pruned task record, and resist pushing full transcripts into shared context without concrete evidence that a worker needs them.

Model Routing and Caching Economics (December 2026)

One of the highest-leverage reasons to split a workflow across specialist agents is tiered model routing — putting expensive reasoning only where planning or judgment actually moves the outcome, and running mechanical fan-out workers on low-cost tiers.

Using verified December 2026 rates from Anthropic pricing and OpenAI API pricing:

  • Orchestrator and high-stakes critic: Frontier models that plan cleanly and catch subtle contradictions — Claude Opus 5.5 ($4/$20 per 1M tokens, $0.20 cached, 1M context), GPT-6.2 Astra ($8/$40, $0.40 cached, 1.05M), Claude Fable 5.2 ($8/$40, $0.20 cached, 1M), or everyday flagships GPT-6.2 Sol ($2/$10, $0.10 cached, 1.05M), Claude Sonnet 5.5 ($2/$10, $0.10 cached, 1M), and Gemini 4 Carbon / Argon ($4/$20 standard effective December 1, 2026, $0.20 cached, 1M shared).
  • Parallel mechanical workers (source screening, extraction, schema normalization, lint checks): High-speed, low-cost models — Claude Haiku 5.5 ($0.10/$0.50 <=100K, $0.01 cached, 1M), GPT-6 Luna ($0.10/$0.50, 1.05M), Gemini 3.5 Flash-Lite ($0.30/$2.50, 1M), DeepSeek V4.1 Flash ($0.30/$1.20 peak, 1M, vision+text), or open-weight DeepSeek V4 Pro ($1.32/$3.96 peak, half off-peak, $0.044 cache hit, 1M, MIT) and Mistral Large 4 ($0.70/$2.10, $0.07 cached, 1M).

Caching amplifies parallel fan-out. When an orchestrator spawns 10 parallel researcher workers that share an identical static system prompt and tool schema above the cache boundary — with only each worker's narrow sub-question placed below it — call 1 warms the prefix and calls 2–10 hit the cache at 90%–95% off (down to $0.10/M on Sonnet 5.5 and GPT-6.2 Sol, $0.01/M on Haiku 5.5). Always keep worker system prompts identical across parallel instances and pass the sub-task strictly in the user message.

Failure Modes

Four patterns account for most multi-agent failures.

Cascade failures. An early worker returns slightly wrong output; later workers treat it as ground truth and compound the error. The researcher cites a paper that does not exist; the writer quotes it; the critic does not catch it. Fix: the orchestrator validates hand-offs against a schema and runs deterministic verification (for example, checking that URLs resolve) before passing outputs downstream.

Redundant work. Two workers execute the same sub-task because decomposition overlaps or a worker re-does what the previous worker "should have" done. Fix: tighter non-overlapping slices in the orchestrator prompt and explicit "do not do X" clauses where overlap is a known risk.

Incoherence. Each worker finishes its slice accurately, yet the assembled deliverable contradicts itself because no single worker saw the whole picture. The introduction promises five points, the body covers four, and the conclusion references a sixth. Fix: a dedicated final assembly pass that reads the full artifact end-to-end.

Coordination overhead. The system spends more tokens and latency on hand-offs and meta-planning than on actual work. Fix: collapse thin workers back into a single agent with a broader scope. Over-decomposition hurts just as badly as under-decomposition.

A Multi-Agent Prompt Setup (Hypothetical)

Illustrative orchestrator and worker prompts for a "research and draft a short brief" task. Hypothetical — meant to show the separation of concerns, not a real production run.

text
ORCHESTRATOR PROMPT (e.g., Claude Opus 5.5 or GPT-6.2 Sol)

You are an orchestrator. You do not research or write prose. You decompose
the task, delegate to workers, validate hand-offs, and assemble the final output.

Goal: {{user_goal}}

Workers available:
- researcher: returns JSON {sources: [{url, title, one_line}]}
- writer:     takes {sources, outline} and returns markdown draft
- critic:     takes {draft} and returns JSON {blockers, suggestions}

Steps:
1. Produce an outline (3-5 section titles).
2. Call researcher with the goal and outline; expect 5-10 primary sources.
3. Validate the researcher JSON schema before proceeding.
4. Call writer with validated sources and outline.
5. Call critic with the draft.
6. If critic returns blockers, call writer once more with blockers.
   Otherwise, run a final coherence check and return the draft.

Task record (passed with each worker call):
- Original goal: {{user_goal}}
- Audience:      {{audience}}
- Word budget:   {{word_budget}}
text
RESEARCHER PROMPT (e.g., Claude Sonnet 5.5 or GPT-6 Luna with read-only search MCP)

You are a research agent. Your only job is to find primary sources. Do not
write prose, do not draft sections, do not summarize beyond one line per source.

Inputs: goal, outline, task record (provided in the user message).

For each source return:
{ "url": "...", "title": "...", "one_line": "why this matters" }

Rules:
- Prefer primary documentation, papers, and official benchmarks over aggregators.
- Never invent URLs. Return fewer sources rather than fabricating.
- Return valid JSON only, with no surrounding prose.
text
CRITIC PROMPT (e.g., Claude Opus 5.5 or GPT-6.2 Astra)

You are a critic. You do not rewrite. You flag issues.

Inputs: draft, validated sources, task record (provided in the user message).

Return JSON:
{
  "blockers":    [{"section": "...", "issue": "...", "why": "..."}],
  "suggestions": [{"section": "...", "suggestion": "..."}]
}

A blocker is any factual claim unsupported by the sources, internal contradiction,
or constraint violation. Everything else is a suggestion. Return JSON only.

Notice the shape. The orchestrator never discusses how to research or write — it decomposes, validates, and routes. Each worker keeps its static role prompt identical across calls (maximizing prompt-cache hits) while receiving variable inputs in the user message. Hand-offs are strict JSON so the orchestrator can reject malformed responses before they cascade.

When Multi-Agent Is Worth the Complexity

Three signals say yes.

Distinct phases. Phases that genuinely want different prompts, tools, and models — research then draft then review, or spec then implement then test. When inputs, outputs, and success criteria differ materially across phases, specialist prompts beat a single generalist prompt.

Parallelizable breadth. Tasks that can fan out independent slices concurrently — auditing ten repository modules, comparing eight vendors, or searching five subtopics simultaneously — win big on wall-clock latency and context isolation.

Review checkpoints. High-stakes writing, production code, or regulated workflows benefit from explicit hand-off gates where a separate critic agent (ideally from a different model family or tier) or a human approves before side effects execute.

When It Isn't

Short tasks and single-concern tasks. A two-paragraph support reply gains only latency and failure modes from orchestration. A small bug fix is simpler and cheaper as a single ReAct loop. Multi-agent also loses whenever sub-tasks are tightly coupled — if worker two needs worker one's full reasoning trace rather than a compact hand-off object, you are fighting the pattern.

Multi-agent orchestration frameworks — LangGraph, CrewAI, AutoGen, and first-party agent SDKs from Anthropic, OpenAI, and Google — all provide primitives for routing, retries, and state persistence. The prompting and hand-off principles apply identically whether you use a framework or a 100-line custom loop.

Common Anti-Patterns

  • Over-decomposition. Ten workers for a task that wants two. Coordination overhead dominates and output loses coherence. Fix: start with the smallest number of workers that captures genuinely distinct roles.
  • Generic worker prompts. Every worker starts with the same preamble; specialization exists only in the variable name. Fix: worker prompts should differ materially — different instructions, output formats, tool lists, and refusals.
  • Shared context everywhere. Pasting the full conversation into every worker call. Easy to wire, expensive in tokens, defeats specialization, and breaks cache reuse across parallel workers. Fix: isolated context plus a small pruned task record.
  • No hand-off schema. Workers return free-form prose; the orchestrator tries to parse it; edge cases break silently. Fix: structured hand-offs (JSON or typed tool responses) validated at the orchestrator.
  • Workers re-doing earlier work. The writer "double-checks" the researcher's sources and disappears down a search rabbit hole. Fix: strip search tools from the writer and add explicit "you do not do X" clauses.
  • No final assembly step. The orchestrator concatenates pieces without reading the whole. Incoherence slips through. Fix: run a dedicated assembly pass end-to-end.

FAQ

How is multi-agent different from plan-and-execute?

Plan-and-execute is a two-phase pattern inside one agent loop: plan, then execute. Multi-agent distributes those phases across specialist agents with separate prompts, context windows, and tool sets. The patterns compose — an orchestrator often uses plan-and-execute as its planning method, while workers use ReAct internally. Multi-agent is a coordination pattern; plan-and-execute is a reasoning pattern.

Should every worker use the same model?

Usually not. Pairing a frontier orchestrator and critic (Claude Opus 5.5, GPT-6.2 Astra, or GPT-6.2 Sol) with low-cost mechanical workers (Claude Haiku 5.5, GPT-6 Luna, Gemini 3.5 Flash-Lite, or DeepSeek V4.1 Flash) is one of the biggest cost wins of multi-agent design. The trade-off is cross-model eval discipline — test every worker prompt on the exact model tier that runs it.

How do I debug a multi-agent run?

Log every hand-off object alongside the worker's model version, token usage, and cache-hit metadata. Hand-off payloads are your deterministic replay trace: you can re-run any single worker from its logged inputs, diff outputs across prompt revisions, and pinpoint exactly where a cascade began. Schema-validate hand-offs at the orchestrator so malformed outputs fail loudly at the source.

When should a worker spawn its own sub-agents?

Only when its sub-task is genuinely decomposable into parallel slices large enough to pay back the extra hand-off cost. "Audit five independent microservices" is a reasonable candidate. "Write the introduction paragraph" is not — nesting there adds latency and token overhead without decomposition value.

Wrap-Up

Multi-agent prompting is what you reach for when one prompt stops scaling — roles conflict, long tool traces dilute attention, or parallel fan-out pays off. Orchestrator-worker is the default topology, specialist prompts and scoped MCP tool surfaces are where quality lives, tiered model routing plus cached worker prefixes are where unit economics live, and hand-off validation is where reliability lives. Keep workers isolated by default, use a compact task record for shared state, validate every hand-off at the orchestrator, and resist splitting a task into ten agents when two will do.

For how this pattern composes with others see the complete guide to prompting AI coding agents; for adjacent patterns see plan-and-execute prompting, tool-use prompting patterns, and ReAct prompting.

Try it yourself

Build expert-level prompts from plain English with SurePrompts — 330+ templates with real-time preview.

Open Prompt Builder

Ready to write better prompts?

SurePrompts turns plain English into expert-level AI prompts. 330+ templates, real-time preview, works with any model.

Try AI Prompt Generator