The demo went well, and three months later the agent is still "in pilot": nobody trusts it with real traffic or knows its cost per ticket. That is a production problem, and production problems have known solutions.
Why now: the gap in numbers
Shipping a demo and running a system are different jobs. Gartner forecasts both curves: 40% of enterprise apps embedding task-specific agents by end 2026 (Gartner, Aug 2025) and over 40% of agentic AI projects canceled by end 2027 (Gartner, Jun 2025).
Gartner's 2026 CIO survey shows where the gap sits: 13% of CIOs report significant or transformational value from AI (Gartner, Oct 2026, n=2,002).
What changed between 2025 and 2026
A 2024 mental model is stale (as of late 2026):
| Shift | What it means | Chapter |
|---|---|---|
| Frameworks hit 1.0 | API stability; some SDKs still pre-1.0 | 6 |
| MCP is everywhere | Default tool connector, under the Agentic AI Foundation (AAIF) | 4 |
| Skills became a standard | A folder with a SKILL.md, loaded progressively, and a new supply-chain target |
3 |
| A2A v1.0 | Connects agents to agents, as MCP connects agents to tools | 7 |
| Durable execution | Agents survive crashes and wait days for approval | 7 |
| Vendors retire agent APIs | Keep prompts and evals in your repo | 6 |
What this book is, and is not
A playbook for taking agents to production and keeping them there. Most teams can build an agent. Few can run one. Where a sensible default exists, the book says "default to X, switch to Y when Z".
Who wrote it. A team of AI agents (Claude, by Anthropic), directed by Yann, who made every major decision and is accountable for what is published. The Afterword, "How this book was made", shows the pipeline and the mistakes it caught.
What "production" means here. Real inputs whose outputs someone acts on, a named agent owner with an on-call path, a success rate and cost per successful task known from data, and a harness: caps, approvals on risky actions, traces, rollback.
What it is not. Not a framework tutorial, not a hype book. It claims no experience it does not have: claims link to sources, stories are cited incidents or "Composite case" callouts, and Yann's own experience appears only in "Yann's note" boxes.
The spine: one model of an agent
Every chapter reuses one model: an agent = model + tools + loop + context, wrapped in a harness (budgets, guardrails, state, telemetry). The first four make a demo; the harness makes it work on a Tuesday night with real traffic. The Contents lists the nine parts that follow the Prologue, then an Afterword and Appendix A.
Reading tracks
Four tracks: Builder (developer or tech lead), Leader (CTO or engineering manager), Solo (indie hacker selling automations), Ops (no-code operator on n8n, Zapier or Make). A fifth, Claude, is for teams whose stack is Claude: it adds Chapter 19, the only vendor-specific chapter, to the vendor-neutral core, plus the Claude Kit in the workbook. Read your "Read" chapters in order, skim the "Skim" ones and skip the rest (P is the Prologue). Times assume 200 words per minute; a skim takes about a third.
| Track | Read | Skim | Time |
|---|---|---|---|
| Builder | 0 to 11, 15 to 17, 19, Afterword, A | P, 12 to 14, 18, 20 | about 4 h 20 min |
| Leader | 0, P, 1, 2, 8, 10 to 12, 14, 15, 18, 20, Afterword, A | 3, 4, 6, 7, 9, 13, 16, 17, 19 | about 3 h 20 min |
| Solo | 0 to 4, 10, 13, 17, Afterword, A | P, 5 to 9, 11, 12, 14, 15, 18 to 20 | about 3 h |
| Ops | 0 to 3, 13, Afterword, A | P, 4, 8 to 12, 17, 18, 20 | about 2 h |
| Claude | 0 to 4, 10, 11, 19, A | 5, 6, 8, 9, 15, 16, 18, 20 | about 2 h 30 min |
The whole book, every chapter read in full, takes about 5 h 10 min.
The companion workbook
Practice lives in the slim companion workbook: exercises, solutions, the running project and the Claude Kit appendix. Reader Q&A, self-check quizzes, sources and further reading, and the glossary live on the website, agentinprod.com. Each chapter here ends with a checklist and a one-page card.
How to use the checklists
Each item is a yes or no question to copy into a ticket or review template. Run the Chapter 2 checklist before you build (many agent ideas become workflows, a win), Appendix A before you ship (any "no" is a signed-off risk or a blocker), and the closest chapter's checklist after an incident.
If your pilot is already stuck
Do not rewrite. Spend one week getting the three steering-meeting answers.
- Day 1: name the agent owner and a success event, such as "draft sent unchanged" (Chapter 14).
- Day 2: add step and cost caps, a timeout and traces (Chapters 8 and 10).
- Days 3 and 4: label 50 real cases from logs as a first eval set (Chapter 9).
- Day 5: compute fully loaded cost per successful task; fix, narrow or kill (Chapter 14). Kill or promote only if the result clears the break-even success rate (Chapter 14) by more than the noise (about plus or minus 14 points at 50 cases, Chapter 9); otherwise label 50 more.
Checklist
- ☐ I picked a reading track.
- ☐ I can name the five parts of the spine.
- ☐ For my current pilot, I know which harness elements are missing.
- ☐ I know what one successful task costs, or I know that I do not know.
- ☐ I have copied Appendix A into my own review template.