{"id":2482,"date":"2026-07-28T16:42:54","date_gmt":"2026-07-28T11:12:54","guid":{"rendered":"https:\/\/sharanamshah.com\/mymusings\/?page_id=2482"},"modified":"2026-08-12T11:32:32","modified_gmt":"2026-08-12T06:02:32","slug":"engineering-multi-agent-systems-for-professionals","status":"publish","type":"page","link":"https:\/\/sharanamshah.com\/mymusings\/home\/books-ive-authored\/engineering-multi-agent-systems-for-professionals\/","title":{"rendered":"Engineering Multi-Agent Systems for Professionals"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">From PM to Reviewer: Headless Agent Orchestration with Python, MCP AND A2A<\/h4>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"1024\" data-id=\"2484\" src=\"https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2acover-796x1024.png\" alt=\"\" class=\"wp-image-2484\" srcset=\"https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2acover-796x1024.png 796w, https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2acover-233x300.png 233w, https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2acover-768x988.png 768w, https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2acover.png 1024w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"1024\" data-id=\"2483\" src=\"https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2abackcover-796x1024.png\" alt=\"\" class=\"wp-image-2483\" srcset=\"https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2abackcover-796x1024.png 796w, https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2abackcover-233x300.png 233w, https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2abackcover-768x988.png 768w, https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/07\/a2abackcover.png 1024w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/figure>\n<\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>YOUR AI CAN ALREADY WRITE CODE.<br>THIS BOOK TEACHES IT TO WORK LIKE A TEAM.<\/strong><\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">The Problem You Already Know<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Your AI assistant wrote the feature. It also ran the tests. It also decided the tests passed. It also, technically, reviewed its own pull request, approved it, and told you it was done.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You merged it. Three days later, in production, you found the bug \u2014 and when you went looking for who should have caught it, the honest answer was <strong>nobody<\/strong>. The same model that wrote the code was the only model that ever looked at it. It graded its own homework, and gave itself an A.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s not a hypothetical. It&#8217;s the default failure mode of almost every AI coding tool built today: one model wearing every hat at once \u2014 planner, coder, tester, and reviewer \u2014 with nobody in the loop whose job it is to disagree with it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This book exists to fix exactly that.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What You&#8217;ll Actually Build: CodeForge Pod<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You&#8217;re not going to read about multi-agent systems. You&#8217;re going to build one \u2014 a real, headless, four-persona development team you run from your own terminal:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Product Manager<\/strong> \u2014 turns your loose request into a strict written spec<\/li>\n\n\n\n<li><strong>Developer<\/strong> \u2014 connects through a real MCP server to touch your files and write the code<\/li>\n\n\n\n<li><strong>QA Tester<\/strong> \u2014 connects through a second MCP server to actually <em>run<\/em> it, not guess whether it works<\/li>\n\n\n\n<li><strong>Reviewer<\/strong> \u2014 reads the record left behind and renders a plain verdict: PASS or FAIL, sending failed work back with exact feedback<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Every handoff is safe by construction, not by promise: a workspace boundary that blocks operations outside an approved folder, a dry-run mode, git-style diff previews before any write, and a full SQLite ledger of every run you can replay later.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then you go further than almost any other technical book takes it: you <strong>expose CodeForge Pod over A2A<\/strong> \u2014 publishing a real, signed Agent Card and accepting a live task from an independent agent, built by someone else, over the open network.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Why MCP and A2A, Right Now<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>MCP (Model Context Protocol)<\/strong> is Anthropic&#8217;s open-source answer to the &#8220;N \u00d7 M integration&#8221; problem \u2014 one standard way for any model to describe and call a tool, instead of a hundred bespoke wirings. It&#8217;s now governed by a vendor-neutral foundation under the Linux Foundation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A2A (Agent2Agent)<\/strong>, built by Google and also under Linux Foundation governance, solves the second wall: letting independent agents \u2014 built by different teams, on different stacks \u2014 hand work to each other.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Together they form the two-layer stack the industry is converging on in 2026: MCP running <em>vertically<\/em>, connecting an agent to its own tools; A2A running <em>horizontally<\/em>, connecting agents to each other. This book builds a real, running instance of that stack \u2014 not a diagram of one.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What&#8217;s Inside: 22 Chapters, 4 Sections, One Continuous Build<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Section I \u2014 Foundations, Concepts, and Theory<\/strong> <em>(Ch. 1\u20135)<\/em> Understand what makes something an agent instead of a chatbot, exactly what MCP and A2A each solve, why four personas beat one god-agent \u2014 and write a real, signed-off Product Requirements Document for CodeForge Pod.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Section II \u2014 Build the Single-Agent Core<\/strong> <em>(Ch. 6\u201313)<\/em> Scaffold a real, installable CLI tool. Connect it to your first live MCP server. Give it a swappable AI brain across Gemini, OpenAI, and Ollama. Add real command execution with real safety rails, and give the system permanent memory in SQLite.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Section III \u2014 Multi-Agent Orchestration and A2A Interoperability<\/strong> <em>(Ch. 14\u201319)<\/em> The heart of the book. One agent becomes four disciplined specialists wired together by a self-correcting orchestration loop. Expose it over A2A. Build a live terminal dashboard, a true background daemon, and an optional read-only web view.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Section IV \u2014 Deployment, Distribution, and What&#8217;s Next<\/strong> <em>(Ch. 20\u201322)<\/em> Package CodeForge Pod as a real, installable release. Point it at your own Git repository. Prove real A2A interoperability against an independent reference agent. Compare MCP and A2A transport internals, understand the token economics of running four agents instead of one, and leave with your own roadmap.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">What You&#8217;ll Walk Away Knowing<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Skill<\/th><th>What It Means in Practice<\/th><\/tr><\/thead><tbody><tr><td><strong>Multi-agent architecture<\/strong><\/td><td>Splitting one overloaded job into narrow, single-responsibility personas with a fixed handoff order<\/td><\/tr><tr><td><strong>MCP client engineering<\/strong><\/td><td>Launching, connecting to, and safely bounding a real MCP server from your own Python client<\/td><\/tr><tr><td><strong>A2A interoperability<\/strong><\/td><td>Publishing an Agent Card and exchanging real tasks with an agent you didn&#8217;t build<\/td><\/tr><tr><td><strong>Headless orchestration<\/strong><\/td><td>A state machine that runs unattended, retries intelligently, and reports honestly<\/td><\/tr><tr><td><strong>Provider-agnostic intelligence<\/strong><\/td><td>Swapping Gemini, OpenAI, or a fully offline Ollama model with one config line<\/td><\/tr><tr><td><strong>Safety-by-construction<\/strong><\/td><td>Workspace jailing, dry-run previews, and diff approval before any real write happens<\/td><\/tr><tr><td><strong>Production packaging<\/strong><\/td><td>Shipping a real, pipx-installable CLI tool that runs on a machine that owes you nothing<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Who This Book Is For<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Software engineers and technical leads<\/strong> who already know Python and want a rigorous, production-grade education in multi-agent design \u2014 not another prompt-engineering listicle<\/li>\n\n\n\n<li><strong>Architects and engineering managers<\/strong> evaluating whether MCP and A2A belong on their team&#8217;s roadmap, who want to have built something real first<\/li>\n\n\n\n<li><strong>Anyone<\/strong> who has used an AI coding assistant, loved what it could do, and quietly worried about the parts where it graded its own homework<\/li>\n\n\n\n<li><strong>Engineers<\/strong> who want to be genuinely ready for where agentic systems are headed over the next two years<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You don&#8217;t need prior MCP or A2A experience. You need working Python, a willingness to open a terminal, and the patience to build something real.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Your Toolkit<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Python 3.14 &amp; asyncio \u00b7 Typer \u00b7 MCP \u00b7 A2A \u00b7 Gemini, OpenAI &amp; Ollama \u00b7 SQLite \u00b7 Textual &amp; FastAPI \u00b7 Docker<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">From the Authors<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ve been building and writing about enterprise software together for over two decades, from our home base in Mumbai \u2014 more than 45 technical books across Python, distributed systems, and applied AI between us.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;ve sat exactly where you&#8217;re about to sit: watching an agent confidently overwrite a file it should never have touched, chasing a silent failure through four layers of async code at midnight. This book is written the way we wish that explanation had existed for us \u2014 precise theory where theory earns its place, exact commands everywhere else, and a real, working system at the end of it.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Get the Complete Codebase<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every persona, every MCP server integration, every line of the orchestrator, the A2A server and client, and the Textual dashboard is included \u2014 ready to download, run, break, and rebuild in your own words.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Engineering Multi-Agent Systems for Professionals | Build Real AI Agent Teams with MCP &amp; A2A\" width=\"750\" height=\"422\" src=\"https:\/\/www.youtube.com\/embed\/kt7AHsVG-dw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-7387b849 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-thumbnail ticss-4bbf5ca5\"><a href=\"https:\/\/www.shroffpublishers.com\/index.php?dispatch=attachments.getfile&amp;attachment_id=4108\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/01\/TOC-150x150.jpg\" alt=\"\" class=\"wp-image-1600\" srcset=\"https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/01\/TOC-150x150.jpg 150w, https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/01\/TOC-300x300.jpg 300w, https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/01\/TOC.jpg 360w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-thumbnail ticss-dc129f0f\"><a href=\"https:\/\/www.shroffpublishers.com\/books\/9789368081234\/\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/sharanamshah.com\/mymusings\/wp-content\/uploads\/2026\/01\/cart-150x150.png\" alt=\"\" class=\"wp-image-1625\" style=\"object-fit:cover\"\/><\/a><\/figure>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>From PM to Reviewer: Headless Agent Orchestration with Python, MCP AND A2A YOUR AI CAN ALREADY WRITE CODE.THIS BOOK TEACHES IT TO WORK LIKE A TEAM. The Problem You Already Know Your AI assistant wrote the feature. It also ran the tests. It also decided the tests passed. It also, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":68,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-2482","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sharanamshah.com\/mymusings\/wp-json\/wp\/v2\/pages\/2482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sharanamshah.com\/mymusings\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sharanamshah.com\/mymusings\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sharanamshah.com\/mymusings\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sharanamshah.com\/mymusings\/wp-json\/wp\/v2\/comments?post=2482"}],"version-history":[{"count":5,"href":"https:\/\/sharanamshah.com\/mymusings\/wp-json\/wp\/v2\/pages\/2482\/revisions"}],"predecessor-version":[{"id":2527,"href":"https:\/\/sharanamshah.com\/mymusings\/wp-json\/wp\/v2\/pages\/2482\/revisions\/2527"}],"up":[{"embeddable":true,"href":"https:\/\/sharanamshah.com\/mymusings\/wp-json\/wp\/v2\/pages\/68"}],"wp:attachment":[{"href":"https:\/\/sharanamshah.com\/mymusings\/wp-json\/wp\/v2\/media?parent=2482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}