Build a Multi-Agent System (from Scratch)

you own this product
With MCP and A2A
  • MEAP began October 2025
  • Last updated October 2025
  • Publication in Summer 2026 (estimated)
  • ISBN 9781633434660
  • 325 pages (estimated)
  • printed in black & white

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside
Build AI agent systems that coordinate, delegate, and get real work done.

Agents turn LLMs into autonomous tools capable of executing on tasks and plans. Multi-agent systems use protocols like MCP and A2A to upgrade the power of a single AI agent with both a collaborative AI team. In Build A Multi-Agent System (From Scratch) you’ll learn how to construct one of these dynamic, powerful, and effective systems from the ground up.

In Build a Multi-Agent System (From Scratch) you will learn how to:

  • Build a complete LLM agent infrastructure from scratch, including interfaces, tools, data structures, and processing loops
  • Orchestrate tool calling with LLMs and connect agents to the Model Context Protocol (MCP) ecosystem
  • Implement human-in-the-loop patterns and add memory modules to share state across tasks
  • Evaluate agent and multi-agent performance on real tasks
  • Add Agent2Agent compatibility so multiple agents can collaborate and solve distributed problems

Effectively implementing a multi-agent system requires in-depth infrastructure—and that’s exactly what you’ll build in Build A Multi-Agent System (From Scratch)! Instead of relying on frameworks, you’ll design the foundations yourself: the agent loop, tool orchestration, memory, and human-in-the-loop enhancements. Soon, you’ll have an in-depth understanding of how multi-agent systems work because you’ve built your very own!

about the book

Build a Multi-Agent System (From Scratch) shows you how to build a complete, working system of agents. Each chapter builds a new stage of your system. Begin by developing your first scratch-built agent, continue to integrate MCP compatibility, incorporate key patterns and designs like human-in-the-loop and memory, and finally implement full Agent2Agent capability that distributes a task among multiple agents. Every milestone comes with a careful walkthrough of the design decisions and code. By the end of the book, you will have a practical, extensible multi-agent system—and the skills to adapt it for research, business automation, or your own experiments.

about the reader

For software engineers and AI scientists who know Python, and are familiar with working with LLMs. No specialist hardware required—everything in this book should run on a laptop.

about the author

Val Andrei Fajardo is a freelance AI engineer and scientist specializing in LLM agents and AI infrastructure. He is a former founding engineer at LlamaIndex, where he contributed to and maintained their popular open-source Python framework that receives millions of downloads per month. After LlamaIndex, he worked as a researcher at the Vector Institute for AI, where he developed FedRAG, an open-source library for federated fine-tuning of RAG systems, which was accepted into the CODEML workshop at ICML 2025. Andrei holds a PhD in Statistics and Applied Probability from the University of Waterloo.
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Build a Multi-Agent System (from Scratch) ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Build a Multi-Agent System (from Scratch) ebook for free