Multi-Agent Systems: Collaboration and Coordination
Explains multi-agent systems: splitting a large goal across specialised agents, common coordination patterns, how agents communicate, real frameworks, and the multiplying costs of coordination.
{"contentFormat":"slides.v1","completion":{"requireAllSlides":true,"requireQuiz":true},"slides":[{"kind":"title","eyebrow":"Module 7: Agentic AI and Autonomous Systems","title":"Multi-Agent Systems: Collaboration and Coordination","body":"Learn how multiple AI agents can work together to solve complex tasks, the coordination patterns that make them effective, and the real costs of adding more agents. By the end of this lesson, you'll be able to design a multi-agent system and decide when it's worth the complexity.","outcomes":["Explain why multi-agent systems are used","Identify common coordination patterns","Describe how agents communicate","Recognize real-world frameworks (CrewAI, AutoGen, LangGraph)","Calculate the cost implications of multi-agent setups","Design a simple two-agent system"],"narration":"Welcome to this lesson on multi-agent systems. We'll explore how teams of AI agents collaborate, the patterns that guide them, and the practical trade-offs you need to consider. Let's get started."},{"kind":"content","heading":"Why More Than One Agent?","body":"A single agent with many tools and a broad goal often gets confused—it picks the wrong tool, loses track of subtasks, or drifts off course. Splitting the work across specialized agents helps in three key ways:\n\n- Specialisation: Each agent has a narrow role (e.g., researcher, writer, reviewer), a smaller tool set, and clearer instructions, so it performs its part better.\n- Separation of concerns: A dedicated critic or reviewer agent catches mistakes a 'doer' agent would miss, because checking and creating are different cognitive tasks.\n- Parallelism: Independent subtasks can run simultaneously, saving wall-clock time.\n\nAnalogy: Think of a newsroom. A reporter gathers facts, an editor checks accuracy and tone, a fact-checker verifies claims, and a publisher decides what goes live. No single person plays all roles well; the structure produces quality.","callout":{"variant":"insight","title":"Key Insight","text":"Multi-agent systems are not about throwing more AI at a problem—they are about designing a team where each member has a clear, limited responsibility."},"narration":"Why use multiple agents? Specialization, separation of concerns, and parallelism. Just like a newsroom, each agent focuses on its role, leading to better outcomes."},{"kind":"content","heading":"Coordination Patterns and Communication","body":"Agents need a structure to work together. Here are the most common coordination patterns:\n\n- Orchestrator–worker (supervisor): A central orchestrator breaks the goal into tasks and delegates to workers, then assembles results. Most common and controllable.\n- Sequential pipeline: Agents work in a fixed order—Agent A's output is Agent B's input (e.g., outline → draft → edit). Simple and predictable.\n- Debate / critique: One agent proposes, another critiques, and they iterate. Useful for quality but can loop expensively.\n- Blackboard / shared memory: Agents read from and write to a shared workspace, coordinating indirectly.\n\nHow agents communicate:\n- Message passing: Structured messages (plain text or JSON) routed by the orchestrator.\n- Shared state: A common memory store all agents can read and update.\n- Roles and instructions: Each agent gets a system role (e.g., 'You are the fact-checker; verify every figure against the sources'). Clear roles are the single biggest driver of good multi-agent behaviour.","table":{"headers":["Pattern","Description","Best For"],"rows":[["Orchestrator-worker","Central agent delegates tasks","Complex, hierarchical tasks"],["Sequential pipeline","Fixed order of agents","Linear workflows like content creation"],["Debate/critique","Agents iterate with feedback","Quality assurance, fact-checking"],["Blackboard","Shared memory workspace","Collaborative problem-solving"]]},"narration":"Coordination patterns define how agents interact. Orchestrator-worker is the most common, but sequential pipelines and debate patterns also have their place. Communication happens via messages, shared state, or clear role instructions."},{"kind":"content","heading":"Real-World Frameworks (2026)","body":"Several frameworks help you build multi-agent systems. Here are the most prominent as of 2026:\n\n- CrewAI: Open-source Python framework for defining 'crews' of role-based agents with tasks and a process (sequential or hierarchical). Popular for its readable, team-metaphor design.\n- Microsoft AutoGen: Open-source framework for multi-agent conversations, where agents (and optionally humans) exchange messages to solve a task. Supports flexible orchestration patterns.\n- LangGraph: Part of the LangChain ecosystem, it models agent workflows as a graph of nodes and edges, giving explicit control over loops, branching, and human-in-the-loop steps. Good for reliability and clear control flow.\n- LangChain: Provides the underlying building blocks (tools, memory, model wrappers) that many of the above use.\n\nImportant: These tools give you structure, but they don't make multi-agent systems automatically reliable. Correctness still depends on your design.","callout":{"variant":"note","title":"Accuracy Note","text":"Frameworks evolve quickly. As of 2026, these are current, but always verify the latest versions and features for your use case."},"narration":"CrewAI, AutoGen, LangGraph, and LangChain are the leading frameworks in 2026. They provide structure, but you still need to design carefully for reliability."},{"kind":"content","heading":"The Costs of Coordination","body":"Multi-agent systems are powerful, but they come with real costs:\n\n- Cost multiplies: Each agent is a loop of model calls. Five chatty agents can cost many times a single agent.\n- Error propagation: A mistake by one agent flows downstream to others, who may build on it confidently.\n- Coordination overhead: Agents can waste turns re-explaining, disagreeing, or waiting. More agents is not always better.\n\nConcrete cost example: Suppose a single agent task costs $0.10 in API calls. A two-agent system with one round of communication might cost $0.30 (each agent runs once, plus message overhead). If they iterate three times, cost jumps to $0.90—9x the single agent. Without careful design, costs can explode.\n\nRule of thumb: Start with one agent. Add a second only when a specific role (usually a reviewer) clearly improves results. Complexity should be earned.","callout":{"variant":"warning","title":"Cost Explosion Warning","text":"A multi-agent system with 3 agents and 5 iterations each can cost 15x a single-agent run. Always set iteration limits and monitor costs."},"narration":"Costs multiply quickly in multi-agent systems. A simple two-agent system can cost 3x a single agent, and with iterations, it can explode. Start simple and add agents only when they clearly add value."},{"kind":"content","heading":"Real-World Examples","body":"Here are concrete examples of multi-agent systems in use around the world:\n\n- Content studio in Brazil: A marketing agency runs a three-agent pipeline: a researcher pulls facts on a topic, a writer drafts the article in the client's tone, and an editor checks length, accuracy, and brand rules. A human approves before publishing—the editor agent reduces, but does not remove, that need.\n\n- Software team in India: A startup uses an orchestrator–worker setup for code tasks: the orchestrator splits a feature request, a coder agent writes the function, a tester agent writes and runs tests, and results loop back until tests pass. This debate-then-verify structure catches many bugs early.\n\n- Research desk in Nigeria: A fintech analyst uses a multi-agent setup where one agent gathers regulatory documents, another summarises each, and a synthesiser combines them into a briefing—with a fact-checker agent flagging any claim not traceable to a source.\n\nSoftware development example: A coding agent writes code, then a reviewer agent checks for bugs, style issues, and security vulnerabilities. The reviewer sends feedback, and the coder revises. This two-agent debate pattern improves code quality significantly, but costs about 2-3x a single agent.","narration":"From content creation in Brazil to software development in India and research in Nigeria, multi-agent systems are being used to improve quality and efficiency. A coding agent plus a reviewer is a classic example."},{"kind":"quiz","heading":"Check Your Understanding","questions":[{"question":"Which coordination pattern involves a central agent that breaks down tasks and delegates to workers?","options":["Sequential pipeline","Orchestrator-worker","Debate/critique","Blackboard"],"questionId":"cmrf73kaz002jpd277oqe7epz"},{"question":"What is a primary risk of adding more agents to a system?","options":["Improved parallelism","Cost multiplication","Better specialisation","Simpler communication"],"questionId":"cmrf73kaz002kpd27ai7s8pts"},{"question":"Which framework models agent workflows as a graph of nodes and edges?","options":["CrewAI","AutoGen","LangGraph","LangChain"],"questionId":"cmrf73kaz002lpd27mx9z3byz"}],"narration":"Let's test your understanding with a quick quiz. Answer the questions to reinforce the key concepts.","quizId":"qz_cmk7llwqw002xg4p84pg6jq7s"},{"kind":"summary","heading":"Key Takeaways","takeaways":["Multi-agent systems use specialisation, separation of concerns, and parallelism to handle complex tasks.","Common coordination patterns include orchestrator-worker, sequential pipeline, debate/critique, and blackboard.","Agents communicate via message passing, shared state, or role instructions.","Frameworks like CrewAI, AutoGen, and LangGraph provide structure but require careful design.","Costs multiply with each agent and iteration; start simple and add agents only when they clearly add value.","Real-world examples show multi-agent systems improving content creation, software development, and research."],"narration":"In summary, multi-agent systems are powerful but come with trade-offs. Start with one agent, add roles deliberately, and always monitor costs. Thanks for watching!"}]}