12 Rules for a Software Factory That Doesn't Ship Slop — Dex Horthy, Factory
Read full transcript 17 segments
-
Hi everybody. Uh I'm Dex. This is 12 Factor Factories, uh which started as a joke title, but then everyone started calling it that. So uh and the war on slop. Uh so thank you all for coming. Um I like to yap about coding agents on the internet and like a year ago we did the whole context engineering thing. Uh a lot of views on YouTube and up until about a week ago I was the CEO and co-founder at a company called Human Layer, uh the multiplayer coding agent workspace. Uh and for those of you who are blessed to not be quite as terminally online as some of us may be, we are now part of Factory, which I'm very excited about and I will be touching on during this talk. Uh but I want to get right into it. Last summer was all about this like you know three months ago feels like forever. Factories were all the hype. And I gave an intuition-based talk back in June of like we should probably still read the code and here's how RL and verifiers are working and like exactly as our friends at Google were saying you know models really like just solving the tests, just getting them to pass. Um I now have some data beyond just that intuition. There's a benchmark called Slop Code Bench which we just released actually today a bunch of new data on from the lab at University of Wisconsin.
-
But very unsaturated benchmark, you know GPT-5.5 got a 15% Astra I think scored 16.3. So like we are getting better at this, but there's a lot of a lot of ways to go. I'll talk all about that data in a sec. We of course have the study from Pharos of you know 30% of PRs merging without review, longer comments, more comments, more incidents per PR, more bugs per developer. And I I titled this talk I don't I don't think it was quite correct. I said why software factories fail. And everyone said oh Dex is the anti-software factory guy. Dex hates software factories. I actually love software factories. I'm a huge fan. The the title was probably more along the lines of you know there certain things you could do in your software factory that would cause it to fail. And here's what those things what I think those things might be, and you know, please please don't do them. Maybe the dark factory thing. But I think the main takeaway here, and I think we've heard this from a lot of folks, is software factories is just good engineering. Friend of the friend of the friend of the pod, friend of the conference, Lauren was talking about this yesterday of like a lot of this is just stuff we've been doing for a long time.
-
Actually, you know, from Factory had a really the post is much longer, but it's like the factory mindset is about how do we standardize our process, not just the output. And there's a whole bunch of stuff we'll dig into there on like how we're thinking about that. But I try to kind of make the same point, right? It's like your standard software factory is going to look something like you have some engineers, some product managers, maybe a CEO or someone to drive the vision. And those people are going to come up with stuff that we want to build, and they're going to put it in a tracker. This is again, this is pre-AI. A lot of the things we hear about software factories today were around for 30 years, right? You take stuff off the tracker, you build it, you run some unit tests, automated tests, maybe you poke it locally. When you're ready, you make a pull request. At that point, someone might pull it down, interact with it, test it. Your CI is going to run a bunch of checks and static linters, and like none of this is like that new. And if anything is wrong with it, you send it back, you go fix the problems. And when it's actually ready to go to prod, we do some canaries and rollouts and feature flags and all kinds of fun stuff there.
-
And eventually it makes contact with our users. And I love our users, I love customers, but they do like to complain about things that are broken and ask for stuff that we haven't built yet. And so that goes back to the team. And at some point something breaks at 3:00 in the morning, and the customers are the first one to figure it out. So we had monitoring so that we can wake people up at 3:00 in the morning and they can solve it before anybody notices. This is your pre-AI software factory, and the basic point is like all you need to do to make this agentic is replace someone builds the thing with an agent builds the thing. So you have orchestration. I'm not going to go into the details of the sandbox and the model and all this stuff. Um but you can incrementally build this up by adding what I'll call forward pressure. What causes work to start? Can we take all of the feature requests and just route them straight to our factory? Can we take all of the incidents that happen so that when I get paged at 3:00 in the morning, I'm looking at a pull request that we think is going to solve it, not just uh a stack trace about what went wrong? Um so the forward pressure, what causes new work to start? Uh and back pressure, which is sort of like, okay, cool. Now we can build things in minutes or hours, uh but the review and testing still takes hours or days if we're doing it in the old way. So we bring in agentic code review, agentic testing. Anyone doing agent agents code reviewing their pull requests?
-
Okay. I thought it would be a little bit more, but that's pretty good. Y'all are y'all are catching up. Um and then we invest heavily into our CI/CD and our linters and our Anyone doing like lean checks on their code, like formal verification? All right. Hardcore. I like it. Um so the back pressure. How do How do we let agents hill climb to a better outcome without needing to involve humans? How do we just overall increase the quality of what is coming out of our build step? And agents help here, but a lot of what makes software factories good is stuff we've kind of had for decades. Uh and just like context engineering, uh which was a thing that I was talking about last summer in like June of 2025, there was all these ideas of like rag and memory and state and history and all this stuff and we tried to like distill out what are the timeless things that go into building agents. Uh and so I want to distill out now some of like what I think are the timeless things that go into building and designing a software factory. Um because there's a lot of noise and hype. Uh like I said, terminally online, Twitter is going to break your brain if you uh spend too much time wondering what everyone else is doing. Um I'm also going to talk about flop uh because I have a very fun project that I've been working on with Swyx and a couple uh handful of other speakers here. Uh but we'll get to that later. Um we're going to do 12 great practices for software factories. And I think the first time I started talking about this, it was only like nine, but we are at 12 now. So I'm very excited about this. Um I touched on this, but loops was this concept that was very in vogue. I think this is much more useful if you think about the interplay of forward pressure and back pressure.
-
So, you know, again, very hyped up, but the actual tactical thing is like how do you start work automatically and how do you make sure that whatever comes out and is touched by a human by the end, all the low hanging stuff is already fixed, the outcome is as good as it can be autonomously. Uh number two, I will call know your enemy. I will still posit that unattended models don't do a great job of maintaining and improving codebase quality over time. So if we care about having a system that's going to be still maintainable in three or six months, I mean, again, I gave this talk and I said please read the code because a lot of it is slop. Agents got really good at solving one-off problems and making video games and blender slop and all this stuff. I don't think, you know, if you steer a model to fix your codebase, it can go fix your codebase. But then you have to know what is there and what you want. So if you are just hands-off pushing features into the machine, you may not find that it autonomously will make things better over time. Back then I didn't have a benchmark. Now I have a benchmark that basically has the model solve problems in checkpoints. Like a model can clone all of Excel or Redis in a couple days, maybe even a couple hours now with like agent swarms. But that requires knowing the entire problem in advance. And most of us don't write software that way. Most of us ship a feature and then ship another feature and then ship another feature. And if you're building by hand without AI, along the way you say, oh, that's a bad abstraction, we need to centralize this or we need to remove this. And so this is a benchmark that measures a model's ability to evolve a codebase over time.
-
And so Astra again is 16% very unsaturated. There's a bunch of data here. I probably don't have time to look at all of it, but we can look at code quality metrics like cyclomatic complexity, lines per symbol, the percentage of functions that have high complexity. There's more. There's 200 custom rules. 50 of them are based on things we've been doing for a while and a lot of them are custom based on looking at code that models write, comparing it to pre-AI repos. I wrote a long article about it. I've wrote a bunch. Gabe Orlanski who runs the lab that does this benchmark, just uh, put up this paper today, uh, based on some of the research we did with them. Uh, there's a bunch of stuff in here. I probably don't have time to go through all of it, but they also test the model's ability to design good libraries and interfaces. Uh, the most the craziest one here is like models did learn uh, to use exceptions instead of returning tuples in Python. Uh, there was a lot of patterns that were identified as like probably not great, uh, that were way less present in the, you know, 6 months ago models than they are in today's models. So it almost feels like we're like learn the the slop is amplifying over time.
-
Um, and Claude and GLM are now writing Python 3 in Python 2 style. So we have uh, you know, percent S uh, format strings are back and they will not use F strings by default anymore. So things to be aware of. You may not care about this. I care about this. Um, the jury's still out on Fable 4 5.2. I love reading the Anthropic uh, blog posts about like how to prompt the new models. And so the allegedly if you tell Fable it owns the codebase, it should keep it clean. I haven't tested this yet. We're running the benchmark in the background right now. Uh, but for those of us not building FBS games, shouts out to Ben. Built a cool game. Uh, you should go watch this video. It's insane. Uh, you should know your enemy. You should understand that like work with this in mind that if you need your codebase to last a long time or your codebase has been around for a long time, um, we should probably maintain understanding of the system and the code. Um, to do this, we like to plan before we build. Uh, I highly encourage this. You should do this. We used to do this before in this old software factory. People realize especially when building things took uh, hours or days and when testing and reviewing things took hours or days. Even if this part is faster, this part is probably still slow if you're doing it properly. We would have architecture review and we would have sprint planning and we would talk as a team and we would align in the hopes that we might decrease the percent chance that we'd have to rework something later. We wanted to be rather sure that we're building the right thing in the right way before we actually go and spend time building it, time and tokens, and then get to review and have to rework it. Um, a lot of people uh, uh this as well. I've overdone this for
-
sure where you spend six hours working on a spec and you're like, I feel like I could have just yoloed this. Uh because sometimes you can just yolo two sentence prompt, and if it's smaller, you don't care. There's maybe a 50% chance you send a couple more prompts, and then it's good. You could spend five hours handwriting a detailed spec, and maybe there's a 10% of it you have to change afterwards. Uh or you could write all the code by hand in 20 hours, and then there's like a 0% chance Well, there's 0% chance you have to rework it because of something the agent did. You know, people still make mistakes too. Um but I think about this in terms of expected pain. Like, how likely will this have to change later times how hard will it be to change? Uh I don't argue with the model during planning about what color the button's going to be, but I do want to make sure we get like our database schemas right and stuff like that um because that's really hard to change later. So, based on your problem and what you're doing and your code base, you should probably decide where on this spectrum you want to land. Um aligned visually I published a skill called Show Me, which is like optimized for instead of reading walls of text, you get HTML mockups, you get tables, you get charts, you get all this stuff that, you know, is optimized for uh the human brain, which is very visual. Uh we've been I think Coda said uh you know, we've been running away from predators and eating fruit for uh for millions of years. We've only been reading text for about 5,000. Uh anyways, you can get this. It's got about 40,000 installs. Um you should help agents test their work um screenshots browsers videos curl whatever you can do to help the agent.
-
Again, he'll climb against an outcome. Given an If you're building an iOS app, make sure it can build, run, and test that app in whatever environment it's running. Um you should fight slop with Anyone here writing in TypeScript? Okay. Some people are feeling lazy. I feel like it should be more than that, but um this is a repo from uh Dylan Moroy, who's a principal engineer at Cloudflare, Anti Slop. If you haven't If you're not using this, you should go check it out. It's 100-ish rules on like stopping agents from building slop. Uh Factory also has an ESLint plugin that I should probably mention. Um and also again, the So, you can go slop fork all of the uh Python code quality rules out of uh slop code bench. This This This exists for your language. You should use it. Um slop is a tool. Not all slop is bad. Vibe coding, prototypes, side projects. If you have something behind a feature flag, you just need to like figure out if people even want it, before you go put in the time. I think it's like it's great. I don't think there's like always always always always every line of code has to be perfect. You should give models a feature flagging system, post hoc or stat sig or launch darkly or whatever it is, so they can try stuff and see if it performs better and then make decisions about what the right thing to be in your tool.
-
You should compound over time, eval everything, learn from past sessions. And you should unify your forge. What I mean by this is, you know, we used to send git patches around on mailing lists. I think Linus and the Linux people still do this, but most people keep all their code in GitHub. And so before the ANA to forge, we have centralized patches, but we still have people pasting like Claude answers back and forth in Slack and hopefully like not doing too many rounds of that because it's like I copied out of mine and sent it to my coworker, he pasted it into his agent, and then they send it back to me and then I paste it into my agent, maybe we get an answer. So like centralizing all of your designs and decisions and like whatever you have in like Notion and Google Docs and whatever it is, should like you should try to bring those things as close as possible together so you can understand not just the code about what something was built, but all the decisions that went into it. You can't buy everything. I think there's things in this space that just cannot be productized. Obviously you can buy VMs or you can bring your own dev environment. I think is very personal to most teams.
-
The harness, of course, you can go get a frontier harness or you can use something minimal like open code or pie and customize the heck out of it. And then you have this control plane picture of like how do you collaborate on sessions and plans? How do you do automations and scheduling? How do you respond to events? All this governance stuff. Part of the reason I'm really excited to be working with factory on all this stuff is like they have a much bigger view of this picture and have a lot more stuff solved here. But there are parts, especially at the top here is like I don't think anyone can sell you verification of your code because only you know. If you have hundreds of engineers and hundreds of repos, you have those opinions and you know how to test your code. Not just a black box you can buy. There are building blocks that are undifferentiated, but the idea of software factory I think is a it's a way of thinking about our work. Um, so that's software factories. I also want to talk about slop. Um, it's factories are about how do we increase human leverage, right? How do we get the best return on our time? Uh, and I talked a little bit about why humans should be involved and like what it means to be a diligent steward of what we're building and what we're doing. Um, but it's I think it's bigger than just software. So I'm very excited to announce the anti-slop manifesto.
-
Um, which you can go if you go to slopmanifesto.com you can read it. I'll put their URL up later. Uh, but we built this in collaboration with a lot of people here, both attendees and speakers. Uh, special shout-out to Swyx and Philipp. Uh, it has signers from ZoomInfo and I think AI and OpenAI and like there's a lot of cool people on there. I encourage you to go read it and check it out and be a part of you know. But I'll tell you what's in it. Um, we value outcomes over outputs. We value understanding over speed. We value our own thinking over whatever the model came up with as a first draft. Um, we value better work over easier work. Um, we value improving the system over dispatching outputs. Um, and the things we believe are that AI is the most useful tool most of us have ever worked with, but it can create a like a swarm of agents can produce more work in a single day than a human can review in their entire career. Look at some of the math stuff coming out of OpenAI.
-
Um, slop is when we put less effort into producing something than we ask their consumer on the other end to spend understanding it. Um, and using AI doesn't necessarily make something slop, um, but it happens when we pass off AI output without taking responsibility for its quality or for the reader's experience. Um, I believe strongly and been saying this for a year now, AI cannot replace human judgment. It can only amplify our judgment or maybe perhaps our lack of judgment in certain cases. Um, and the slop is asymmetric. Um, the cost of producing a thousand-line PR or a 10-page doc is approaching zero, but the cost of reviewing it is still fairly constant. And slop proliferates when we repeatedly work around problems instead of solving them correctly. It comes from tools that love to add and are not biased towards subtracting. Um I'm not going to name names. But I I think a lot of slop comes from pressure. Companies are pushing their people to redefine what is humanly possible.
-
And I think slop compounds. So the more slop sits in our knowledge base, in chat, in code, the more of it the next agent reads and copies. And the more slop flying around our team, the more we lose the will to fight it and everything gets worse over time, communication and quality and all of this. So as the we the undersigned of the anti-slop manifesto, guys, is it a little hot in here? I might just have to pop off the jack. There we go. They couldn't give me one of these with a factory logo on it yet, but I'm sure it's coming soon. Thus we the anti-slop undersigners resolve that human time and attention is incredibly valuable. So we optimize for using it wisely. We fight slop because AI should make our work better, not not not just easier. We optimize our systems and tools and products for the efficient elicitation of human intent and for efficient human understanding. And we do our own thinking when working with a model. We explore resources, code, prior art. We really want to understand the problem before we actually get to work.
-
And we own the intent and the taste and the consequences of what we ship. However much AI helps us to make it, we own it. And when an agent wrote something that we're sending somebody, we make that clear and we actually make sure it's good before we drop it in Slack or email or whatever it is. And when someone sends us slop, this is also like we have to we have to push back. We have to tell people, you know, kindly and empathetically, and then ask them to like review it first. And most of us it's a journey. I've been I've been on both sides of this one. So I've had to have that note. I believe there will always be alpha in reviewing something. As models get we may stop reading most of the code. Uh, we may still review a plan or a design or a result. But if you don't review anything, if you bring nothing to the table, no thinking, then you're just going to get the same AI output as everybody else. Um, agent reviewers, linters, verifiers, they're very useful, but they are not Excuse me. They are not sufficient. So for now, we'll still review some subset of the outputs. Uh, what subset, of course, depends on the stakes. Um, but what shipped, who's using it, and how it's helping them matters far more than lines of code or PRs merged or, God forbid, the number of agents we're running in parallel. Uh, it's cool if it gets you to the outcome. Um, but unreviewed output isn't always necessarily bad. You know, slop is a cool one-shot prompts. Um, vibe coding, these are all like high-leverage things that are in the right place. Slop is bad when it undermines our outcome. If we want to make a good product, a maintainable system, we want to save people time and energy uh
-
if slop undermines that, then it's bad. Uh, and I guess finally, like none of us has this figured out. Uh, we're each relearning what we will and won't accept, and there's no single right answer here. You got to calibrate yourself. Um, the world moves fast. Um, my goal here is these are principles that we can use to embrace our important human role in harnessing AI safely, responsibly in a way that creates value for everyone, um, for many years to come. So you can read and sign the manifesto at slopmanifesto.com. Um, TL;DR, uh, you know, give a Care about what you're doing. Um, I'm going to stick around for Tariq's talk, but then, uh, what is that slide? All right, I'll be hanging in the hallway afterwards. Um, just come say hi. Uh, keep learning, keep giving a Uh, I'm excited to keep building with you all. Thank you so much.
Summary
This talk explores the concept of software factories and the integration of coding agents into standard development workflows, drawing on data from benchmarks like Slop Code Bench and studies on automated pull requests. Key references include insights from Google, University of Wisconsin labs, and the speaker's own background with Human Layer and Factory. The practical takeaway is that successful software factories rely on standardizing processes and balancing forward pressure—such as automated feature and incident routing—with robust back pressure like agentic code review and strict CI/CD checks.