Why software factories fail, and the parts that work for me
By Christian Vismara ·
Software factories mostly fail for three reasons. The review step stops really reviewing. Agent output grows faster than anyone can read it, so the team stops understanding its own code. And the most important rules live in a prompt instead of in permissions, so one bad run breaks them.
The parts that held up for me are small and boring: tasks with a written definition of done, a fresh reviewer for every change that isn't trivial, and risk levels that decide what a person must approve.
I'm Christian Vismara, co-founder and CTO of Digital Kitchen. I run a software factory with Claude Code every day, and most of my rules exist because something broke once. This page covers the strongest argument against factories, what the evidence says, and what I changed after my own failures.
The main argument against lights-off factories
A detailed critique comes from Dex Horthy, the founder of HumanLayer, in an essay titled "Why Software Factories Fail, or: harness engineering is not enough". He writes from experience: his team went "full lights-off" in July 2025, and by November decided it would be easier to rewrite the code from scratch. The argument is that code quality drops when no human reviews the work, and that better tooling around the model can't fully fix it. In his words, "no amount of harness engineering or loopsmaxxing can solve what is fundamentally a model-training issue." The essay's practical advice includes a line I agree with: read the code. When he wrote it, he noted that his company sold tools in this area. I sell consulting in it too, so weigh both of us accordingly.
Engineers on Hacker News push the same way, with threads titled "Nobody has built a software factory" and "Personal software factories are a waste of time". The doubt is fair, because most published factory stories come from companies selling the tools.
What the evidence says
The evidence is mixed, and it points at review and stability rather than at raw output.
| Source | What it found | How much to trust it |
|---|---|---|
| METR, July 2025 | 16 experienced developers, on mature open-source projects they had worked on for years, took 19% longer with AI tools. They had expected to be 24% faster. | A careful randomized study, but small, and METR now marks it as out of date |
| DORA 2025 | AI adoption is linked to higher throughput but still has a negative relationship with delivery stability. | A large survey of about 5,000 technology professionals, run by Google |
| He and colleagues, 2026 | At one mid-sized software company told to double its output, pull requests per developer roughly doubled after ten months. AI-written pull requests took about 20% longer from first review to merge, and pull request volume grew 3.1 times while the number of reviewers grew 1.5 times. | Detailed data on 802 developers, but one company, and a preprint that has not been peer reviewed |
| Faros AI, July 2025 | Developers on teams with high AI adoption merged 98% more pull requests, but review time rose 91%. Across the whole data set, AI adoption went with pull requests 154% bigger and 9% more bugs per developer. | A vendor that sells engineering metrics, and the numbers show correlation, not cause |
The pattern in the last three is the same one I see at small scale: agents make it easy to produce more changes, and the cost moves to the people who have to check them.
How factories fail in practice
These are the patterns behind the failures I've hit myself and the ones other teams have reported. My own stories, with dates and numbers, are in how I run a software factory with Claude Code.
The check stops checking. A reviewer that keeps seeing your reasoning starts to agree with it. My coordinating agent sent one reviewer three rounds of its own fix notes. The reviewer approved, and the agent then pushed a commit with edits the reviewer had never seen. An agent checking its own work has the same weakness: one called a visual fix done because the computed style looked right, while the screen was still wrong. Both are why the review that clears a change now comes from a new reviewer, and why done means someone ran the path a user takes.
The setup lets agents go too far. One agent ran three phases of a plan in one stretch when I had asked it to report after the first, and two others saved their pull request text to the same scratch file. The fix in both cases was a new limit in the setup: runs that stop at phase boundaries, and a separate folder for every agent.
The rule lives only in a prompt. This is the failure that makes the news. In April 2026, the founder of PocketOS described how a coding agent deleted his production database and the backups stored on the same volume in one API call that took nine seconds, even though both the tool's rules and the project's rules forbade destructive actions. The fix is to take away the access: no production credentials in the agent's environment, a protected main branch, and destructive changes that wait for a person.
The costs show up somewhere else. Build and CI minutes grew with every agent branch, and nobody had planned for them because they never looked like an AI cost. The numbers are in what is an AI software factory.
What held up for me
None of these are clever. The fresh reviewer and the risk levels don't depend on the builder behaving well, because someone else checks its work. The last two are instructions, so they only help an agent that follows them.
Bounded tasks. Each task gets a written definition of done and its own worktree. Open-ended "improve the app" runs drift.
A fresh reviewer for every non-trivial change. It sees the change and the goal, never the builder's reasoning.
Risk levels. Quick, Standard or Critical, decided by what the change affects. Critical work gets two reviewers and my approval.
Two strikes, then read the source. After two failed attempts at the same fix, the agent stops patching and reads the real library code, data or config.
Stops at phase boundaries. Long runs report back between phases instead of pushing through to the end.
Where I agree with Horthy, and where I don't
I agree that a factory with no human review loses quality, and that reading the code is still the most important rule for anything risky. I don't run a dark factory, and I wouldn't recommend one for code that handles money, logins or personal data.
Horthy doesn't conclude that factories can't work. He concludes that the lights-off version doesn't, and his fix is to turn the lights back on: plan more up front so review gets easier, and read the code. That is close to how I work. Where I differ is how much of the code needs a person. A payment change gets two fresh AI reviewers and waits for my approval. A copy change only needs a look at the diff and at the result in the product. The skill is deciding which is which before the work starts, and that's what the risk levels are for.
Five questions to ask before you build one
Do we have tests an agent can run in minutes, on the code it will change?
Who reviews agent changes, and how many can they really check in a day?
Which actions are blocked by permissions, not only by instructions?
Which work is Critical, and does it stay out of autonomous runs?
Are we measuring review time, reverts and build minutes, or only pull requests merged?
If you can answer all five, read what is an AI software factory for the costs and the order to set things up. If review time is already the problem, the guide to comprehension debt shows how to measure it.
Frequently asked questions
Why do software factories fail?
Usually for one of three reasons. The review step stops really reviewing, so mistakes pass. Agent output grows faster than anyone can read it, so nobody understands the code anymore. Or the most important rules live in a prompt instead of in permissions, so an agent breaks them on a bad day.
How many rounds of AI review should a change get?
Set a cap. On long, detailed changes, every new review can find new edge cases, so the loop never ends on its own. I batch the fixes, run one final review with a fresh reviewer on the exact commit, and bring any open points to a person.
Do AI coding agents make developers slower?
In one well-known 2025 study by METR, experienced open-source developers took 19% longer with AI tools while believing they were faster. METR has since marked that study as out of date, and its February 2026 update says newer data gives an unreliable signal. The lasting lesson is to measure your own team instead of trusting how fast it feels.
How do you stop an agent from deleting production data?
Do not give it the access. An instruction like "never touch production" is not a control. Keep production credentials out of the agent's environment, protect the main branch, and make destructive database changes wait for a person.
Should humans still read AI-written code?
Yes, for anything risky. A person should read every change that touches login, payments, permissions, sensitive data or destructive database changes, and in my setup those changes also get two fresh AI reviews and wait for my approval. For low-risk changes like copy or styling, checking the diff and seeing the result in the product is enough.
Worried your agent setup is heading this way?
I review agent setups for small teams: where review has gone soft, which rules live only in prompts, and what it costs you in build minutes and review time. Tell me how your team works with agents today.