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...
Kick off your book project in 2 hours, get started with GhostAI in 2 hours, or do both! Free live workshops, on Zoom. You’ll leave with a real book project and a clear plan to keep going. Saturday, June 27, 2026.
From Prompt to Autonomous Agent is a practitioner’s guide to building AI systems that actually run in production – written for engineers who build things that need to work at 3am, six months after launch.The book teaches twelve levels of agentic AI architecture using a single, unbroken running example: a job failure in AWS Glue that requires a root cause diagnosis. This same system evolves over the fifteen chapters - from a single API call in Chapter 1 to a Society of Agents deliberating over a novel multi-factor failure in Chapter 12. You don’t just know what each pattern is by the end. You know what it is for, how much it costs, and what it gives you over the level below.Each chapter focuses on a single pattern: the Basic Responder, the Router, Tool Calling, Memory Augmentation, the Autonomous Agent, Reflective Self-Critique, Human in the Loop, Planning, Multi-Agent Coordination, Tool Building, Hierarchical Orchestration, and the Society of Agents. Each chapter has working code (one file, under 100 lines, no dependencies other than the Anthropic SDK) and a Failure Museum - a catalogue of real production failures with the signal, the cause, and the fix.The final section, Production and Craft, covers what most AI books entirely skip over, how to make agentic systems observable, how to protect them with cost guardrails, how to build fallback chains that degrade gracefully, and how to evaluate them with enough discipline that you know they're working before your users tell you they aren't.The book is for data engineers, backend engineers, and ML engineers who are done with demos and ready to ship. Requires Python fluency and engineering judgement. No prior knowledge of AI research, math or language models is assumed.The examples are in Python and use the Anthropic SDK because that’s where real systems live. They are based on real AWS infrastructure , EventBridge, Glue, Lambda, Bedrock, Snowflake, OpenSearch.The core principle runs through all the chapters: the right level is always the lowest level that can reliably handle your problem. This book will show you how to figure out what level that is.
Minimum price
$19.00
$29.00
About the Book
From Prompt to Autonomous Agent is a practical guide for engineers building AI systems that actually run in production, for engineers who build things that need to work at 3am, six months after launch. The book uses one running example throughout – an AWS Glue job failure that requires root cause diagnosis – to teach twelve levels of agentic AI architecture. This same system evolves over the fifteen chapters , from a single API call in Chapter 1 to a Society of Agents deliberating over a novel multi-factor failure in Chapter 12. By the end you not only know what each pattern is. You know why it is, what it costs, what it adds to the level below it.
Each chapter takes on a particular pattern: the Basic Responder, the Router, Tool Calling, Memory Augmentation, the Autonomous Agent, Reflective Self-Critique, Human in the Loop, Planning, Multi-Agent Coordination, Tool Building, Hierarchical Orchestration, and the Society of Agents. Every chapter includes working code (one file, under a hundred lines, no dependencies beyond the Anthropic SDK) and a Failure Museum. a catalog of real production failures, with the signal, the cause, and the fix. The last section, Production and Craft, covers what most AI books don’t bother to mention at all: how to make agentic systems observable, how to protect them with cost guardrails, how to build fallback chains that degrade gracefully, and how to evaluate them with enough discipline that you know they’re working before your users tell you they aren’t.
It’s for data engineers, backend engineers and ML engineers who’re sick of demos and ready to ship. Requires fluency in Python and engineering judgment. No background in AI research, mathematics, or experience with language models is needed.
The examples are in Python and the Anthropic SDK, and tied to real AWS infrastructure, EventBridge, Glue, Lambda, Bedrock, Snowflake, OpenSearch, because that's where real systems live. This common thread runs through every chapter: the proper level is always the lowest level that solves your problem reliably. This book will show you how to figure out what level that is.
About the Author
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.)
In fact, authors have earned over $15 million writing, publishing and selling 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.