What Is a Software Factory?
Definition
A software factory is an organised, repeatable system for producing software, in the way a manufacturing plant produces goods. Software isn't built as a one-off craft project each time. Instead, the factory uses standard processes, reusable components, tools and quality checks, so that output is predictable in quality, cost and speed.
The term has meant different things over the last 55 years, but the core promise has stayed the same: turn software development from a craft into a production system.
What has changed is who does the work on the production line:
| Era | What "factory" meant | Who does the work |
|---|---|---|
| 1968–1990s | Standard processes, reuse, measurement, tooling | Large teams of human programmers |
| 2000s | Domain-specific models, frameworks and code generators | Humans, with tools generating parts of the code |
| 2017–today (DevSecOps) | Shared platform, CI/CD pipelines and security built in | Small human teams on a heavily automated pipeline |
| 2025–today (AI) | Coding agents that take work from a queue, build it, verify it and ship it | AI agents, with humans setting direction and holding trust |
Each example below has a fuller write-up, with results and tooling, in case-studies/.
A short history
Origins: 1968
- Bob Bemer, working at General Electric, is usually credited with first proposing a "software factory" in 1968. (Bob Bemer on Wikipedia)
- In the same period, Doug McIlroy at AT&T argued for systematic reuse of software components (often called "mass-produced software components"). That idea of building from reusable parts runs through every later version of the factory.
Japan's software factories: late 1960s to 1990s
The idea was put into practice at scale in Japan, not the US.
- Hitachi is described as the first company to label a software organisation a "factory", in 1969.
- NEC, Toshiba and Fujitsu launched their own factories in 1976–1977. Toshiba's version is documented in papers by Yoshihiro Matsumoto (1981, 1987) and is often used as the representative Japanese model.
- In the US, System Development Corporation (SDC) ran a factory in 1975–1976 but let it lapse by 1978. Its ideas had more influence in Japan than at home.
- Japan also ran a national programme from 1976, in which 17 firms formed a joint corporation to build an automated software factory system.
- What worked: standard methods, reuse libraries, tools, careful measurement of quality and productivity, and centralised management. These factories produced large systems (banking, telecoms, industrial control) with low defect rates.
- What didn't: they were good at producing variations of known systems, but weaker at new, innovative products.
Key reading:
- Michael Cusumano, Japan's Software Factories: A Challenge to U.S. Management (1991). Oxford Academic
- Cusumano, MIT working paper on the factory approach. MIT DSpace (PDF)
- Cusumano, "The Puzzle of Japanese Software", Communications of the ACM. CACM
Microsoft's software factories: 2004
- Jack Greenfield and Keith Short, architects at Microsoft, published Software Factories: Assembling Applications with Patterns, Models, Frameworks, and Tools (Wiley, 2004).
- Their idea: for each kind of application (a "product line"), build a factory made of domain-specific models, patterns, frameworks and code generators. Developers then assemble apps from those parts instead of hand-writing everything.
- It influenced model-driven development and Visual Studio tooling, but the heavy up-front investment limited adoption.
Key reading:
- Jack Greenfield, "The Case for Software Factories" (2004). Microsoft Learn
- The book's site. softwarefactories.com
US military software factories: 2017 to today
The US Department of Defense used "software factory" to mean an in-house organisation running a modern DevSecOps pipeline, so that it could ship software in days instead of years.
- Kessel Run (US Air Force, 2017): set up after a troubled rollout of the Air Operations Center 10.2 system. Airmen and commercial partners worked together using agile and continuous delivery. kesselrun.af.mil · MIT case study (PDF)
- Platform One (US Air Force): provides shared tools, CI/CD DevSecOps pipelines and a hardened Kubernetes platform that other teams build on. GovCIO
- Other branches followed, including the Army Software Factory and the Marine Corps Software Factory (2023). FedTech · DefenseScoop: "Software Factory 2.0" (2026)
- What worked: much shorter time from idea to production, and security approval built into the pipeline instead of a months-long manual sign-off.
- Lesson: the platform, the pipeline and the trusted automated checks are what made speed possible. Kessel Run has since said it no longer thinks of itself as a factory but as the team that delivers one system. The factory model is a means, not the product.
AI software factories: 2025 to today
Coding agents can now take a ticket and produce a working, tested pull request. So "factory" has come to mean a system where agents do the production work and humans design the system and decide how far to trust it.
-
Dan Shapiro's five levels (January 2026). A widely shared scale of AI autonomy in software: 0. Manual: humans write all the code.
- Assisted: AI handles small tasks like tests and docstrings.
- Pair programming: AI as a working partner.
- Human in the loop: AI writes most of the code; humans review every diff.
- Spec-driven: humans write specs and plans, agents run for long stretches, humans check results.
- Dark factory: specs go in, software comes out, no human in the process.
-
StrongDM's software factory (2026). This is the most cited example of a level 5 "dark factory" in practice. Its two rules: code must not be written by humans, and code must not be reviewed by humans. Trust comes from:
- Scenarios: end-to-end user stories kept outside the codebase, where the coding agents can't see them, much like a holdout test set in machine learning.
- Satisfaction scores: instead of pass/fail, they measure what share of runs through the scenarios would likely satisfy a user.
- A "Digital Twin Universe": behavioural clones of the services they depend on (Okta, Jira, Slack, Google Workspace), so thousands of scenarios run per hour safely and cheaply.
- The cost is real. Their own benchmark is about $1,000 of tokens per engineer per day.
factory.strongdm.ai · Techniques · Attractor (their agent harness) · Simon Willison's write-up
-
Lauren Tan at SpaceX AI (2026). Lauren Tan ("poteto") works on the Grok Bot client and previously worked on the React Compiler. In an AI Engineer talk (November 2026) she described what is in effect a personal software factory:
- Scale: she shipped about 3,000 PRs to production in a month. Her team shipped about 11,000 PRs in a month, with roughly 0.5% reverted, and cut a stable release about once a day. About 227 people contributed at least one PR in October, many with little context. Her own review load went from about 3 PRs a day in 2024 to nearly 300.
- The "trust pyramid": trust comes mostly from the bottom layers, not from instructions to the agent. From strongest to weakest:
- A clean codebase with good API design and architecture. Agents copy existing patterns, bad ones included, so old anti-patterns get removed.
- Static analysis: lint rules, types, compilers, tests.
- Verification of the running software.
- Prose rules and
AGENTS.mdfiles, the thinnest layer.
- Turn every correction into a deterministic check, not a new prose rule. Risky patterns are banned by lint, e.g.
useEffectin product code, imports across Electron processes, and nearly all code comments (agents use them to justify shortcuts). - Verification gets most of the token spend. Agents drive the running app through the Chrome DevTools Protocol, guided by a feature map. The team also uses property-based UI tests, TLA+ model checking and Lean proofs. A separate project fuzzes each build and auto-merges fixes for the bugs it finds.
- Humans review evidence, not diffs: videos, screenshots, diagrams and proofs. Most product code "no longer really requires deep human review".
- Fix the inner loop before automating it: "if your inner coding loop produces slop, then automating that loop just produces more slop." The team spent about six months on the agents' environment before the volume came.
- She also published pstack, an open-source set of agent skills.
Caveats: these figures come from secondary write-ups of the talk, not the recording itself, and sources differ on her personal monthly number (2,000 to 4,000). TeamDay: 11,000 Agent PRs a Month, 0.5% Reverted · INSIDE (Chinese): the trust pyramid · The New Stack: agentic verification · Talk transcript summary (SozAI) · AI Engineer on YouTube
-
Addy Osmani, "Software Factories, Light and Dark". A factory is many agent loops running in parallel, fed by a work queue and drained through review gates into production. A dark factory ships code no human has read; a lit factory keeps humans where judgment matters. His key points:
- Verification, not generation, is the real constraint.
- Let autonomy grow only as far as you can cheaply and reliably verify.
- Watch for "comprehension debt": more code exists than anyone understands.
- Humans move upstream (product, design, architecture) and downstream (approving high-stakes changes) rather than leaving.
Software Factories, Light and Dark · Comprehension debt · Own the outer loop
-
Commercial products:
- Factory sells "Droids", agents that work from Linear, Jira, Slack and the CLI. It frames autonomy as something each organisation adopts gradually. Factory: from coding agents to software factories · What is a software factory?
- Cognition's Devin: Cognition reports its internal Devin PRs grew from 154 in its best week of 2025 to 659 per week by early 2026. These are self-reported figures.
-
The sceptical view. Removing people without independent verification can just mean shipping shared blind spots faster. As agents write more code, the bottleneck moves downstream into review, testing, security and deployment. Qodo: What is a dark software factory? · Stanford CodeX: Built by Agents, Tested by Agents, Trusted by Whom?
The name "dark factory" comes from lights-out manufacturing: plants that run with no humans on the floor, so the lights can be off.
Lessons from every era
- Standard process comes first. Every successful factory, from Hitachi to Kessel Run, started by writing down and standardising how work is done. That is why this project starts with CONVENTIONAL-SDLC.md.
- Reuse is what makes output cheap. Libraries, frameworks, platforms and, now, skills and prompts for agents.
- Trust comes from verification, not from the producer. Japanese factories measured defects; DoD factories built security approval into the pipeline; StrongDM uses hidden scenarios; Lauren Tan's team turns every correction into a lint rule and spends most of its tokens on verification. A factory is only as autonomous as its checks are trustworthy, and deterministic checks earn more trust than written instructions.
- Factories are best at known shapes of work. Japan's factories excelled at variations on known systems. AI factories today are most reliable where the work is well specified and cheap to verify.
- Humans don't disappear; they move. They set direction, design the system, write the specs and decide where trust is earned.
The vision and goal of this project
Nature of the project: this is an R&D project. The aim is to research and build, and to learn what works by doing it. There is no business model or monetisation plan yet, and that is deliberate for now: decisions are made for what we can learn, not for what we can sell.
Vision: a software factory that builds software end to end with as little human involvement as possible. Not by removing humans blindly, but by building trust into the process and the system, so that each step a human used to do is handed over only when there is evidence it can be trusted.
Goal: design and build that factory, in stages:
- Map the conventional process. Write down every phase, element and human gate of how software is built today. (Done: CONVENTIONAL-SDLC.md.)
- Define trust. What evidence lets us trust a step without a human checking it, how we measure it, and what levels of autonomy a step can be at (in the spirit of Shapiro's five levels, but applied per step, not to the whole factory).
- Map the factory process. For each element of the conventional SDLC, decide what replaces it (agent, tool, automated check), what makes it trustworthy, and where a human stays.
- Design the architecture. The agents, tools, queues, verification systems and records that make up the factory.
- Build it and raise autonomy step by step. Start "lit", with humans at every gate, and turn the lights off one gate at a time as each one proves itself.
What success looks like: an idea or ticket goes in, and working, tested, documented, deployed software comes out. Every decision, tech debt item and trade-off is recorded along the way, and a human steps in only where the factory itself says the evidence isn't strong enough yet.