Part 1: Mental models

What an agent actually is

A definition precise enough to design, budget and argue with

BuilderLeaderSoloOpsClaude10 min read

In short

An agent is a model in a loop, choosing tools, with a managed context, inside a harness. Name its rung on the ladder before you build it.

Key ideas

  • The harness (budget, guardrails, state, telemetry) is what makes an agent production-ready
  • L2 to L3 is the big jump: the model takes over the control flow
  • Real deployments are short and supervised; systems become agents one tool at a time

A summary only. The reasoning, examples, checklist and what to do on Monday are in the chapter. Read it in the book

68%

of deployed agents in the survey run 10 steps or fewer before a human

17 of 20

case-study teams built on direct API calls (61% of survey respondents use a framework)

Inside the chapter

  1. 1Four parts and a harness
  2. 2The autonomy ladder
  3. 3Where real deployments sit
  4. 4Agent, automation, chatbot, copilot: vocabulary that ends meetings
  5. 5Composite case: the assistant that became an agent

Try it: place each system on the autonomy ladder

Score: 0 / 6

Who decides the control flow? Pick the rung for each system.

Item 1 of 6

Agent that investigates with read-only tools, 8-step cap

    Show the answers
    • Agent that investigates with read-only tools, 8-step cap

      Answer: L3 bounded agent. The model decides the next step inside your caps. This is the big jump.

    • Summarize one email

      Answer: L0 single call. One model call, your code around it.

    • Supervisor delegating to 3 specialist agents

      Answer: L4 multi-agent. Several models delegating: the cost is the sum of every loop.

    • Classify a ticket, then route it to billing, tech or sales

      Answer: L2 router / workflow. The model picks a branch; your code owns the branches.

    • Agent that works a backlog for days

      Answer: L5 long-running. Open-ended runs over hours or days: drift and unbounded spend.

    • Extract fields, draft a reply, check tone, in a fixed order

      Answer: L1 chain. A fixed sequence your code controls: errors compound, but you can draw it.

    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 (3)

    3 questions. Open one to read the answer.

    What happens after a run returns "awaiting human"?

    Persist under a run ID the checkpointed context, the pending call with its exact arguments, and the approver. On approval, run the tool, append the result and resume from the checkpoint. On rejection, append the rejection as a tool result so the model can choose another path. For waits longer than a request timeout, do not hold a worker: use durable execution (Chapters 7 and 8).

    Should I write my own loop or use an SDK?

    Write the twenty-line loop once: it shows what every framework does underneath. Default to your own loop for one agent with a few tools. Move to an SDK when you need streaming, durable approvals, multi-agent hand-offs or built-in tracing you would otherwise build. Chapter 6 has the decision guide and the two-day evaluation protocol.

    Why pin reasoning effort as well as the model?

    Because defaults differ from the settings behind headline benchmarks (the CursorBench drop in Ch 19). If effort is left implicit, a default change or a model swap shifts quality and cost with no code change. Pin both values in config, log them on every trace, and compare model and effort pairs on cost per successful task.

    Answered in the book, not repeated here: See Chapter 1, Choosing the first numbers; See Chapter 1, The context; See Chapter 1, Agent, automation, chatbot, copilot: vocabulary that ends meetings

    Self-check (5)

    Score: 0 / 5 (0 answered)

    1. Question 1 of 5

      A trace shows the correct document was retrieved and present in the context, but the agent still answered with the wrong figure. Which failure type is this?

      Show the answer

      Answer: C.

      The information was there and the model chose badly, which is the definition of a model failure. Fixing retrieval is tempting but changes nothing when retrieval already worked.

    2. Question 2 of 5

      Why does the chapter call the jump from L2 to L3 the big one?

      Show the answer

      Answer: A.

      The shift is who controls the flow, which is why trajectory evals and the harness become mandatory. Model size and MCP have nothing to do with the level.

    3. Question 3 of 5

      How should you set the first step cap once you have eval data?

      Show the answer

      Answer: D.

      Only successful runs count, and the cap sits just above most of them. Using all runs lets loops and failures inflate the cap.

    4. Question 4 of 5

      An FAQ chatbot answers from documentation. At what point does it become an agent?

      Show the answer

      Answer: B.

      That is the moment security and approval questions start. Being embedded in a tool with human acceptance describes a copilot, not an agent.

    5. Question 5 of 5

      The Berkeley-led MAP study found that 68% of deployed agents run 10 steps or fewer before a human intervenes. What is the best use of that figure?

      Show the answer

      Answer: C.

      The chapter uses the MAP figures to calibrate: production agents are short, supervised and narrow, so a first proposal that promises L5 should come back as a capped L3 with a review queue. Reading them as proof that agents fail ignores that these are deployed, working systems.

    Sources

    Sources cited

    • Anthropic, Introducing Claude Opus 5.5, September 2026. anthropic.com
    • Anthropic, Claude Fable 5.2 and Mythos 5.2, November 2026. anthropic.com
    • Shunyu Yao et al., ReAct: Synergizing Reasoning and Acting in Language Models, arXiv, October 2022. arxiv.org
    • Anthropic, Effective context engineering for AI agents, September 2025. anthropic.com
    • Melissa Z. Pan et al. (UC Berkeley-led), Measuring Agents in Production, arXiv, v3 February 2026. arxiv.org

    Further reading