01Chapter 1: How a coding agent works on existing codeThis chapter assumes you can read and write code in at least one language and use Git branches, commits, and diffs. You should also have run a test suite and a linter from the command line, and used an AI coding assistant at least once.3 min read
02Chapter 2: Refactoring versus migration: what changes and what must notThis chapter assumes you can read and write code in one language, use basic Git (branches, commits, diffs), and run a test suite and linter from the command line. It also assumes you have used an AI coding assistant before.3 min read
03Chapter 3: Giving the agent the context it needsThis chapter assumes you can read and write code in one language, use Git branches and commits, and run a test suite and linter from the command line. You should also have used an AI coding assistant before.3 min read
04Chapter 4: Scoping the task and defining doneThis chapter assumes you can read Python, use Git branches and diffs, and run a test suite from the command line. It also assumes you have used a coding agent before. Here you will learn how to turn a vague request into a task the agent can finish and you can check.3 min read
05Chapter 5: Using branches and commits as checkpointsThis chapter assumes you can read and write code, use basic Git (branches, commits, diffs), and run a test suite from the command line. It covers how to use Git so that any step an agent takes can be kept or thrown away without losing earlier work.3 min read
06Chapter 6: Pinning down current behavior with characterization testsThis chapter assumes you can write and run pytest tests and use Git branches and commits. It covers how to record what code does today, so you can tell whether an agent's refactoring changed behavior.2 min read
07Chapter 7: Asking for a plan before any editsThis chapter assumes you can read and write code, use Git branches and commits, and run a test suite from the command line. It also assumes you have used an AI coding agent before.3 min read
08Chapter 8: Working in small, reversible stepsThis chapter assumes you can use Git branches and commits, run a test suite from the command line, and have already pinned down current behavior with tests. The goal is to keep every change small enough to check quickly and undo cheaply.2 min read
09Chapter 9: Closing the loop with tests, type checks, and lintersThis chapter assumes you can run a test suite, a type checker, and a linter from the command line. It also assumes you have a branch for the work and characterization tests for the code you are changing. You can set up both with the earlier chapters on checkpoints and characterization tests.3 min read
10Chapter 10: Reviewing the diff like a pull requestThis chapter assumes you can read a Git diff, run a test suite, and have already set up the test, type-check, and lint loop from the previous chapter.2 min read
11Chapter 11: Failure modes: invented APIs, behavior drift, over-broad editsThis chapter assumes you can read a Git diff, run a test suite and a linter, and have used a coding agent before. It covers three failure modes that show up often when an agent changes existing code, and the guardrail that catches each one.3 min read
12Chapter 12: Combining the agent with codemods and structural searchThis chapter assumes you can read TypeScript or Python, use Git branches and commits, and run a test suite and linter from the command line. It also assumes you have used a coding agent before.3 min read
13Chapter 13: Planning and tracking a large migrationThis chapter assumes you can read and write code, use Git branches and commits, run a test suite and a linter, and have used a coding agent. It also assumes you know the earlier ideas in this tutorial: scoped tasks, characterization tests, small steps, and diff review.3 min read
14Chapter 14: Rolling out gradually and removing old codeThis chapter assumes you can use Git branches, run a test suite, and read basic Python. It also assumes you have already split a change into small, verified steps. Merging a verified change is not the last step. The new code still has to run safely in production, and the old code has to go away.3 min read