If you work in a software development organization, chances are that someone in it is currently trying to build a software factory. There’s also a decent chance—not guaranteed, but well above zero—that when building one, they’re going to repeat someone else’s mistakes.
Fortunately, by now enough companies have attempted to build a software factory that there’s an increasing number of blog posts and videos with some sort of “lessons learned” or “what didn’t go well” component. So I figured it would be interesting to collect them and see what kind of common themes emerge.
Altogether, after filtering out AI blog spam, I found 16 posts and videos that looked like genuine internal attempts that involved substantial backtracking, pivoting, or even abandoning a software factory. All of them are listed in the “References” section at the bottom of the post.
Though each one contained some interesting tactical problem-solving, after reading/watching all of them, I think there are several directions that can be safely called “dead ends”—at least, for now—plus one common tactical mistake.
Dead end #1: Trying to go directly from ticket to PR without human input
Many orgs in these posts started with the dream of automating everything. For example, Islo (post) and MadeWithLove (post) both started out with the agent picking up tickets or GitHub issues and generating PRs from them. Atlassian (post) even tried giving the agent an entire PRD with its mockups, and Cursor tried one-shotting a new browser (post).
All of them ran into similar problems:
Agents made wrong assumptions and boldly carried on. The resulting PRs made developers shake their heads.
Agents ran into design problems and just kept hammering at them or taking shortcuts instead of stepping back and re-evaluating.
Midway through implementation, agents made consequential technical decisions that humans later disagreed with.
The ticket was marked “Done” and all tests passed, but the result wasn’t what the product manager wanted.
Some of them (e.g. Atlassian) ended up going back to humans refining the tickets themselves. Others (e.g. Logicstar in their post) ended up giving agents the ability to raise a hand and ask for a human.
My thoughts: Much of this trouble can be avoided with a bit more thorough upfront refinement and design review where a human and an agent collaborate on stress-testing and refining the design. Dex Horthy at Human Layer seems to come to a similar conclusion in his software factory retrospective as well.
Alternatively, a number of people (e.g. Liz Fong-Jones in this interview or Vladimir Petrov in this one) reported successes fully automating just the simple tickets: simple QA findings, simple production bugs, simple features. This also matches my personal experience with ServiceTitan’s internal bug fixer.
Dead end #2: Trying to replicate humans
Broadly, this involved trying to replicate how humans work, but with agents: setting up long-lived persistent agents with “personas” (e.g. this interview, starting at 6:46), having agents discuss the designs in chat, or having the agents maintain a task board in Linear or Jira and pick up agent-created tickets (e.g. Tejas Kumar).
Although not everyone whose post I’ve read was unhappy with this setup—e.g. the author of this one seemed OK with it—overall, persistent agent personas seemed to cause more trouble than they were worth.
The main problems were:
Agents tended to waste too much time and too many tokens talking to each other, arguing, or trying to come up with decisions (Vladimir Petrov). Anecdotally, I’ve heard similar feedback from devs who’ve tried this setup.
When overloaded with work, persistent agents sometimes ended up dropping the task at 80% done and switching to another one, and then dropping that task. (ClimateAligned)
When given access to a task board, agents sometimes created junk tickets for work that’s not needed and then spent time working on them. (Tejas Kumar, Logicstar)
Some long-lived agents started having opinions that really got in the way, avoided blame, or hogged resources (Owen Parker).
From personal experience, long-lived memory can get polluted with stale memories that aren’t cleaned up and end up influencing future work.
What worked instead: Many of the orgs, like MadeWithLove, Logicstar, and Calliope AI, eventually seemed to settle on building workflows where each step was performed by a new instance of an agent with a specific prompt, context, and level of access for that step. Typical workflows had steps like planning/research/triage > implementation > reviews > review fixes > PR.
Dead end #3: Never reviewing the code
Several orgs have tried to skip or cut down on code reviews, or at least, delegated too much decision-making to the AI. All of them reported problems:
Human Layer experience: “You find at least one issue gnarly enough that the agent can’t solve it […] Eventually you have to suck it up and go dig into the codebase you stopped reading three months ago, trying to figure out what’s broken. And in the meantime: Your site was down, your users were pissed.” “By the ~third time in november, we decided it would be easier to rewrite from scratch”. Their eventual solution was to do more upfront design and review all code changes.
Atlassian found: “Undesired product behavior showed up late”, “major decisions were being made without the entire eng team involved, PR reviewers either struggled to understand the change or proposed different designs” and “we were still discovering the domain while the agent built it, not before”. Their solution was to do more upfront design with the entire team.
Tejas Kumar: “The agents work, and when something needs me they do keep track of it. Then they just ask me. And I have absolutely no context.”
Owen Parker, Arkana Labs: “My agents had been building a system of case law, with mechanically-enforced “fences” (denials) for nearly every ruling. […] Before too long, no work was legal, and my factory just stopped working.”
My thoughts: The need to closely review the agents’ work broadly matches my experience. Even with upfront design and using the latest frontier models, sometimes I catch the agents trying to overcomplicate the DB tables or introduce in-memory caching that would inevitably cause an out-of-memory exception. So some level of review is still required.
That said:
These days, almost all simple tweaks, bugfixes, or QA findings come out perfect the first time. So there’s probably room for some sort of risk-based PR auto-approval.
If enough guard rails and review checks are added over time, I can see maybe more PRs being auto-merged.
You can also stay in touch with the codebase by just browsing through it looking for things to clean up after the fact—and then set up review checks to avoid those issues in the future.
So “staying in touch with the codebase” doesn’t necessarily have to mean “review every line of code”.
Common tactical mistake: Not giving agents enough tools or context
In Logicstar’s post, the author noted that at first the review agents tended to find problems that were already being addressed in other tickets or were dismissed in other review threads. Similarly, in Islo’s post, they found that the agents needed to have access to all relevant repos to be able to e.g. check for open PRs that implement another part of the same change or be able to verify that the change doesn’t break other parts of the codebase.
And for bug fixing, from personal experience, agents became much better when I gave them read-only access to our infra and to the production logs.
This means that for maximum effectiveness, the agents would ideally need:
Access to all relevant repos, their PRs, and their histories.
All the tools needed to build and test, including anything for complete end-to-end test runs like Docker Compose, a browser, a mobile emulator, or maybe even the ability to set up throw-away QA environments.
Access to tickets in Jira/Linear/whatever, together with any instructions for where to find various types of tickets.
Any relevant product documentation or architecture decisions for reference.
Logs or read-only infra access for bug troubleshooting or verifying specific behaviors.
However, if you go that route, you get a new problem: now every agent invocation needs to spend five minutes installing all the tools and cloning all the repos. That’s OK for a long-running fire-and-forget coding session, but if you’re looking for interactive Q&A with the agent, fast answers to Slack questions, or fast turnarounds on code review comments, you’d need to find a way to (1) start with all the repos checked out and tools installed, and (2) preserve the workspace between the agent invocations.
Which means that you’d need to switch from something like GitHub Actions to agent sandboxes and snapshots on something like E2B or Vercel, or roll your own equivalent.
What does this leave us with?
Now that we know what a software factory shouldn’t look like, we can sketch out what could work:
Agents would work in sandboxes with all the necessary tooling, repos, and MCP/CLI connections to the necessary information. The sandboxes would be built on top of a periodically rebuilt “base” snapshot that would include recent main branches of all repos with all dependencies downloaded and all tools installed. When the initial coding is done, the sandbox could be stopped and then restarted in response to code review comments or other inputs.
For simpler tickets, the agent can be just spun up automatically, do the initial review/planning/investigation, come up with a plan, review and fix the plan, then implement, review and fix the implementation, and make the PR. A risk-based classifier could auto-merge the PRs that don’t need attention.
For complex work, a human would need to do some refinement, analysis, and possibly upfront design, likely in collaboration with the agent. This would produce artifacts that would need to be stored in a place accessible to the coding agent later. Then, with the agent’s help, the work could be broken down into PRs or implementation phases, implemented, and deployed to some sort of QA environment for a human to validate. Or, in more advanced cases, agents could record a video of themselves validating the work.
Humans would still need to review and approve complex PRs, but there are tricks to make it easier, like better descriptions or splitting the PRs into small commits.
To start, only a human could judge which tickets are “simple”, but eventually there could be some sort of automated classifier agent.
For simple production bugs, agents could monitor the metrics or the logs; if they see an error, they could auto-create the fix. If the fix is simple enough and meets the risk threshold, it could be auto-merged as well.
Humans would still need to regularly review the code and tweak the factory.
References
Atlassian: From Prototype to Production: Lessons Learned Taking AI-Built Software to Enterprise Scale
ClimateAligned: Three Weeks With AI Agents: The Honest Take
MadeWithLove: Owning the software factory
Tejas Kumar: AI Software Factories Were a Mistake: We’re Not There Yet
After the Last Engineer interview [YouTube]: Your Job Was Never to Write Code | Vladimir Petrov
Spotify: Background Coding Agents: Predictable Results Through Strong Feedback Loops
Honeycomb [YouTube]: Liz Fong-Jones: 2x the PRs, 1.5x the Incidents
Calliope AI: What we learned building our internal Calliope AI Software Factory
Seclai: Our AI Coder and Reviewer Were Right. We Threw the Pull Request Away Anyway
Logicstar: Stopping the Wrong Work Early
CTORescues: My AI dev team shipped 27 pull requests in nine days. Here’s what it got wrong.
Yegge.ai: Seats and Sunsets
Human Layer: Why Software Factories Fail

