The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...

Learn the physics, then face the failures. The Agentic AI Book explains how language models, agents, and multi-agent systems work. Agentic AI System Design drops you into 18 production failures, including bleeding budgets, broken parsers, and runaway agents, and asks what you would do. Together they take you from understanding how agents work to knowing what to do when they don't.
Bought separately
$64.99
Minimum price
$34.00
$60.00
About the Bundle
From First Principles to Production Reality
Anyone can spin up an agent demo in an afternoon. Very few engineers know why it breaks in production, or how to fix it when latency spikes, retrieval degrades, or an autonomous workflow triples the API bill overnight. This bundle covers both halves.
Book 1: The Agentic AI Book (The Principles). Leave "prompt-and-pray" behind. In 216 pages and 105 original figures, it walks you from transformers and RAG to agent architecture, multi-agent coordination, and production guardrails. It explains why things work, not just how to call an API.
Book 2: Agentic AI System Design (The Pressure). Put those principles to the test across 18 realistic production failures: a parser breaking on one ticket in twenty, a RAG system whose accuracy collapses at scale, fraud agents freezing accounts over a maintenance window. You diagnose before you design, see why the tempting fixes fall short, and work through the redesign with its napkin math, its cost, and where even that design breaks.
Whether you're shipping agents to production or preparing for an AI system design interview, this bundle takes you from understanding how agents work to knowing what to do when they don't.
Agentic AI System Design is in early access. You'll receive each new scenario as it's finished, with all 18 expected by February 2027.
About the Books
⭐ Bestseller in Deep Learning and Generative AI ⭐
The barrier to building autonomous AI systems has completely collapsed, but the chasm in true engineering understanding has never been deeper.
The Agentic AI Book is the definitive engineering guide for practitioners who want to move past fragile "prompt-and-pray" scripts, understand exactly why agents work and fail, and architect autonomous systems that hold up under real-world production conditions. This book takes you from language model foundations to production-ready multi-agent systems, with enough depth to predict failure modes before they surface, design systems that degrade gracefully rather than catastrophically, and diagnose exactly what broke and why when they do.
📖 Inside the Book
Each section builds from first principles to complex orchestration, covering not just what these systems do, but how they work architecturally.
- Build intuition that decodes any model — past, present, or future. Trace the complete problem-solving arc from bag-of-words to self-attention, understanding why each breakthrough was necessary and what failure it fixed. Master the Three-Layer Framework as a universal evaluation lens, and understand scaling laws deeply enough to explain why a properly overtrained smaller model can outperform a frontier giant.
- Diagnose the failures that surface-level AI education never names. Move past "the model hallucinated" to isolate specific, actionable failure modes: the Reversal Curse, Flat Latency, and Underspecification in language systems; the Modality Gap and Perception-Reasoning Dissociation in multimodal ones. Coverage extends to the full VLM stack.
- Adapt models when prompting reaches its limits. Master RAG architectures, the RAG Triad, LoRA and QLoRA, and the alignment frontier — including DPO and GRPO, powering today's leading reasoning models.
- Defeat context rot and design bulletproof tools. Navigate the Six Levels of Agentic Autonomy, apply Poka-Yoke principles to the Agent-Computer Interface, and build three-tier memory systems with Just-In-Time context loading and attention budget management.
- Orchestrate multi-agent systems without paying the complexity tax. Use DAG-based task graphs and the Agent-to-Agent Interface, know when not to scale, and prevent deadlocks and runaway costs with conflict-resolution protocols and semantic compression.
- Take absolute engineering ownership of production deployment. Replace hope with reliability engineering. Implement evaluation frameworks, build observability stacks, enforce guardrail architectures, debug agentic race conditions, and deploy with quantization and speculative sampling. Design kill switch protocols before you need them.
👤 Who This Book Is For
This book is for serious practitioners who aren't strangers to code or machine learning fundamentals. If you occupy an ML-adjacent role — software engineer, data scientist, or technical leader — or you already have a foundational understanding of machine learning and want to bridge the gap to mastering LLMs and autonomous agents, this book was written for you. Not to impress you. To equip you.
💡 Why This Book
Most material on Generative and Agentic AI falls into one of three traps: surface-level infotainment engineered for quick consumption, technically fragmented and disconnected from first principles, or written for readers who already hold a PhD. This book is none of those things. It is a rigorous, framework-agnostic Design-to-Deployment lifecycle built by an author who has spent two decades watching production systems fail in ways that demos never predict.
Context engineering, memory tiering, reasoning-action loops, dynamic task decomposition, multi-agent orchestration: these are not hype. They are the physics of this field. Everything else is the weather of the week.
📚 Complete & Available Now
The book is complete and available now in PDF and EPUB formats, with print editions on Amazon.
💎 Get the Book
Digital Access: PDF and EPUB editions available now (you set the price), with lifetime access to all updates and bonus content.
Exclusive Bonus Content: Includes access to the companion code repository and real-world case studies.
Print Edition: Hardcover and paperback are available on Amazon.
Ready to move beyond demo-grade agents?
Every production failure starts with a fix that was not wrong, just not enough.
In the demo, an agent looks like magic. In production, it meets flaky tools, silent drift, runaway retries, and bills that triple while the dashboard says it has never been better. So the team reaches for a fix: a retry cap, a stricter prompt, a bigger model. Each one treats the symptom while the structural flaw waits for the next Saturday night. You cannot prompt your way out of an architecture problem.
Agentic AI System Design: Production Scenarios Under Pressure is a flight simulator for that moment. Each scenario drops you into a production incident at a realistic company, with real numbers, real stakes, and a deadline. You stop and think before you read on. You ask the questions a Staff engineer would ask, dismantle the tempting fixes, trace every symptom to its structural cause, and design the architecture that holds, then find out where even that design breaks.
📖 Inside Every Scenario
🗺️ Six Chapters, Two Parts
Part I: The Building Blocks
Part II: Agents in Production
👤 Who This Book Is For
Two readers who turn out to need the same thing:
💡 Why This Book
Most system design material falls into one of two traps: classic playbooks built for deterministic services, which say nothing about probabilistic failure, or framework tutorials that break the moment inputs leave the happy path. This book trains the judgment in between.
If The Agentic AI Book taught how these systems work, this book puts them under pressure.
Instructions are behavioral. Architecture is structural.
📚 Three Ways to Read
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
Learn more about writing on Leanpub
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them
You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!
Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.
Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.