No. 022 Essay Opinion

Software engineering is a data-driven science now

When agents can build many versions of a feature in parallel, the scarce skill is no longer writing the code. It is defining what good looks like, as a benchmark, and letting a software factory search for it.

For most of the history of software, a feature was something an engineer designed and wrote by hand. You thought hard about the problem, chose an approach, built it, and then checked whether it worked. Testing came at the end and mostly answered one question: did I break anything?

That order is changing. With coding agents, writing a version of a feature is cheap. Writing ten versions is nearly as cheap as writing one. When producing candidates costs almost nothing, the hard part moves to the other end of the process: deciding which candidate is best. Engineering starts to look less like craft and more like experimental science.

The loop

The pattern I keep using in my own projects looks like this:

  1. Define what good looks like. Before writing any code, write a benchmark: a set of cases and a score that tells you whether the product is getting better. Not just "do the tests pass", but how fast, how accurate, how often the user gets what they wanted.
  2. Run experiments in parallel. Point a software factory, a set of agents with their own branches, at the benchmark. Each one tries a different approach to raising the score.
  3. Merge the winners. Keep the changes that move the score up, combine the ones that don't conflict, and throw the rest away.
  4. Repeat until the returns flatten. Run the loop again from the new baseline. When each round adds less than the last, stop, or go back to step one and ask whether the benchmark is measuring the right thing.

This is an evolutionary process: variation, selection, inheritance. The difference from ordinary iteration is that the variation and selection are automated. A person no longer has to choose the approach up front and hope it was the right one.

What changes for the engineer

If the factory does the building, the engineer's job shifts to three things.

Writing the benchmark. This is now the most important artefact in the repository. A weak benchmark gets optimised just as hard as a good one, and the factory will find every shortcut it leaves open. If the score only checks that output looks right, you will get code that looks right. So the benchmark needs the same care as a scientific measurement: held-out cases the agents never see, more than one metric so no single number can be gamed, and someone reading a sample of the winners to check the score still means what you think it means.

Deciding what quality means. Most software has never had an explicit definition of quality. We relied on taste, code review and bug reports. To run this loop you have to write quality down: latency budgets, accuracy on real examples, accessibility checks, cost per request, how often a test suite actually catches a bug. That is uncomfortable, but it is the same discipline every experimental science already has.

Knowing when to stop. Diminishing returns are the signal. When another round of experiments buys a fraction of a point, the cheapest improvement is usually a better benchmark, not more search.

Where I've seen it work

A few of the projects on this blog are pieces of this loop.

Agentic Verification asks whether a test suite would actually catch a bug, by mutating the code and seeing which tests fail. That is a measure of the benchmark itself, and it matters more once agents are writing the code the tests are meant to check.

Ensemble sends the same prompt to several models and scores where they agree. ChatEvolve breeds text by keeping and cutting sentences across drafts instead of writing revision prompts. Both are selection over many candidates rather than one carefully written answer.

Hoity Toity was built from a specification split into work packages that agents built in parallel, followed by separate review passes for security, rights, payments and the user experience. The specification and the review checklists did the job a benchmark does: they defined what finished meant before any code existed.

It should be in the harness

Right now I assemble this loop by hand for each project: write the eval, launch the agents, compare the branches, merge. It should be a built-in feature of the agent harness. You give it a benchmark and a budget; it runs the experiments in parallel, merges what improves the score, reports the curve, and stops when the curve flattens.

Once that exists, the evolutionary part of engineering is automated. What is left for people is the part that was always the hardest: saying clearly what good software is. I think that is where the effort of the next few years should go. Not better ways to write code, but better ways to measure it.

Back to the inventory