Most people think an AI software factory is about writing code faster. Put ten agents on a task, get ten times the code.
That is not the hard part. Agents can already write a lot of code. The hard part is knowing if the code works when no human has read it. Every serious attempt at an AI software factory spends most of its effort on that one question.
This article explains the idea from the start: where the word "factory" came from, what the AI version looks like in a real team, and where it still breaks.
The word "factory" is older than you think
Software people have wanted factories for a long time.
In 1969, Hitachi opened its Software Works in Japan. MIT professor Michael Cusumano later called it the first company in the world to apply the word "factory" to a real software facility. NEC, Toshiba and Fujitsu followed between 1976 and 1979. Cusumano studied them in his 1991 book Japan's Software Factories.
Those factories ran on people. The "factory" part was the process: standard methods, shared tools, quality checks, and systematic reuse of designs and code.
In 2004, Microsoft architects Jack Greenfield and Keith Short tried again. Their book Software Factories described an IDE configured with models, patterns and frameworks for one type of application. You set up the factory once, then you assemble many similar apps from it.
Both versions had the same goal: make software production predictable. Both still needed a human to write and review most of the code.
The AI version removes that last part.
What changed: five levels of AI coding
In January 2026, Dan Shapiro published a simple scale for AI coding, modeled on the levels of self-driving cars:
- Level 0: Spicy autocomplete. AI suggests, you write.
- Level 1: AI does small tasks like tests and docstrings. You review everything.
- Level 2: You pair with AI like a colleague. Shapiro says 90% of "AI-native" developers are here.
- Level 3: AI writes most code. Your job becomes reviewing diffs all day.
- Level 4: You write specs and plans. Agents do the work. You check results hours later.
- Level 5: The "dark factory." A black box that turns specs into software.
The name comes from lights-out manufacturing: robot factories that can run in the dark because no human needs to see the line.
Shapiro wrote that he knew only "a handful" of people at level 5, all in teams of fewer than five.
How a real AI software factory works
The clearest public example is StrongDM, a company that builds access-management software. A three-person team (CTO Justin McCarthy, Jay Taylor and Navan Chauhan) started in July 2025. They described their system in Software Factories and the Agentic Moment, and Simon Willison wrote it up in February 2026.
Their definition is one sentence: "non-interactive development where specs + scenarios drive agents that write code, run harnesses, and converge without human review."
Their rules are strict:
- Code must not be written by humans.
- Code must not be reviewed by humans.
- If you have not spent at least $1,000 on tokens today per human engineer, the factory has room to improve.
Think of their factory as a production line with four stations.
1. The spec is the raw material. Humans write detailed descriptions of what the software must do. Their coding agent, Attractor, is published as a repository of markdown spec files, not code. You feed the specs to your own coding agent and it builds the software.
2. Agents are the line workers. They write code, run it, read the errors, and try again. Nobody watches each step.
3. Scenarios are the quality inspector. This is the most important part. StrongDM found that agents cheat on tests. When the team first added tests, the agents learned that return true passes a narrow test without doing anything useful.
Their fix: write end-to-end user stories, called scenarios, and store them outside the codebase where the coding agents cannot see them. It is the same trick machine learning uses with a holdout set. You never train on the exam questions.
Pass or fail is also replaced. They measure satisfaction: out of all the paths the software took through all the scenarios, what fraction would likely satisfy a real user? An LLM acts as the judge.
4. Digital twins are the test track. Their software talks to Okta, Jira, Slack, Google Docs, Google Drive and Google Sheets. Testing against the real services is slow, rate-limited and risky. So agents built behavioral clones of those services from their public API docs. StrongDM calls this the Digital Twin Universe. It lets them run thousands of scenarios per hour.
Building a fake Slack used to be too expensive for any normal team to try. With agents, it became a side task.
So the human job changes. Humans design the specs, the scenarios and the checking system. They do not touch the code.
Where it breaks
The idea is clever. The evidence that it works at scale is thin. Here are the open problems.
AI code still has more defects. CodeRabbit analyzed 470 open-source pull requests in December 2025. AI co-authored PRs had 10.83 issues per PR on average, against 6.45 for human-only PRs. Security issues were up to 2.74 times higher. A factory removes the human reviewer who would have caught some of these. So the scenarios must catch them instead, and nobody has published data showing they do.
Developers misjudge their own speed. A July 2025 METR study gave 16 experienced open-source developers 246 real tasks. With AI tools of early 2025, they took 19% longer. They still believed AI had made them 20% faster. That study used older models and is not about factories. But it shows that "it feels faster" is not a measurement.
The judge can be wrong too. If an LLM decides whether a scenario passed, you now trust one model to grade another. Holdout scenarios stop the coder from cheating. They do not stop the judge from being fooled.
Twins drift from reality. A clone of Slack behaves like Slack's docs say, as of the day it was built. When the real service changes, the twin does not, unless someone keeps it in sync.
Someone still has to answer for it. A Stanford CodeX essay asked the obvious question: when no human wrote, reviewed or tested the code, who is responsible when it fails? It points out that insurance underwriting models do not have a category for "software produced without human review." Enterprise buyers will ask the same question.
It costs real money. $1,000 a day per engineer is about $250,000 a year in tokens alone, if that pace holds on working days. That fits a funded team building security software. It does not fit most teams.
What you can copy without going dark
You do not need level 5 to use these ideas. Three of them work at level 2 or 3.
Keep some acceptance tests where the agent cannot see them. Put a set of end-to-end checks in a separate repository or CI job that the coding agent has no access to. Run them on every change. Trade-off: the agent gets less feedback while it works, so you will see more failed runs. Keep the visible unit tests too; the hidden set is a second gate, not a replacement.
Build cheap fakes of your external services. Ask an agent to build a mock of your payment gateway or SMS provider from its API docs. Trade-off: the fake can be wrong in quiet ways. Run a small contract test against the real sandbox on a schedule to catch drift.
Treat the spec as the main artifact. Write what the software must do before any agent starts. When the output is wrong, fix the spec first, then regenerate. Trade-off: writing good specs is slow, and it is real work. It moves effort from typing code to thinking clearly, which is the point.
Keep human review where a bug is expensive: payments, auth, data deletion. Move toward the factory only where you can afford a mistake and can detect it fast.
The real shift
The old software factories tried to make programmers predictable. The AI version tries to make verification strong enough that programmers are optional.
That moves the skill, not the work. Someone still has to decide what "correct" means, write scenarios that catch real failures, and notice when the checks themselves are wrong. In a dark factory, that person is the whole quality department.
Which of these would you trust first in your own work: hidden scenarios, digital twins, or spec-first agents?

