Why Software Factories Fail — Dex Horthy, HumanLayer
Talk notes · AI Engineer ·A close reading of the source at ai.engineer (also youtube.com): what it says, what it means for someone who builds with AI, and which claims are the publisher’s own.
Software FactoryCoding AgentsAI AgentsBenchmarks & LeaderboardsAgent HarnessVibe CodingOpenAICognition (Devin, Windsurf)
Problem
Dex Horthy (co-founder of HumanLayer, which builds an AI IDE and collaboration tool for coding agents) argues that the "lights-off" software factory fails: one where nobody reads the code and the answer to every problem is more tokens and more loops (0:00). He says the cracks are visible. Mario (a speaker at AI Engineer Europe, per Horthy) asked people to slow down because companies are having outages from coding-agent mishaps. A Faros AI report he cites says that since teams adopted AI coding tools in early 2026, review quality is down, comments are longer, many PRs merge with no review, and incidents and bugs per developer are up (0:00). He does not give the report's numbers.
His thesis: this is "not a skill issue". No amount of harness engineering or loop-writing can fix what is, in his view, a model training problem (2:15). He is talking about complex, long-lived codebases (he says agents start to struggle after about three to six months of fast shipping), not vibe-coded side projects (6:32, 7:56).
He also tells it from experience: in July 2025 HumanLayer "went full lights off", then hit a bug the agent could not solve, had to dig into a codebase it had stopped reading three months earlier, while the site was down (7:56).
Approach
Why models cannot maintain code, as he explains it (9:17 to 13:29):
- Claude Code won, he says, because it was the first time a lab trained a model against the same harness it ships to users. He cites an OpenAI talk that a harness builder who cannot train the model will always be behind someone who owns both (9:17, 10:40).
- Coding reinforcement learning works like this: give a problem, sample many attempts, score them, make good behavior likelier. In SWE-bench-style tasks (about 15-minute fixes in open-source repos) the reward is binary: the new test passes and the old ones still do (10:40, 12:03).
- Nothing in that reward punishes poor design. He points to needless try-catch blocks and casts added just to turn the tests green (12:03).
- Checking maintainability is far harder than checking that tests pass, because bad architecture shows up months or years later, and that reward is hard to send back to the training episode (12:03, 13:29).
- He says better benchmarks are starting to appear and names SWE-Marathon (about 400-hour tasks), DeepSWE and Cognition's Frontier Code, which penalizes tests that do not fail on the unpatched code and uses a judge model for code-quality rules. His objection: a judge cannot be much better than what the model already knows, so review agents and more tokens "raise the floor" but only so far (13:29).
- He also says he cannot prove the models are no better at maintainability than before; there is no good benchmark for it, only the shared feeling that agents make codebases worse over time (9:17).
What to do instead: turn the lights back on (14:48 to 17:31). Small tasks still go straight to an agent. For bigger ones, plan up front so review is short, in four steps: product review (the problem, desired behavior, mock-ups); system architecture (component contracts, data models, constraints); program design (types, method signatures, layout, call stacks; he credits Cloudflare's Dylan Mulroy for call-graph planning); and vertical slices (order of implementation, multi-repo coordination, checks along the way).
Lessons learned
- Horthy: "thirty minutes over here in pre-planning and alignment can save you hours in review" (16:09). It makes reading every line feasible.
- If you are drowning in PRs, you have too many bad PRs; a good PR "is a joy to review" (16:09). Even 20% rework is a burden on both reviewer and author (16:09, 17:31).
- Use AI to make alignment and planning faster, and keep owning the code (17:31).
- Keep loops, but treat the constraints as engineering problems; his closing line is to "go solve hard problems in complex codebases" (17:31).
- Evidence caveats: the benchmark and Faros claims are cited, not shown; the training-incentive account is his reasoning, not a published result. He sells HumanLayer, which he plugs at the end (17:31). His own experience (the July 2025 outage) is one team.
- He allows a future where this is solved, "if you want to just keep YOLOing prompts until you get to GPT-7" (14:48).
Theme
Group: AI Coding & Software Factories. This is the earlier, five-month-older version of the argument in Horthy's later talk, "12 Rules for a Software Factory That Doesn't Ship Slop" (card), where he adds Slop Code Bench, lint rules and the "expected pain" idea; this one gives the reason (training incentives) and the planning-up-front remedy. He agrees with Matt Pocock (card) that checks can lie and review stays, and with Manish Kapur and Addy Osmani (card) that verification limits a factory. He opposes the dark-factory direction of Walden Yan (card), whose Cognition reports 40x merged PRs with agents shipping by default, and Quinn Slack (card). Armin Ronacher (card) shares his point that attention and understanding are the limit.