AI Engineer Professional

Book Profile

Build a Multi-Agent System (From Scratch)

Manning (MEAP) · 2025

A hands-on guide to building LLM agents and multi-agent systems from scratch by developing your own educational framework with support for tools, MCP, Skills, memory, human-in-the-loop, and the A2A protocol.

Get the book →

Multi-agent systems are among the most discussed and worked-on topics in AI today, but most engineers reach for frameworks like CrewAI or LangGraph without understanding what happens under the hood. This book takes you under the hood by having you build your own LLM agent framework—called llm-agents-from-scratch—from the ground up. Starting with the core insight that LLMs can only express intent but cannot act, you'll build the orchestration infrastructure that turns intentions into actions: interfaces for tools and LLMs, a processing loop, memory systems, and support for the core protocols MCP, Agent Skills, and A2A. Assuming basic familiarity with LLMs and Python, you'll code along chapter by chapter, gaining the deep understanding needed to work confidently with any existing framework or to build specialized solutions of your own. By the end, you'll be able to assemble focused agents into collaborating multi-agent systems and know exactly why and how each component works.

What it argues

A framework model expressing how design levers (backbone LLM capabilities, equipped tools, protocol integrations, processing loop design, and multi-agent composition) drive psychological/behavioral states of the agent system (planning quality, tool-use behavior, reusable-workflow adherence) that in turn produce task performance outcomes such as accuracy, efficiency, and versatility.

Key ideas it contributes

Featured in these guides