Multi-Agent System
An architecture that decomposes complex goals across multiple specialized LLM agents with isolated contexts and tools, coordinating them via supervisor, pipeline, or handoff patterns
Table of Contents
Structure Diagram
What is Multi-Agent System?
An architecture that decomposes complex goals across multiple specialized LLM agents with isolated contexts and tools, coordinating them via supervisor, pipeline, or handoff patterns. It is a core concept in Agents & Protocols within AI / ML.
Core Principles
Stuffing dozens of tools, long logs, and conflicting instructions into one agent degrades focus and fills its context window. A Multi-Agent System isolates concerns across specialized agents—each with a narrow prompt, dedicated tools, and clean context.
Common topologies include Orchestrator–Worker (Supervisor), Parallel Fan-out/Gather, Handoff Routing, and Generator–Evaluator loops.
Practical Takeaways
- Earn the complexity: Multi-agent coordination multiplies token usage and latency. Start with a single well-tooled agent and split only when you need context isolation, parallel execution, or strict permission boundaries.
- Define typed handoff contracts: Passing unstructured prose between agents causes telephone-game drift; exchange structured JSON artifacts or shared state files with clear done criteria.
- Mix model tiers by role: Pair a frontier model for planning/review with fast, inexpensive models for parallel worker tasks.
Notable Examples
- Software Engineering Swarms: Parallel research workers map modules while a coder agent implements changes and a verifier agent runs tests.
- Investment Research Pipelines: Financial, news, and risk agents investigate in parallel before a synthesizer drafts the memo.
- Tiered Support Routing: A triage agent hands off sessions cleanly to billing, technical, or refund specialists.