A software factory is a repeatable loop that turns a ticket into a tested pull request using an AI coding agent. A person approves the merge. The factory is the loop, not any single tool inside it.
Since early 2026 the term describes how a team runs AI coding agents, not which agent it runs. The phrase is older, though, so this guide covers the current meaning, the older ones, the six parts of the loop, and what a factory is not.
The 2026 meaning and the older ones
Bob Bemer used "software factory" in a 1968 paper, asking whether programming could be organised like manufacturing. In the 1970s and 1980s several large Japanese firms ran organisations they called software factories, built on process, reuse and measurement. In 2004 Jack Greenfield and Keith Short published a book on model-driven development under the same name.
The US Department of Defense uses it a third way. There it means an organisation: a team, a secured DevSecOps platform and a continuous authority to operate. AI writing the code is not required. If you search the term and find uniforms, that is the meaning you landed on.
The 2026 meaning grew out of coding agents that can hold a task from start to finish. Once an agent can read a ticket, edit a codebase, run tests and open a pull request, the question stops being what the model can do. It becomes what loop you put it in. Addy Osmani describes a factory as harnessed agent loops run at scale.
The six parts of the loop
Every working factory has the same six stations. Remove one and the loop stops or becomes unsafe.
- A ticket with acceptance criteria. Work enters from the board your team already uses. The criteria are the specification, so a vague ticket gives a vague pull request.
- An agent with project rules. The agent reads the ticket, the codebase and a rules file kept in the repository: conventions, test commands, areas it must not touch.
- An isolated run. Each task runs in a fresh environment, such as a CI runner or container, never on a laptop. It holds only the credentials it needs.
- A pull request. The output is a branch and a pull request linked to the ticket, with a plain summary. Nothing is pushed to main.
- Tests and checks. Your CI runs the suite, linters and build. Failures go back to the agent, within limits you set.
- An approval gate, then deploy and status. A person reviews and approves the merge under normal branch protection. The existing deploy runs and the ticket is updated.
The order matters less than the gates. Two make the factory safe: the isolated run limits what a mistake can reach, and the approval gate keeps a person responsible for what lands.
A worked example
A product manager writes a ticket: "Fix the empty state on the invoices page". It has three criteria: show a message when no invoices exist, keep the filter bar visible, and cover the change with a unit test.
Someone moves the ticket to a column named for the factory. That move is the only trigger. A workflow checks out the repository in a clean runner and starts the agent with the ticket text and the rules file.
The agent finds the component, adds the empty state and a test, and runs the test command from the rules file. If the tests fail it reads the failure and tries again. When they pass it opens a pull request that references the ticket.
CI runs as it would for a human author. A reviewer reads the diff and the test, then approves or asks for changes. On merge the normal deploy runs and the ticket moves to done.
The factory removed the copying between ticket tool, editor and pull request. It did not decide what to build or whether the change was good enough to ship. Those stayed with people.
Light and dark factories
Not every factory keeps a person at the merge gate. A dark factory, a term from Dan Shapiro's five-level model of AI-assisted development, is one where no human reviews the code. A light factory keeps human judgment at the gate and automates everything around it.
Most teams should run light. The gate is where accountability lives, and most test suites have not yet earned the right to replace it. The full argument is in light and dark software factories.
What a software factory is not
- Not a chat assistant. Pasting a ticket into a chat window and pasting code back means the work still travels by hand. A factory starts at the ticket and ends at the pull request without that courier.
- Not a platform you buy. The loop is a workflow across tools you already use: board, repository host, CI, agent. A platform can shorten setup. It is not the factory.
- Not a replacement for tests. The suite decides whether an agent's change reaches a reviewer. A codebase with weak tests gets a noisier factory, not a faster one.
- Not autonomous robots shipping to production. That is the dark version, and it is the exception. Most factories end at a pull request a person approves.
Workflows that suit a factory
Teams start with one repository and one class of work where the criteria are clear and the tests are trustworthy.
| Workflow | Trigger | Why it suits |
|---|---|---|
| Bug fixes from one board | Ticket moved to the factory column | Small, well specified, easy to test and review |
| Dependency updates | A scheduled run or a bot's pull request | Repetitive, low judgment, caught by tests when they break |
| Copy and content fixes | Ticket from product or marketing | Low risk, often stuck behind feature work |
| Test backfill | Ticket naming a module without coverage | Improves the gate itself |
| Small features with criteria | Ticket with written acceptance criteria | Tests whether the rules file captures your conventions |
What they share is a written definition of done and a test that tells success from failure without someone watching. Work without both belongs with a developer until the ticket is rewritten.
Common questions
What is a software factory in the DoD?
An organisation, not an AI workflow: a team with a secured DevSecOps platform and a continuous authority to operate, built to ship software faster than traditional acquisition. AI involvement is incidental.
What does a software factory do?
It takes a ticket with acceptance criteria, has an AI agent write the change in an isolated environment, runs your checks, opens a pull request, and waits for a person to approve the merge.
Is a software factory the same as DevOps?
No. DevOps practice is the foundation the factory stands on. CI, branch protection and deploys all stay. See software factory vs DevOps.
Where you need checks and people
A loop with no checks is a demo. Before you wire one, find out whether your repository has the tests, branch protection and written tickets a factory depends on. The factory-ready checklist asks ten yes or no questions and shows the gaps.
Next on the reading path
Light and Dark Software Factories
A dark software factory ships with no human code review. A light one keeps a person at the merge gate. Here is the difference and when to move the dial.