Software Factories Without Slop: 12 Rules (Dex Horthy)
Dex Horthy's AI Engineer talk lays out 12 practices for a software factory that doesn't ship slop, from forward and back pressure to lint rules and feature flags. On Slop Code Bench, the best model scores about 16%. In this episode: - Why models don't maintain code: SlopCodeBench - Planning by expected pain, aligning visually - Lint rules, feature flags and a unified forge - The Anti-Slop Manifesto and whether review still scales Sources: Dex Horthy; Adam Wiggins; Pete Hodgson; Gabriel Orlanski et al.; Daghan Altas; Steve Fenton Big AI ideas, made clear for builders. luongnv.com/podcast
Listen on Build Wiz AI Show Download MP3 Transcript
Based on 12 Rules for a Software Factory That Doesn't Ship Slop by Dex Horthy
Transcript
Bob: On a new benchmark for how agents evolve a codebase over time, the best model scores about 16 percent.
Alice: So should we all stop building software factories?
Bob: Dex Horthy says the opposite. He actually loves software factories.
Alice: Welcome to Build Wiz AI Show. Big AI ideas, made clear for builders. I'm Alice, and I'm asking the questions today. Bob, what are we unpacking?
Bob: Hi, I'm Bob. Today it's a talk on the AI Engineer channel by Dex Horthy, "12 Rules for a Software Factory That Doesn't Ship Slop". Until about a week before it, he was CEO and co-founder of Human Layer, which is now part of Factory.
Alice: Twelve rules, and a war on slop. Where do we start?
Bob: With his big claim: software factories are just good engineering, with agents doing the building. Those are his views, so we'll say so, and three guests bring outside research.
Alice: Okay, so what does a software factory look like before AI?
Bob: People put ideas into a tracker, someone builds them and runs tests, a pull request gets reviewed, and CI runs checks and linters. Then come canaries, rollouts and feature flags.
Alice: And then users find the bugs.
Bob: Right, so we add monitoring that wakes someone up at three in the morning, before anybody notices. He says a lot of this was around for 30 years.
Alice: So what changes with agents?
Bob: Just one box. You replace "someone builds the thing" with "an agent builds the thing".
Alice: First, the name. Why "12 Factor Factories"?
Bob: He says it started as a joke title, and then everyone started calling it that. It nods to "The Twelve-Factor App" by Adam Wiggins, written from the Heroku team's experience with hundreds of apps.
Alice: And what did that methodology care about?
Bob: The organic growth of an app over time, and avoiding the cost of software erosion. Hold on to that word, erosion. It's exactly Dex's worry.
Alice: Which surprised me, because in our Why Software Factories Fail episode, his verdict was that the lights off factory doesn't work.
Bob: He addresses that. People called him the anti-software-factory guy, but he says there are just certain things you could do in a factory that make it fail.
Alice: Like turning the lights off?
Bob: Maybe the dark factory thing, he says. Then come his two forces. Forward pressure is what causes work to start: feature requests and incidents go straight to the factory, so you get paged with a pull request, not just a stack trace.
Alice: And back pressure?
Bob: Picture a factory line with an inspector at every station and a stop cord anyone can pull. Back pressure is that line: agent code review, agent testing, CI and linters, so agents hill climb to a better outcome without needing humans.
Alice: So when a human finally looks, the easy stuff is done?
Bob: That's the goal: all the low-hanging stuff is already fixed, and the outcome is as good as it can be on its own.
Alice: Rule two is "know your enemy". Who's the enemy?
Bob: Unattended models, he says, don't do a great job of maintaining codebase quality over time. A model can clone a big app if it knows the whole problem in advance, but most of us ship a feature, then another, then another.
Alice: And that's what Slop Code Bench measures?
Bob: Exactly. Imagine adding a room to a house every month without ever redrawing the plans: soon the hallways lead nowhere. The benchmark has the model solve problems in checkpoints, building on its own code each time.
Alice: Maya, you read the paper behind it. What does it find?
Maya: The paper is SlopCodeBench, by Gabriel Orlanski and colleagues on arXiv: 36 problems and 196 checkpoints. No agent fully solves any problem end to end, and the best agent passes 14.8 percent of checkpoints.
Alice: And Dex's figure is a little higher?
Bob: His is newer data, released the day of the talk, with the top model at about 16 percent. Same picture either way: very unsaturated.
Alice: What does the slop actually look like?
Maya: Quality degrades across checkpoints, with structural erosion rising in 77 percent of trajectories. Compared to 473 open-source Python repositories, agent code is 2.3 times more verbose and twice as eroded.
Alice: Twice as eroded. My code reviews suddenly feel generous.
Bob: And Dex adds a twist: patterns flagged as probably not great were way less present in models from six months ago, so it almost feels like the slop is amplifying. Some models now write Python 3 in Python 2 style, with old percent-s format strings instead of f-strings.
Alice: So what's the lesson?
Bob: If your codebase needs to last, keep understanding the system and the code. That's the software erosion the Twelve-Factor authors warned about, now at agent speed. And the benchmark has 200 custom rules, many built by comparing model code to repos from before AI.
Alice: Rule three: plan before you build. Didn't we use to call that a meeting?
Bob: Pretty much: architecture review and sprint planning, to cut the chance of rework later. But he admits he's overdone it, spending six hours on a spec and feeling he could have just YOLOed it.
Alice: So how do you decide how much to plan?
Bob: He thinks in expected pain: how likely something will have to change later, times how hard it will be to change. It's like building a house: nobody argues about paint before the walls are up, but the foundation has to be right first.
Alice: And in software, the foundation is?
Bob: The database schema. He won't argue with the model about what color a button is, but he wants the schemas right, because they're really hard to change later.
Alice: What does that spectrum look like?
Bob: A two-sentence prompt: maybe a 50 percent chance you send a couple more prompts. Five hours on a detailed spec: maybe 10 percent to change afterwards. Or 20 hours writing it all by hand, with no rework from an agent.
Alice: Then he says align visually. What's that?
Bob: Instead of reading walls of text, you get HTML mockups, tables and charts, because the human brain is very visual. He passes on a line he likes: we've only been reading text for about 5,000 years.
Alice: And letting agents test?
Bob: Give the agent screenshots, browsers, videos, curl, whatever helps. Building an iOS app? Make sure it can build, run and test that app wherever it's running.
Alice: Next: fight slop with lint rules. Why lint?
Bob: It's like a spell-checker that has learned your favorite typo: it catches it every time, and you never reread for it again. He points to a rule set from a principal engineer at Cloudflare, aimed at stopping agents from building slop.
Alice: That's our Trusting AI Coding Agents episode with Lauren Tan: whenever you correct your agent, make it a deterministic check instead of another line in your rules.
Bob: And Dex nods to her: Lauren was saying a lot of this is stuff we've been doing for a long time. And the SlopCodeBench paper shows why words alone fall short. Explicit quality guidance cut initial verbosity and erosion by up to a third, without changing how fast the code degraded.
Alice: So a rule beats a polite request.
Bob: But here's his nuance: slop is a tool. Not all slop is bad: vibe coding, prototypes and side projects. Behind a feature flag, when you just need to learn if people even want it, he thinks it's great.
Alice: Slop as a feature. Bold.
Bob: And he says to give models a feature flagging system, so they can try things and see if they perform better, what Hodgson's guide calls experiment toggles. Think of a light switch wired in before the lamp ships: the lamp is installed, and you choose when it's on.
Alice: Remind me what a feature flag really is?
Bob: Pete Hodgson's feature toggles guide on Martin Fowler's site calls them a powerful technique, allowing teams to modify system behavior without changing code.
Alice: Any catch?
Bob: A carrying cost. Hodgson says savvy teams see their toggles as inventory and keep it as low as possible. And on evals, Dex is short: compound over time, eval everything, learn from past sessions.
Alice: Then: unify your forge. What's a forge?
Bob: Where the code lives. We used to send git patches around on mailing lists, and now most people keep their code in GitHub. But teams still paste Claude answers back and forth in Slack.
Alice: Guilty. I did that this morning.
Bob: Picture a kitchen where every cook keeps recipe notes in their own pocket: nobody knows why the soup changed. He wants designs and decisions brought close to the code, so you understand all the decisions that went into it.
Alice: And what can't you buy?
Bob: He thinks nobody can sell you verification of your code, because only you know how to test it. In his view, a software factory is a way of thinking about our work.
Alice: Then he turns from software to slop itself. What's this manifesto?
Bob: The Anti-Slop Manifesto, built with attendees and speakers at the conference. Its values: outcomes over outputs, understanding over speed, your own thinking over the model's first draft, better work over easier work.
Alice: And how does it define slop?
Bob: Slop is when we put less effort into producing something than we ask the consumer to spend understanding it. Using AI doesn't make something slop by itself; passing off AI output without taking responsibility for its quality does.
Alice: Why does it pile up so fast?
Bob: It's like a group chat where one person posts essays all day: writing is instant, reading still costs everyone. Producing a thousand-line pull request or a 10-page doc costs almost nothing now, while reviewing it stays fairly constant, and the next agent reads and copies the slop.
Alice: So do we still read the code?
Bob: He believes there will always be alpha in reviewing something. As models get better we may stop reading most of the code, but still review a plan, a design or a result, and how much depends on the stakes.
Alice: Sam, you look skeptical.
Sam: Daghan Altas at Semgrep argues that reviewing every change by hand is ending. He cites a Carnegie Mellon and Stanford study where pull request volume grew 3.1 times, while the reviewer pool grew 1.5 times.
Alice: So reviewers just read faster?
Sam: No. The share of pull requests with any written human feedback fell from 39 to 21 percent. It's like an airport fast lane: routine changes pass automatic checks, and only consequential ones go to a human.
Bob: That's closer to Dex than it sounds. He also calls agent reviewers, linters and verifiers very useful, but not sufficient, and Altas keeps humans on the consequential changes too.
Alice: Let's push back. Lena, you ship products. Is review even the bottleneck?
Lena: Steve Fenton at Octopus Deploy says no. His test: how many changes have passed code review but haven't been deployed and enabled for users? The further that is from zero, the less likely review is your constraint.
Alice: And how many teams pass?
Lena: In his figures, just 8 percent of teams deploy changes independently, while 92 percent deploy in batches. Speeding up the coding only adds pressure to the real bottleneck.
Bob: I think that fits Dex's forward and back pressure framing: the factory is the whole line, not just the review desk.
Alice: Another one. Whose numbers are those benchmark scores?
Bob: Fair question. Dex says the new paper builds on research his team did with the lab, and the arXiv abstract reports a lower best score than his slide. So treat the exact figure loosely; the trend is the point.
Alice: And can't you just tell the model to keep the codebase clean?
Bob: He's heard that telling one new model it owns the codebase should keep it clean, but he says he hasn't tested this yet. The paper's guidance result suggests caution.
Alice: Better instructions, same slide downhill.
Bob: Pretty much, at least until someone measures otherwise.
Alice: Time for Builder's Corner. Bob, one thing to try this week?
Bob: Pick one slop pattern you keep seeing, like those old percent-s format strings in Python, and add one lint rule for it. As Dex puts it: this exists for your language, you should use it.
Alice: One rule. Not a whole rulebook.
Bob: Right. And if your agents get feature flags, borrow Hodgson's habit: some teams add a toggle removal task to the backlog whenever a release toggle is introduced.
Alice: Takeaways?
Bob: One: a software factory is good engineering, with agents doing the building. Two: models don't maintain codebases well on their own, so know your enemy.
Alice: Three: plan where change is expensive, and let lint rules catch the rest. Four: still review the subset that matters.
Bob: And the manifesto's line: AI should make our work better, not just easier.
Alice: What's still open?
Bob: Whether telling a model it owns the codebase changes anything. He's running the benchmark on that in the background right now.
Alice: And where to draw the review line. He admits none of us has this figured out.
Bob: Altas also promises Semgrep's pilot results early next year, with a goal of fewer than 1 percent of pull requests needing a human.
Alice: That's an ambitious goal. We'll be watching.
Bob: Thanks to Dex Horthy for his talk on the AI Engineer channel. Thanks also to Adam Wiggins for "The Twelve-Factor App", and to Pete Hodgson for his feature toggles guide on Martin Fowler's site.
Alice: And to Gabriel Orlanski and colleagues for SlopCodeBench, to Daghan Altas at Semgrep, and to Steve Fenton at Octopus Deploy.
Bob: The voices are AI, and every claim was checked against those sources. And in Dex's words: give a care about what you're doing.
Alice: That's all for today on Build Wiz AI Show. Thanks for listening, and see you next time.