Skip to content
back to the archive page
#AI4SDLC

Dex Horthy and the cost of the next change (Series #AI4SDLC)

In August I wrote about Why Software Factories Fail. Dex Horthy described how agents at HumanLayer wrote code and checked each other’s changes, while the humans gradually stopped reading it. When the site went down, the team that had lost track of the code had to fix it. While everything works, it’s easy to count the time the agent saved on the first PR. How much will the next change cost the team?

On November 12 at AI Engineer CODE, Horthy returned to the subject, this time as an engineer at Factory. Last time he had one team’s experience to draw on. This time he also brought SlopCodeBench. The agent gets the requirements in installments. It writes the first version of a program, gets a new requirement, and has to extend its own code while keeping the existing behavior intact. In the November evaluation, the best result under the strict criterion was 32 out of 196 checkpoints, or 16.3%. A checkpoint counts only if all its tests pass, along with all the tests from earlier checkpoints. That won’t tell you how many hours the on-call engineer spent, but it can show you the step where a change breaks earlier behavior. Benchmark co-author Gabriel Orlanski has more on the evaluation.

Dex goes on to describe twelve factors to keep your software factory from producing slop and closes with No AI Slop: A Manifesto, in the spirit of the Agile Manifesto. I just hope it doesn’t end up like the situation in The Agile Paradoxon. The twelve factors are also a nod to Heroku’s Twelve-Factor App.

Of Horthy’s twelve rules, two in particular struck a chord with me. The first refines his advice from No Vibes Allowed to agree on a plan before the agent starts coding. How much time should that take? It depends on the cost of rework. If we’re debating where a button goes, it’s easier to let the agent build the screen and look at it together. If we’re changing the data schema, it’s worth talking it through while trying a second option still means editing a plan and we don’t yet need a migration.

The second rule makes sense if you picture being on call. In my post about Davis Palmie’s talk at Factory, an agent picked up a Sentry alert and brought the on-call engineer a diagnosis. In Horthy’s version, a PR with a proposed fix could already be waiting for you at three in the morning. My first question would be whether the agent reproduced the failure and showed that the fix made it go away.

Horthy calls the signal that starts work forward pressure. Tests, linters, and reviews provide backpressure by sending unfinished work back to the agent. In my post on Loop Engineering, we had a good question to ask about a check like that. Which real errors has it caught?

Horthy closes with the Anti-Slop Manifesto. The part that rings truest to me is about a colleague’s time. A large PR may have taken its author minutes to generate. The next person has to piece together why any of it was written. I like Geoffrey Litt’s approach. Before you ask a colleague for review, get the agent to ask you five questions about the change. If question three reveals you can’t explain why the code works the way it does, that’s a good thing to find out before your next night on call.

#AI4SDLC #Agents #Engineering #CodeReview #Evals

Open video on YouTube