One AI Doing Everything: The Problem
The article opens with a wedding-planning analogy: one person juggling venue selection, catering, invitations, seating, photographers, and logistics becomes overwhelmed — not because of ability, but because of architecture. Likewise, when a complex task is handed to a single AI, it must simultaneously play the planner (task decomposition), executor, reviewer, and summarizer. The more roles, the more it drops the ball.
Multi-Agent's answer: instead of exhausting one worker, build a small team where everyone manages their own part.
What Is Multi-Agent?
Multi-Agent splits a large task into subtasks assigned to specialized AI agents that collaborate and pass results to each other. The analogy is a small consulting firm:
- Project manager — decomposes tasks, assigns work, tracks progress
- Researcher — gathers information and organizes data
- Analyst — processes information and draws conclusions
- Writer — turns conclusions into reports
- Reviewer — checks errors and guards quality
- Pipeline: output of one agent becomes input of the next (topic → outline → writing → editing → publishing).
- Committee (Board): agents analyze from different angles (UX, technical feasibility, business value); a chair agent synthesizes the final decision.
- Master-Worker: a supervisor agent decomposes and assigns tasks; worker agents return results for aggregation. The most common pattern.
- Mesh: agents communicate freely without hierarchy — most flexible, but requires careful communication protocols and coordination.
- Sub-Agent: "multiple thoughts in one brain" — the main AI dispatches a sub-agent, but everything stays under one command structure and shared context.
- Multi-Agent: "a team of independent people" — each agent has its own role, goals, and context, cooperating as peers via message passing.
- Who coordinates? A dedicated Orchestrator agent handles scheduling, or decentralized mechanisms like a "market" where agents post bounties and idle agents pick up tasks.
- How do agents communicate? Direct messaging (A sends results to B), blackboard (shared space anyone reads/writes), or message queues with subscriptions.
- Conflict resolution? Predefined rules (e.g., data agent's output outranks reasoning agent's) or a dedicated arbiter agent.
- The task needs multi-domain expertise (e.g., medical AI spanning medicine, pharmacology, and law)
- The workflow is complex with many stages (full software lifecycle from requirements to testing)
- Quality demands multi-round review (legal drafting, financial reports)
- Massive parallel processing is needed (monitoring multiple data sources, analyzing multiple markets)
Each agent has its own role, expertise, and context window, communicating through a defined mechanism.
Why Can't One AI Do It All?
1. Context pollution — research results, code, and review notes all compete for the same context window; web content crowds out coding, technical details disrupt global perspective. 2. Cost of role switching — an AI that just wrote code struggles to immediately review that same code objectively ("attention residue"). 3. Single point of failure — if the one AI errs, the whole task fails; in a team, one agent's errors can be caught by others. 4. Parallel efficiency — multiple agents work simultaneously; a single AI must work serially.
Common Collaboration Patterns
Multi-Agent vs. Sub-Agent
Rule of thumb: shared context window and a single commanding brain = Sub-Agent; independent contexts and goals with message-based collaboration = Multi-Agent.
Coordination: Who Decides?
The hardest part is not each agent's work, but collaboration:
When Should You Use Multi-Agent?
Single agents suffice for emails, translations, and simple questions. Multi-Agent is worth considering when:
Takeaway
The core insight: complex problems need division of labor, and division of labor needs collaboration. No matter how strong a single AI is, it faces the bottleneck of "one mind thinking one thing at a time." Splitting tasks among specialized agents and stitching results together via well-designed collaboration is not laziness — it is smart organization.
---
*This article is based on the "Multi-Agent" module added in commit 9621a05 of the easy-learn-ai project.*