How to use this book
How to use this book
You ask an assistant to fix a bug. It opens files, describes a cause, changes a function, and reports success. The patch looks reasonable. The question that remains is deceptively small: what, exactly, has succeeded?
Perhaps the function now passes one test. Perhaps the whole application builds. Perhaps the user can perform the intended action in a browser. These are different accomplishments. A useful coding agent has to move between them without losing track of which one it has actually demonstrated.
This book is about that movement. It treats a coding agent as part of a software delivery process: a system that receives an intention, investigates a codebase, proposes and performs actions, inspects their consequences, and eventually hands back something a person can accept. The useful output is a change with evidence attached.
You do not need to train a model to follow the exercises. You should be comfortable opening a small project, editing a text file, and running a command. Where a chapter introduces an unfamiliar concept, it will explain the concept through a concrete task before generalizing it. Readers who already build developer tools can use the same examples to examine their own assumptions about context, permissions, review, and recovery.
The running example is a fictional issue-tracking application called Patchboard. People create issues, assign them to a team member, choose a status, and filter the list. This is deliberately ordinary software. A broken status filter, a lost draft, or a misleading success message makes a useful engineering problem because the desired behavior can be described without inventing a new business. As the book progresses, we will add constraints and observe how those constraints change the agent's work.
All Patchboard scenes are constructed teaching examples. The named developers and users in those scenes are fictional. They are not interviews or accounts of a particular company's deployment. Where the text discusses a real system, benchmark, or public claim, it identifies the source separately.
The chapters follow five stages. The first establishes the task, the repository, and the working environment. The second examines the loop that connects a model to tools and observations. The third follows changes through implementation, testing, review, and recovery. The fourth addresses permissions, evaluation, cost, and concurrent work. The fifth turns those practices into a team workflow and a complete capstone.
Read the first four chapters in order if agentic coding is new to you. Their vocabulary will make the later implementation chapters easier to follow. If you already operate an agent, begin by writing down a task it recently completed. Keep the original request, the diff, the commands it ran, and the final report. As you read, compare the book's questions with the evidence your system actually records. Missing evidence is often more informative than an impressive demonstration.
Keep a small experiment notebook. For each exercise, record the task, the starting state, the action you expected, the action you observed, and the result you would accept. A plain text file is sufficient. The point is to preserve a distinction that conversations tend to blur: what you wanted to happen and what you know happened.
Some exercises ask you to write an acceptance criterion before you implement anything. Others ask you to introduce a controlled failure into a disposable example. Do these exercises in a practice project. A learning experiment should let you inspect an error without putting somebody else's work at risk.
The examples emphasize enduring interfaces: files, patches, commands, test results, permissions, and versioned state. Commercial assistants change their names and capabilities. A workflow that depends on a particular button being in a particular corner will age quickly. A workflow that records the current revision, checks the relevant behavior, and identifies the consequences of an external action can survive changes in the interface.
That does not make model choice irrelevant. Different models and configurations may behave differently on the same task. It means that the surrounding process must let you discover those differences. A confident sentence is easy to generate. A result that can be inspected, repeated, and recovered requires deliberate engineering.
By the end, you should be able to answer six questions about an agent-assisted change:
What outcome was the agent asked to produce?
What evidence did it use to understand the starting state?
Which actions could it perform, and who enforced those limits?
What changed in the software and its environment?
Which observations support accepting the result?
What remains uncertain, and how would you recover?
You will not need a perfect answer to every question before doing useful work. You will need to notice when an unanswered question affects the next action. That judgment is the central skill of supervised autonomy.
