Skip to content

Multi-Agent Systems: When One Agent Isn't Enough

Multi-agent systems split work across specialized AI agents. Learn when they beat a single agent, which topologies work, and the coordination costs to expect.

TechnoKeen Engineering 8 min read Published
On this page

A multi-agent system splits a task across several AI agents, each with its own instructions, tools, and context, coordinated by code or by another agent. It is the right design when a single agent’s context, toolset, or permissions become too broad to manage well. It is the wrong design when you are using it to make a demo look sophisticated. Most teams should exhaust a single well-tooled agent first, then split along clear seams.

Key takeaways

  • Split into multiple agents to solve a specific problem: context overload, too many tools, parallelizable breadth, or permission separation. “It feels more modular” is not enough.
  • The supervisor (orchestrator-workers) topology covers most production needs. Peer-to-peer and debate designs are harder to debug and rarely justify the cost.
  • Multi-agent systems multiply token use and latency. Budget for it explicitly.
  • Handoffs are where these systems fail. Treat the message between agents as a typed contract, not a chat transcript.
  • Trace across agents with a shared trace ID, or you will not be able to explain any failure.

Start with one agent

A single agent with good tools and clear instructions handles a surprising range of work. Before adding agents, ask whether the failure you are seeing can be fixed with better tool descriptions, better context management, or a workflow step in front of the agent. Those fixes are cheaper and keep the system easier to reason about. Anthropic’s Building effective agents makes the same recommendation: find the simplest solution and add complexity only when it demonstrably improves outcomes.

If you have not settled on the basic patterns yet, read Workflows vs. Agents: Six Architecture Patterns That Actually Ship first. Multi-agent systems are mostly compositions of those patterns.

Four legitimate reasons to split

1. The context window is doing too much

An agent holding a long policy manual, a customer history, and the results of twenty tool calls will eventually lose track of something important, even when it all technically fits. Splitting lets each agent carry only what its job requires. A research worker reads twenty documents and returns a two-paragraph summary; the coordinator never sees the raw text.

2. The toolset is too large

Model accuracy in choosing the right tool tends to fall as the number of similar tools grows, especially when tools overlap. If an agent has dozens of tools across billing, provisioning, and analytics, grouping them under specialist agents gives each one a smaller, coherent set.

3. The work is broad and parallel

Some tasks are naturally wide: compare a dozen vendors, review every service affected by a dependency upgrade, check a contract against several regulatory regimes. Parallel workers reduce wall-clock time and keep each investigation independent.

4. Permissions should differ

This is the most underrated reason. An agent that reads untrusted customer email should not hold the credentials to issue refunds. Splitting into an intake agent with read-only tools and an action agent that only receives structured, validated requests creates a real security boundary. The OWASP Top 10 for LLM Applications highlights prompt injection and excessive agency; separating the agent that reads untrusted input from the agent that acts is one of the most effective structural defenses.

If none of these apply, a single agent is probably the better choice.

Topologies that work

Supervisor (orchestrator-workers)

One coordinating agent receives the goal, plans, delegates subtasks to specialist workers, and synthesizes results. Workers do not talk to each other.

                 +--------------+
     goal -----> |  supervisor  | -----> final answer
                 +--------------+
                   |    |    |
          task brief|    |    |task brief
                   v    v    v
              +------+ +------+ +------+
              |worker| |worker| |worker|
              |  A   | |  B   | |  C   |
              +------+ +------+ +------+
              (own tools, own context, returns structured result)

This is the default choice. Control is centralized, so tracing and debugging follow a single thread. Failure isolation is good: a worker that fails returns an error, and the supervisor decides whether to retry, reassign, or escalate.

Sequential handoff (pipeline)

Agent A completes its stage and hands a structured artifact to agent B, which hands to C. Think intake, then investigation, then resolution. This is prompt chaining where each stage is itself an agent.

It works well when stages are distinct and the boundaries are stable. It fails when a later stage discovers that an earlier stage got something wrong and there is no path back. Build in an explicit “return to previous stage” option.

Hierarchical

Supervisors manage sub-supervisors that manage workers. Occasionally necessary for very large tasks, but every layer adds latency, cost, and a place for instructions to get lost. A third layer needs strong justification.

Peer-to-peer and debate

Agents communicate freely, or argue toward a consensus. These designs show up often in research and demos. In production they are hard to bound, hard to trace, and prone to loops where agents keep deferring to each other. If you want a second opinion, an evaluator-optimizer loop with a clear rubric usually gets the benefit at a fraction of the complexity.

Topology Control Debuggability Cost profile Good fit
Supervisor Centralized High Moderate; parallel workers add tokens Most production systems
Sequential handoff Distributed, linear High Predictable Stable multi-stage processes
Hierarchical Layered Medium High Very large decomposable tasks
Peer-to-peer / debate Emergent Low Hard to bound Research, rarely production

Designing the handoff

The message one agent sends another is the most important interface in a multi-agent system. When workers receive vague instructions, they duplicate work, misread scope, or return results the supervisor cannot use. A short instruction like “research the competitor’s pricing” invites a worker to guess at what matters.

Treat each delegation as a typed task brief: objective, scope, constraints, expected output format, and budget. Here is a TypeScript sketch using Zod for validation:

import { z } from "zod";

export const TaskBrief = z.object({
  taskId: z.string(),
  traceId: z.string(),                 // shared across every agent in the run
  objective: z.string().min(20),        // what done looks like, in one or two sentences
  scope: z.object({
    include: z.array(z.string()),
    exclude: z.array(z.string()),       // prevents overlap with sibling workers
  }),
  context: z.string().max(4000),        // only what this worker needs, not the full history
  outputSchema: z.enum(["findings_v1", "patch_v1", "decision_v1"]),
  budget: z.object({
    maxSteps: z.number().int().positive(),
    maxTokens: z.number().int().positive(),
  }),
});
export type TaskBrief = z.infer<typeof TaskBrief>;

