← Back to The Development Lifecycle — how the builder track fits together

<aside> 🎯

The discipline I apply while the agent writes code. A coding agent writes code faster than you can read it, and left alone, in Claude Code and Codex alike, it drifts two ways at once: patches that make an error go away without fixing its cause, and machinery nobody asked for.

</aside>

Last reviewed: 24 September 2026 · product details checked against vendor pages on that date

<aside> ⏱️

Estimated time: ~8 minutes to read. Prerequisite: Your first coding agent and Manage project work: Roadmap & Backlog (Step 08). This is the Execute phase of The Development Lifecycle — how the builder track fits together, between planning the work and verifying it.

</aside>

Two failure modes, and why an agent produces both

Two failure modes dominate AI-assisted coding. Band-aid patching accretes fixes around a symptom without touching its cause. Over-engineering layers on abstraction, flexibility, and configuration the problem never called for. Both leave code harder to maintain than what it replaced, and a coding agent produces both by default.

The band-aid comes from what the agent optimizes for: you showed it an error, and the quickest way to satisfy you is to make the error disappear. Duplicate rows in a list get filtered out at render time; the query producing them is left alone, and the next view of the same data needs a patch of its own.

Over-engineering comes from the other direction. Asked to build something, the agent scaffolds with what it has seen most often, production code written for problems larger than yours: an interface with one implementation, a strategy class for a second caller who never arrives, retry logic for an API call that has never failed. Scope creep during design feels like helpfulness; in review it reads as noise, because nobody can tell which lines implement the request and which implement a guess about next quarter.


A small vocabulary for review

A review comment is faster when the problem has a name. I use five, from my design-principles protocol:

Behind the names sit six principles: root cause over symptom; parameterize, don't hard-code; extract, don't duplicate (but not before the duplicate exists); match the spec, don't exceed it; readability over cleverness; and make a bad state impossible rather than writing code that watches for it. The last is the one I would least want to lose: if you find yourself writing a detector for something that must never happen, ask whether a type, a required field, or an ordering rule could make it unrepresentable instead.


Before the agent touches anything: root cause and blast radius

Root cause first. Before a fix, the agent should name the mechanism that produces the bug. The protocol's three examples are the ones I meet most often: a race is fixed with ordering or synchronization, not a retry or a longer timeout; a stale cache with invalidation, not by switching the cache off; and a boundary violation by moving the boundary, not by catching the error. If the agent cannot name the mechanism, the right output is a plan for diagnosing it, not a patch, and I ask for that explicitly because the agent's default is the patch.