Skip to content

Building and Reviewing Software with AI

When I work with a coding agent, the goal is a useful software change that fits the existing system and stays understandable to the people who will maintain it.

These notes cover the work needed to get there: understanding the problem, defining what should change, choosing an approach, implementing it, and checking the result. Important decisions should be clear enough to review, and assumptions should be checked against the actual system. When implementation or testing reveals a problem with the plan, the plan needs to change too.

Review brings that work together. It connects the requirements, design, code, and test results to a decision about whether the change is ready to merge and what needs to happen before deployment.

The amount of work should fit the change. A small bug fix may need a focused review and a regression test. A database migration or retry change needs more attention to existing data, compatibility, and failure handling.

Reviewing a change

Preparing and building a change

These notes cover both ordinary application code and changes to AI features. For the latter, see Evaluation in AI Product Development.

Explore this section

  • Readiness to merge depends on more than code correctness. Eight review steps connect intended behavior and system impact to design, implementation, testing, deployment, recovery, and a recommendation grounded in evidence.

  • Passing tests can coexist with guessed requirements, missed callers, unnecessary machinery, or an unsafe API assumption. The failure catalog pairs these patterns with concrete ways to investigate and correct them.

  • A buildable brief identifies who needs what outcome and how they complete the job. Separating agreed requirements from existing behavior, assumptions, and open choices gives engineers and agents a basis for design.

  • System design turns intended behavior into components, data ownership, interactions, and failure rules. Consequential assumptions get focused checks, and decisions record what implementation must preserve or reconsider.

  • A sound review follows the intended change through requirements, surrounding code, design choices, and tests. It checks whether convincing explanations and passing checks could all repeat the same mistaken assumption.

  • A retry test can miss duplicate writes if its timeout mock never saves anything. The worked example checks a lost response after commit, then inspects request identities, saved state, and side effects.

  • Coding-agent work needs a connected loop of defining, building, explaining, testing, and reviewing a change. Focused investigations and clear decision ownership keep the work understandable as evidence changes the plan.