export const Findings = z.object({
  taskId: z.string(),
  status: z.enum(["complete", "partial", "failed"]),
  summary: z.string().max(1500),
  evidence: z.array(z.object({ source: z.string(), excerpt: z.string() })),
  openQuestions: z.array(z.string()),
});
export type Findings = z.infer<typeof Findings>;

export async function delegate(
  brief: TaskBrief,
  worker: (b: TaskBrief) => Promise<unknown>,
): Promise<Findings> {
  const validBrief = TaskBrief.parse(brief);
  const raw = await worker(validBrief);
  const parsed = Findings.safeParse(raw);
  if (!parsed.success) {
    return {
      taskId: validBrief.taskId,
      status: "failed",
      summary: `Worker returned malformed output: ${parsed.error.message}`,
      evidence: [],
      openQuestions: [],
    };
  }
  return parsed.data;
}

A few details carry most of the value:

  • exclude in scope. Explicitly telling a worker what its siblings are covering prevents duplicated effort.
  • Bounded context. Pass a curated summary, not the supervisor’s entire conversation. This is the whole point of splitting.
  • A required evidence field. The supervisor can check that claims are grounded before synthesizing them.
  • partial status. Workers that run out of budget should return what they have, not fail silently or pretend to be done.

The broader discipline of deciding what goes into each agent’s context window is covered in Context Engineering: The Discipline Behind Reliable Agents.

The costs nobody puts on the slide

Token multiplication

Every agent has its own system prompt, tool definitions, and reasoning. A supervisor with four workers can consume several times the tokens of a single agent on the same task, and the supervisor still waits for the slowest worker before synthesizing. That is worth it for valuable tasks where parallelism saves time, and rarely for routine, high-volume work. Measure cost and latency per completed task, not per call.

Coordination failures

New failure modes appear that do not exist with a single agent:

  1. Two workers produce contradictory findings and the supervisor picks one without noticing the conflict.
  2. A worker misreads its scope and solves a different problem very well.
  3. The supervisor re-delegates the same subtask repeatedly because it cannot tell the first attempt succeeded.
  4. An error in an early stage propagates, and each downstream agent builds on it with growing confidence.

Each needs a specific mitigation: conflict detection in synthesis, explicit scope in briefs, idempotent task IDs, and validation gates between stages.

Debugging

When a multi-agent run produces a bad answer, you need to know which agent introduced the error. That requires a single trace that spans every agent, with each model call and tool call as a child span. The OpenTelemetry GenAI semantic conventions define attributes for model and agent operations, so traces from different components land in one coherent view.

Agents across boundaries

Sometimes a worker belongs to someone else: a vendor’s agent, a partner’s agent, or one owned by another team on a different stack. Two open protocols address different halves of this problem. The Model Context Protocol standardizes how an agent connects to tools and data sources. The Agent2Agent (A2A) protocol standardizes how agents discover each other’s capabilities and exchange tasks, regardless of framework or vendor. In a supervisor design, MCP typically sits between workers and their tools, while A2A can sit between a supervisor and a remote worker you do not control. We go deeper in Agent-to-Agent (A2A) Protocol: How Agents Talk Across Vendors.

Crossing an organizational boundary raises the bar on everything in this post. Treat a remote agent’s output as untrusted input, validate it against a schema, and never pass it credentials it does not need.

A pre-build checklist

Before committing to a multi-agent design, confirm each of these:

  1. You have a single-agent baseline and an eval set showing where it falls short.
  2. You can name the specific reason for splitting: context, tools, breadth, or permissions.
  3. Each agent has a one-sentence job description and a distinct toolset.
  4. Handoffs use typed schemas with validation on both sides.
  5. Every run has a shared trace ID and per-agent cost attribution.
  6. There are budgets per agent and for the run as a whole.
  7. Conflicting worker results are detected, not silently resolved.
  8. There is a clear escalation path to a human that includes the work done so far.

If you cannot check the first two, stay with one agent for now.

FAQ

How many agents should a multi-agent system have?

As few as the problem allows. Most production systems we see work well with a supervisor and two to five specialist workers. Each additional agent should correspond to a distinct job with its own tools or permissions; if two agents share most of their tools and instructions, merge them.

Should every agent use the same model?

Not necessarily. Supervisors that plan and synthesize benefit from the most capable model you can afford, while narrow workers doing extraction or summarization often perform well on smaller, faster models. Make the model configurable per agent and let your evals decide.

Is a multi-agent system more reliable than a single agent?

It can be, for tasks that overwhelm a single agent’s context or toolset. For tasks that fit comfortably in one agent, adding more agents usually lowers reliability because handoffs introduce new failure points. Compare both designs on the same eval set before deciding.

How do agents share memory in a multi-agent system?

Prefer explicit handoffs over shared mutable memory. When agents do need shared state, such as a running list of findings, keep it in a structured store that the supervisor owns and workers read from or append to through tools. Our post on designing memory for AI agents covers the options.

Working with TechnoKeen

TechnoKeen designs and operates single-agent and multi-agent systems, and we will tell you plainly when one agent is enough. To pressure-test an architecture you are considering, contact our engineering team or browse our engineering resources.

  • #multi-agent systems
  • #agent orchestration
  • #agent architecture

TechnoKeen Engineering

TechnoKeen is an enterprise agentic AI company. Our engineers design, deploy, and govern AI agents for organizations in regulated and complex industries, and share what we learn in the field.

About TechnoKeen →

Keep reading

Ready to put agents to work?

Book a 45-minute executive briefing. We will review your priority workflows, current AI efforts, and risk posture, then outline a clear path to agents in production.