Guide

Multi-Agent Patterns

Patterns for coordinating multiple LLM agents: supervisor, orchestrator-workers, handoff, debate, hierarchical agents, swarm, role assignment, voting-based cooperation, inter-agent communication.

A multi-agent system is two or more LLM agents that coordinate to do something neither would do alone. The patterns here describe the recurring shapes that coordination takes: a single supervisor routing work, an orchestrator parcelling tasks to workers, two agents debating to a better answer, a swarm voting on a shared output, a hierarchy of specialists handing off through a known protocol.

Multi-agent does not automatically mean better. Several patterns name the failure modes (infinite debate, hero agent, unbounded subagent spawn) so you can recognise them and walk away. The most field-tested multi-agent shapes — supervisor + orchestrator-workers, supervisor over isolated subagents — exist precisely because the failure modes are common.

Field-tested patterns to start with

  • SupervisorPlace a coordinating agent above a set of specialised agents and route work to them.
  • Orchestrator-WorkersAn orchestrator dynamically breaks a task into subtasks at runtime and delegates each to a worker LLM, then synthesises results.
  • HandoffTransfer the active conversation from one agent to another, carrying context across the switch.
  • DebateHave multiple agents argue different positions on a question and converge through structured exchange.
  • Hierarchical AgentsOrganise agents in a tree where higher-level agents decompose tasks for lower-level agents, recursively.
  • SwarmRun many peer agents that interact directly without a central supervisor, achieving emergent coordination.
  • Role AssignmentAssign each agent a named role (researcher, writer, critic, planner) with a role-specific prompt, tool palette, and acceptance criteria.
  • Voting-Based CooperationFinalise a decision across multiple agents by collecting and tallying their votes on candidate options, so the joint output reflects collective rather than single-agent judgement.
  • Inter-Agent CommunicationDefine a protocol for agents to exchange tasks, capabilities, and results across process or vendor boundaries.
  • Conversational Multi-AgentHave agents converse turn by turn until a completion criterion fires; agent roles drive the conversation forward.
  • Subagent IsolationRun subagents in isolated workspaces so their writes do not collide and parallelism is safe.
  • Agent-as-Tool EmbeddingWrap a sub-agent (with its own loop, prompt, and tool palette) behind a single function-shaped tool signature, so the parent agent calls it like any other tool and never sees the sub-agent's internal…

Recommended reading

Or open the full contents for all 421 patterns in 14 books.

Related guides

  • LLM Agent Design PatternsA GoF-formal catalog of LLM agent design patterns: ReAct, tool use, plan-and-execute, reflection, step budget, and more. Each pattern decom…
  • Agentic AI ArchitectureHow to structure agentic AI: the architectural patterns that hold an LLM-powered system together. Supervisor, orchestrator-workers, augment…
  • RAG Agent PatternsPatterns for building retrieval-augmented generation agents: naive RAG, agentic RAG, hybrid search, cross-encoder reranking, contextual ret…
  • AI Agent Safety PatternsSafety patterns for LLM agents: step budget, kill switch, constitutional charter, approval queue, sandbox isolation, input/output guardrail…

About this catalog

The Agent Patterns Catalog is an open, GoF-formal reference of 421 design patterns for building LLM agents. Each pattern is decomposed in the manner of Christopher Alexander (1977) and the Gang of Four (1994). Source of truth at github.com/agentpatternscatalog/patterns — CC BY 4.0.

Open the contents