Skip to main content

Coding Agents Produce Code; Software Is a Review Artifact

Agents raise diff volume, not software volume. The bottleneck moves to review, integration and ownership — and that is what teams should instrument.

Close-up of a dark terminal window showing monospaced source code with a diff view and line numbers

The metric mismatch

A recurring observation in coverage of coding agents is that teams are merging more code without shipping more software. Ars Technica's reporting on the pattern is a useful prompt to look at what is actually being counted. The unit being counted is the diff. The unit that matters is the maintained system.

Lines merged is an output measure. It says something about the rate at which text enters a branch. It says nothing about whether that text survives its next change, whether it composes with the code around it, or whether anyone can reason about it six months later. Software, in the sense that matters to an engineering organisation, is a system that survives its next change. That property is not produced by generation. It is produced by review, integration and ownership.

When agents author diffs, the cost of a change does not disappear; it moves. Writing effort falls. Review effort rises, because the reviewer is now the first human to read the change rather than the second. Review is the scarcer resource in most teams — there are fewer people who can approve a change in a given subsystem than there are people who can propose one. Pushing more proposals into a fixed review capacity does not increase delivery. It increases queue depth.

This is the part that gets lost in dashboards. Throughput gains that land in an unreviewed branch are inventory, not delivery. A branch is a warehouse. It holds value only if something downstream can process it.

Why review does not scale with generation

Generation and review scale on different axes, and the mismatch is structural rather than temporary.

Server rack closeup

A reviewer's cost scales with the change surface, not with the speed at which the change was authored. Reading a diff, reconstructing the intent, checking it against conventions, tracing its call sites, and deciding whether it is safe to merge is work proportional to the number of decisions embedded in the change. An agent that produces a two-hundred-line diff in seconds has produced two hundred lines of decisions for a human to audit. The generation speed is irrelevant to that audit; if anything, it is a warning, because fast generation correlates with changes that were never locally reasoned about.

The second problem is consistency. Agent-authored diffs tend to be locally plausible and globally inconsistent. Each hunk reads as reasonable in isolation. The inconsistency appears at the seams: a new helper that duplicates an existing one under a different name, an error path that returns a different shape than its neighbours, a logging call that bypasses the project's structured logger, a test that asserts behaviour the module deliberately does not guarantee. None of these are visible in a single hunk. They are visible only to someone holding the whole subsystem in their head — which is exactly the person whose time is now the constraint.

The third problem is that some of this work is not being done at all. The reported exposure of internal images in agent-authored repositories is best read as a review failure, not a generation failure. The agent produced code that did what it was asked. The pipeline that should have caught an internal asset being served publicly did not, and the reviewer who should have asked where the asset lived did not. Attributing that class of incident to generation misses the mechanism: generation was working as specified, and review was absent or nominal.

What to instrument instead

If diff volume is the wrong measure, what should replace it? Three families of metrics track the work that actually converts a diff into software.

Review latency and depth. Time-to-first-review measures how long an agent-authored change waits before a human engages with it. Review depth is harder but more useful: how many files in the change were actually opened, how many comments were left, whether the approval came with a trace of the reviewer having followed a call path. A change approved in under a minute with no comments is not a fast review; it is an unrecorded one.

Revert and follow-up rate. The proportion of agent-authored changes that are reverted, hot-fixed, or substantially rewritten within a short window is a direct signal of whether review caught the inconsistencies described above. This is the closest available proxy for whether the change survived its next change.

Convention violations caught by CI rather than by humans. Every convention that CI can enforce is a decision removed from the reviewer's budget. Linting, formatting, import boundaries, forbidden dependency edges, required test shapes, secret and asset scanning — each of these, once encoded, converts a human review question into a machine check. The ratio of CI-caught to human-caught violations is a measure of how much review capacity is being spent on things a linter could have decided.

Server rack closeup

Ownership coverage. For each merged change, is there a named maintainer who understands it? Not who approved it — who owns it. A change with no owner is a liability that has been merged into the codebase and will be discovered by whoever next touches that file. Ownership coverage is the metric that most directly distinguishes delivery from inventory.

A design rule for coding agents

The instrumentation follows from a design rule: treat the reviewer as part of the agent's runtime, not as a downstream cost centre.

In practice this means two constraints on every agent task.

First, cap the change surface. A task should have a bounded number of files and a bounded number of decisions it is allowed to make. When a task requires touching more than the cap, it should be split, not merged. This is uncomfortable because it slows the agent's apparent throughput, and apparent throughput is what most demos optimise. The trade-off is real: a tighter cap means more tasks, more orchestration, and more coordination overhead. It buys a reviewable change surface, which is the only thing that converts into merged software.

Second, require a review contract before merge. A review contract is a short, machine-checkable statement of what the change claims to do: which files it touches, which conventions it is expected to satisfy, which tests it adds, which invariants it must not break, and which human owns the result. The contract is not documentation for its own sake. It is the interface between the agent's output and the reviewer's attention. It lets CI verify the mechanical claims and lets the reviewer spend their budget on the judgement calls that CI cannot make.

A concrete mechanism for this: run the agent in a loop where the review contract is an artefact the agent must produce and validate against before the change leaves the agent's workspace. The agent proposes a diff, generates the contract, runs the project's existing checks, and only then opens the change for human review. The reviewer sees a change that has already been filtered by the same conventions the human would otherwise have to check. This does not eliminate review; it moves the mechanical portion of review into the agent's runtime, where it is cheap, and leaves the judgement portion with the human, where it is scarce.

The honest trade-off is that this design makes the agent slower and the pipeline more complex. It also makes the agent's output legible in a way that raw diff volume never is. Teams that adopt it will see lower lines-merged numbers and, if the thesis here is right, higher rates of change that survive their next change. That is the trade worth making. The alternative is a growing inventory of plausible, unreviewed, unowned code — which is not software, however many diffs it contains.

ShareXLinkedInPermalink6 min read

Related reading

Questions this answers

Why does more agent-generated code not translate into more software?

Generation is not the constraint; review, integration and ownership are. A diff in an unreviewed branch is inventory, not delivery. Software is a system that survives its next change, and that property is produced by review and ownership, not by authoring speed.

What should teams measure instead of lines merged?

Time-to-first-review, review depth, revert and follow-up rate per agent-authored change, the ratio of convention violations caught by CI versus humans, and ownership coverage — whether each merged change has a named maintainer who understands it.

What is a review contract for a coding agent?

A short, machine-checkable statement produced with the change: files touched, conventions to satisfy, tests added, invariants that must hold, and the owning maintainer. It lets CI verify mechanical claims so reviewers spend their budget on judgement calls.

Does capping the change surface per agent task reduce throughput?

It reduces apparent throughput — fewer lines per task, more tasks to orchestrate — and adds coordination overhead. The trade is a reviewable change surface, which is what actually converts into merged, maintained software.