Skip to main content

06. Multi-Agent Systems

Single Agent vs Multi-Agent Architecture

Architecture choice is about control planes: one policy loop that owns state and tools, or multiple role loops coordinated by an orchestration plane with contracts. Default single-agent; split only when isolation, review, or parallel specialties clearly pay for the complexity.

What you will learn

  • Contrast single vs multi-agent architecture clearly
  • Sketch both stacks (control, tools, observability)
  • Choose based on isolation, quality, and cost constraints
  • Name failure domains and stop rules for each
  • Answer interview questions with short, solid answers
Single-agent one control plane versus multi-agent coordinated control planes
Interview staple: architecture = how many control planes and how they coordinate.

Definition

Single-agent architecture places one primary control loop (policy + memory + stop rules) in charge of the task. Tools and environment services hang off that loop; there is one decision owner and usually one end-to-end trace.

Multi-agent architecture runs two or more control loops (role agents) plus an orchestration plane (graph, supervisor, or protocol) that schedules turns, enforces contracts, and merges results. Related Module 02 lesson compares systems conceptually; this lesson focuses on architectural stacks and decision criteria.

Introduction

This lesson (#2 in Multi-Agent Systems) follows What is a Multi-Agent System?. You know the MAS definition; now choose a topology for a product.

Next: Agent Communication, Collaboration and Coordination β€” how multi-agent architectures talk.

Why architecture choice matters

  • Sets cost, latency, and blast radius of failures
  • Determines how you debug (one trace vs correlated IDs)
  • Locks permission model (one allowlist vs per-role)
  • Interviewers want a reasoned default, not β€œalways multi”

Single-agent architecture

Keep the control loop thin: decide, call tools, update state, stop. Push complexity into tools and schemas, not into fake peer agents.

User API to one control loop to tools environment and observability
One owner of state and stop budget β€” simplest ops story.
  • Control - one LLM/policy loop + memory
  • Actuators - shared tool catalog under one allowlist
  • State - single task state object / checkpoint
  • Obs - one trace id from request to answer
  • Best for - MVPs, support bots, single-repo coding agents

Multi-agent architecture

Add an orchestration plane first: who runs next, what schema is handed off, what budget remains. Role agents should not freestyle chat forever.

Orchestration plane to role agents to shared contracts and tools
Orchestration + roles + shared contracts β€” the minimum multi-agent stack.
  • Orchestration - scheduler/graph/supervisor + budgets
  • Roles - separate policies and tool allowlists
  • Contracts - typed messages / artifacts between roles
  • Shared plane - artifact store, bus, env APIs
  • Obs - task_id + agent_id on every hop

Decision criteria

  • Stay single if one domain and one tool belt suffice
  • Go multi when permissions must hard-split (e.g. refunds vs search)
  • Go multi when a separate critic/reviewer measurably lifts quality
  • Go multi when independent specialties should run in parallel
  • Do not go multi just to mirror org chart names in prompts

Failure domains and stop rules

  • Single - loop thrash / tool spam; cap tool rounds and tokens
  • Multi - chat storms between agents; cap crew turns and hops
  • Multi - merge conflicts; require judge/vote/approver schema
  • Both - env races; lock or serialize conflicting writes
  • Both - escalate to human when budgets exhaust

Migration path

  • Ship single-agent with strong tools and evals first
  • Extract a critic or specialist when metrics plateau
  • Introduce orchestration + contracts before adding a third role
  • Measure quality/cost/latency after each split

Program / implementation notes

Draw the architecture with control planes and data contracts before choosing CrewAI, AutoGen, LangGraph, or ADK. Frameworks implement the diagram β€” they do not invent it.

  • Related: Module 02 Single-Agent vs Multi-Agent Systems; Module 05 design patterns
  • Next: Agent Communication, Collaboration and Coordination

Advantages and limitations

  • Single advantage: simpler debug, lower cost, faster ship
  • Single limitation: role confusion and weak hard isolation
  • Multi advantage: specialization, parallel work, review gates
  • Multi limitation: higher cost, harder ops, protocol debt
  • Shared limitation: bad tool catalogs hurt both architectures

Key points

  • Architecture = number of control planes and how they coordinate.
  • Single-agent: one loop owns state, tools, stop, and one trace.
  • Multi-agent: orchestration plane + role agents + contracts.
  • Default single; split for isolation, review quality, or parallel specialties.
  • Cap tool rounds (single) and crew hops (multi).
  • Frameworks follow your diagram β€” draw contracts first.

FAQs

Is this the same as the Module 02 single vs multi lesson?

Related. Module 02 introduces the systems idea. This Module 06 lesson focuses on architectural stacks, failure domains, and product decision criteria.

Can a multi-agent system run in one process?

Yes. Architecture is about roles and control planes, not required process count. Separate processes help isolation and scale.

When is a router still single-agent?

If one loop classifies and then continues with different tools/prompts without separate agent identities, treat it as single-agent with routing β€” not a full MAS.

What is the first thing to add when splitting?

An orchestration plane with typed handoffs and stop budgets β€” before spawning many chatty peers.

Interview questions

  1. How do single-agent and multi-agent architectures differ?

    Answer Single uses one control loop that owns state and tools. Multi uses multiple role loops plus an orchestration plane with contracts.

  2. What belongs in a single-agent architecture stack?

    Answer A control loop (policy/memory/stop), a tool allowlist, environment APIs, and one end-to-end observability trace.

  3. What is the minimum multi-agent stack?

    Answer Orchestration (scheduler/budgets), role agents with allowlists, typed contracts/artifacts, and correlated tracing.

  4. When do you prefer multi-agent architecture?

    Answer When hard permission splits, separate review roles, or parallel specialties improve outcomes enough to justify cost and complexity.

  5. Name a multi-agent architectural failure mode.

    Answer Unbounded inter-agent chat without hop caps or merge rules β€” fix with turn limits and a designated approver.

  6. How should teams migrate from single to multi?

    Answer Prove a single-agent baseline, extract one specialist/critic when metrics stall, add contracts and budgets, then measure again.

Related topics

Practice task

Complete each numbered practice step in a notebook or doc before opening the next lesson.

  1. Sketch a single-agent architecture for an IT helpdesk bot (boxes: control, tools, env, obs).
  2. Sketch a multi-agent alternative with orchestration + 3 roles; list each allowlist.
  3. Write 3 decision criteria that would force you to choose multi over single for this product.
  4. Define stop rules for both sketches (tool rounds vs crew hops).
  5. Answer interview questions 1, 3, and 4 in two sentences each.