Start here

Start here: the pilot-to-production gap

Why most agent pilots never ship, and how this book gets yours across the line

BuilderLeaderSoloOpsClaude8 min read

Free chapter

The prologue and Chapters 0 to 2 are free in full: read them here or download the PDF (all four, with their figures and exercises).

In short

An agent is a model in a loop with tools and context, inside a harness. Production lives in the harness.

Key ideas

  • Adoption and cancellations rise together; the gap is mostly measurement and operations, though capability still falls short on long, policy-heavy work (Chapter 18)
  • Use the checklists as gates: Chapter 2 before you build, Appendix A before you ship
  • Pick your track: Builder, Leader, Solo, Ops or Claude

A summary. The whole chapter is free: read the full chapter

40%

apps with agents, end 2026 (forecast)

>40%

projects canceled by 2027 (forecast)

Inside the chapter

  1. 1Why now: the gap in numbers
  2. 2What changed between 2025 and 2026
  3. 3What this book is, and is not
  4. 4The spine: one model of an agent
  5. 5Reading tracks
  6. 6The companion workbook
  7. 7How to use the checklists
  8. 8If your pilot is already stuck

Try it: is it in production?

Pick an answer, then read the consequence of every option.

Your pilot works in the demo. What do you need before calling it in production?

Show the answers
  1. A. More prompts Prompt tuning improves the demo, not the operation: nobody owns it and nothing is measured.
  2. B. An owner, a success event, a harness and a measured cost per successful task (Best answer) Correct. Those are the four production tests: someone is paged, success is visible in logs, the loop is bounded, and the economics are known from data.
  3. C. A bigger model A bigger model raises cost per attempt and leaves the same gaps: no owner, no limits, no measured success.
  4. D. A multi-agent design More agents multiply calls and hiding places for errors. Start at the lowest level that works.

Go further: free on this site

Questions readers asked about this chapter, a 5-question self-check with explanations, and every source it cites.

Questions readers ask (6)

6 questions. Open one to read the answer.

Can I quote the Gartner and McKinsey numbers to my board?

Yes, with date and population every time. Gartner's 40% of apps with agents and 40% of projects canceled are 2025 forecasts. McKinsey's 40% (over $1B revenue) and 22% (smaller) are self-reported, from 1,719 participants in 2026 (McKinsey). Gartner's 13% of CIOs seeing significant value comes from 2,002 respondents (Gartner, Oct 2026). Never add figures from different surveys; follow them with your own cost per successful task.

Does the advice depend on which model vendor or framework I use?

Mostly no. The spine, decision tree, harness, evals and ROI model are vendor-neutral, and code samples use placeholders such as call_model. Where a vendor detail changes a decision, the book names and dates it, because vendors retire APIs: OpenAI's Assistants API shut down on 2026-08-26 (OpenAI). Keep prompts and evals in your repo and a thin interface to the model client, so a switch is a config change plus an eval run (Chapter 6).

I am a solo builder, not an enterprise. Is this book for me?

Yes. The enterprise numbers are context. What transfers directly: workflows first (Chapter 2), tools and MCP servers you can build and sell (Chapters 3 and 4), and cost per task as your pricing floor (Chapters 10 and 13). Your failure modes differ: a runaway loop on your own card, a client data leak with no security team. The harness matters more for you, because nobody else is watching.

I do not write code. How much of this book can I use?

Most of it: the Ops track takes about 2 hours. Skip the syntax and read the code comments. Most patterns map onto an automation canvas: a router is a switch node after a classification step, a chain is LLM steps with filters between them, an approval is a wait-for-human step. You will need a developer for custom MCP servers, evals in CI and long waits; the glossary on this site gives you the vocabulary to brief one.

Should we wait for frameworks and standards to settle before investing?

No. The layers that matter most for lock-in (MCP, A2A, Agent Skills) have converged under the Agentic AI Foundation. Frameworks still move, which argues for a reversible choice, not for waiting. Waiting costs organizational learning: labeled eval sets, real cost data, an owner who knows the failure modes. Those take months and survive framework upgrades. Start with a small workflow (Chapter 2).

What should a "do not ship" guideline say?

It names the measured result that stops a pilot, written before the pilot starts: a success rate floor on a labeled set, a cost per successful task ceiling and a date. Gartner's survey numbers on stop guidelines are in Ch 14, The 30/60/90 day plan.

Self-check (5)

Score: 0 / 5 (0 answered)

  1. Question 1 of 5

    Gartner forecasts that 40% of enterprise apps will feature task-specific agents by the end of 2026, and that more than 40% of agentic AI projects will be canceled by the end of 2027. What is the most accurate reading?

    Show the answer

    Answer: B.

    The chapter reads them together: agents spread while many projects die on cost, value and risk controls. Blaming weak models is tempting, but Gartner's reasons are costs, unclear value and inadequate risk controls.

  2. Question 2 of 5

    A bot answers real employee questions, has a named owner and on-call path, step caps and traces, and a known cost per question. Is it in production by this book's definition?

    Show the answer

    Answer: D.

    Production requires all four tests, including a measured success rate and cost per successful task. If it answers 60% correctly, cost per successful answer is cost per question divided by 0.6.

  3. Question 3 of 5

    Which of these belongs to the harness rather than to the four core parts of the agent?

    Show the answer

    Answer: A.

    Budgets and telemetry are harness jobs. Feeding results back is the loop, which every demo already has; the harness is what most pilots lack.

  4. Question 4 of 5

    Only 13% of CIOs in Gartner's 2026 survey report significant or transformational value from AI. What does the chapter take from that?

    Show the answer

    Answer: B.

    The chapter uses the figure to show where the gap sits: shipping a demo and running a system are different jobs. Day 5 of the stuck-pilot week, fix, narrow or kill, is that stop rule in practice.

  5. Question 5 of 5

    Your pilot has been stuck for three months. According to the chapter, what should you do first?

    Show the answer

    Answer: B.

    Day 1 of the stuck-pilot week is owner plus success event, because the three steering questions (cost per successful task, failure rate, who is paged) need them. A rewrite is explicitly what not to start with.

Sources

Sources cited

  • Gartner, Gartner Predicts 40% of Enterprise Apps Will Feature Task-Specific AI Agents by 2026, Up from Less Than 5% in 2025, August 2025. gartner.com
  • Gartner, Gartner Predicts Over 40% of Agentic AI Projects Will Be Canceled by End of 2027, June 2025. gartner.com
  • McKinsey, The state of AI in 2026: On the road to ROI, August 2026. mckinsey.com
  • Gartner, Gartner Survey Finds Only 13% of CIOs Say Their Enterprise Has Realized Significant or Transformational Value From AI, October 2026 (n=2,002). gartner.com
  • OpenAI, Deprecations (API documentation), accessed November 2026. developers.openai.com

Further reading

  • Melissa Z. Pan et al. (UC Berkeley-led), Measuring Agents in Production. arxiv.org
  • Anthropic, Building effective agents. anthropic.com
  • Google, Site Reliability Engineering, chapter on service level objectives. sre.google