What Is a Software Factory?
Quick answer: A software factory is a system where AI agents turn issues into merged code through the same steps every time. Each agent works in an isolated sandbox, writes tests and opens a pull request that waits for checks and review. People set the intent, write the rules and decide what may merge without them. The merge gate is the station that decides how much the factory is trusted.
Let an agent earn its place on your team
Define a Factorik agent once and it wakes on an issue, a failed build or a schedule, works in an isolated sandbox and ships a pull request. It starts with a person merging its work and earns more autonomy on its record. Try it free for 7 days, no payment details needed.
What is a software factory in 2026?
A software factory is a system in which AI agents turn issues into merged code through a repeatable pipeline, while people set the intent and the rules for what ships. Each agent picks up one piece of work, does it in an isolated sandbox, writes or updates tests, opens a pull request and waits for checks and review. The word "factory" is about repeatability, not about headcount. A team with one repository and three agents can run a software factory. A company with two hundred engineers who each paste code from a chatbot does not have one. What makes it a factory is that the same kinds of input go through the same stations every time, and every output comes with a record of how it was made.
Most working definitions in 2026 describe the same five parts. First comes intake: the events that create work, such as an issue being opened, CI failing on the default branch, a schedule firing or a webhook from a ticketing system. Then come the workers, which are agents with narrow jobs like fixing bugs, updating dependencies, writing tests or reviewing pull requests. Next are the stations every change passes through: a sandbox, a test run, CI and a review. After that comes the gate, a merge policy that decides what lands without a person. Finally there's watching, so a change is still observed after it merges. Take out the gate and you have a code generator. Take out the record and you have something nobody can audit.
A software factory isn't autocomplete in your editor, and it isn't a chat assistant that helps one engineer type faster. Those tools make individuals quicker. A factory changes who does the routine work and where people spend their attention. Engineers stop writing every line of a dependency bump or a flaky-test fix. Instead they write specifications and standing rules, review the changes that matter, and tune the policy that decides what can merge alone. In our view, the most valuable thing a factory produces isn't the code. It's the record: which agent made which change, what checks it passed, who approved it and what happened in production afterwards. Without that record, you can't decide which work to trust the factory with.
How does an AI software factory turn an issue into merged code?
An AI software factory turns an issue into merged code through a fixed sequence: an event wakes an agent, the agent works in a sandbox, proves its change with a test and opens a pull request that must clear checks and review before the merge policy lets it land. Here's a realistic example. Someone opens an issue saying the checkout button does nothing on Safari and labels it bug. The label wakes a bug-fixing agent assigned to that repository. It starts an isolated sandbox with read-only access to that one repository, reads the issue as data rather than as instructions, and looks at error reports from production. Then it reproduces the failure in a test before touching any application code.
With a failing test in hand, the agent fixes the cause, not just the symptom, and runs the suite again until the new test passes and nothing else breaks. The change goes out as a single commit on a fresh branch, never straight to the default branch, and a pull request opens with an explanation of the cause. CI runs. A review agent reads the diff in the context of the repository and gives a verdict on the exact commit it read. If it asks for changes, the author agent answers on the same branch, either fixing each point or explaining why it disagrees, for a limited number of rounds before a person steps in. That back-and-forth is how a review agent should gate merges, rather than leaving a pile of comments nobody answers.
Not every run ends in a pull request, and a well-built factory treats that as normal. An agent might decide there's nothing to do because the bug is already fixed on main. It might be blocked because it needs a credential or a product decision, in which case it says exactly what it needs. If CI fails on its own pull request, it reads the end of the failed log and pushes a fix to the same branch, a limited number of times. After the merge, the change is watched: a failing deploy at that commit, a revert or a person reporting a problem gets recorded against the agent that made it. Those clear endings matter more than they look. A factory where every run ends in a known state is one you can run all night without worrying.
How is a software factory different from a dark factory, an AI factory or Factory.ai?
A software factory is the broad pattern of agents producing code under human-set rules. A dark factory is the extreme version, where no person writes or reviews the code at all. The term comes from lights-out manufacturing, where plants run with the lights off because no workers are on the floor. In software it took off in early 2026. Dan Shapiro's essay on the five levels of AI-assisted coding put the "dark factory" at the top, describing it as a black box that turns specifications into software. StrongDM then published its own software factory with a blunt rule that code must not be reviewed by humans. Under that model, only automated checks and scenario tests decide whether a change ships.
Two other terms get tangled up with this one. An "AI factory" is data-center infrastructure: the racks of accelerators, networking and storage that hardware vendors sell for training and serving models. It produces models and tokens, not merged pull requests, and it has nothing to do with how your team ships code. Factory, often written Factory.ai, is a company that sells AI coding agents. It's one product in a crowded market, not the name of the category. Then there's the older meaning, which goes back to the late 1960s and has nothing to do with AI. When someone in a meeting says "we should build a software factory", it's worth asking which of these four things they mean before anyone starts planning.
We think the dark factory is the wrong goal for most teams, even though it makes a good headline. Darkness isn't something a whole organization has or doesn't have. It belongs to each kind of change. A one-line typo fix in the docs can safely merge with nobody watching. A change to a database migration or a payment path shouldn't, however good the agent's record is. The useful question isn't whether your factory is dark. It's which kinds of change can run lights-out today, and what evidence lets the next kind join them. Teams that try to switch everything off at once tend to switch the lights back on after their first bad incident.
| Term | What it means | Who decides what ships | Typical context |
|---|---|---|---|
| Software factory (2026) | AI agents turn issues into merged code through a repeatable pipeline | People set intent and merge rules; low-risk changes may merge alone | Engineering teams on GitHub with CI |
| Dark factory | A software factory where no person writes or reviews the code | Automated checks and scenario tests only | Experimental, high-trust setups |
| AI factory | Data-center infrastructure for training and serving AI models | Not applicable; it produces models, not code changes | Hardware and cloud vendors |
| Software factory (1969 onward) | An organization run like a plant: standard methods, reuse, division of labor, quality control | Managers and quality-control processes | Japanese and US firms, later defense programs |
Let an agent earn its place on your team
Define a Factorik agent once and it wakes on an issue, a failed build or a schedule, works in an isolated sandbox and ships a pull request. It starts with a person merging its work and earns more autonomy on its record. Try it free for 7 days, no payment details needed.
Where did the term software factory come from?
The term software factory dates from the late 1960s, when companies began organizing large-scale programming like industrial production. In 1968, Bob Bemer at General Electric argued for a software factory built on standard tools, a common interface and a database of past projects. The next year, in 1969, Hitachi set up what is generally recognized as the first facility actually run as one, called the Software Works and, more literally, the Software Factory. System Development Corporation, a US leader in custom software, followed in the mid-1970s. Toshiba, NEC and Fujitsu set up their own software factories in Japan over the next few years. None of these involved anything resembling AI. The factory was a way of managing large numbers of human programmers.
The best-known account is Michael Cusumano's 1991 book on Japan's software factories. It describes what these organizations had in common: standard methods and tools, systematic reuse of components, a clear division of labor, disciplined project management and strict product quality control. The term came back twice after that. In 2004, two Microsoft architects, Jack Greenfield and Keith Short, used it for building applications from reusable patterns, models and domain-specific languages. Then in 2017 the US Air Force started Kessel Run, and "software factory" became the standard label across the US defense world for in-house teams shipping software continuously on shared platforms. Each time, the word meant something slightly different, but the underlying promise didn't change.
That promise is predictable output from a repeatable process, with quality controlled at every station rather than inspected at the end. The 2026 software factory keeps that idea and changes who works at the stations. Hitachi's version standardized how people wrote code. Today's version standardizes how agents do: one job per agent, one repository, the same sandbox, the same checks and the same gate. What's new is how fast things move, and that's why the old emphasis on quality control matters more now, not less. A factory that produces fifty pull requests a day without a disciplined gate just turns out defects faster. The engineers at those 1970s plants would have recognized that problem immediately.
Why is the merge gate where trust in a software factory is decided?
The merge gate is where trust is decided because it's the last cheap place to stop a change. Everything before it produces evidence, and everything after it costs real money to undo. An agent can write a convincing description, a test that passes and code that looks tidy. None of that matters until something decides whether the change lands on the default branch. If that something is "whatever the agent thinks", you have no factory, just a very fast intern with commit rights. If it's "a person reviews every line", you've kept all the review load and gained very little. A good gate sits between those two, and what it's tied to determines how far you can safely let agents go.
A gate worth trusting rests on facts about the change, not on any model's opinion of it. That means passing checks are required, and any change that touches protected paths waits for a person. Those paths include dependencies, build and deploy files, secrets and permissions, database migrations and anything to do with money. It also means limits on how many files and lines a change can touch without approval, and a review verdict that applies to the exact commit being merged, not an earlier one. On top of that sits the agent's own record: how many of its changes merged, how many were closed and whether any caused problems. That record is what makes it possible for agents to merge their own code without anyone just hoping for the best.
Factorik builds its factory around that idea of earned autonomy. Every agent starts at the first level, where it opens pull requests and a person merges them. Once its record clears the bar, it can be promoted to merging low-risk changes by itself. Later it may merge whatever the repository's merge policy allows. Any problem traced to one of its merged changes moves it down a level at once, and every level change is logged with who or what made it and why. Auto-merge is off by default, so nothing lands alone until a team decides it should. To see how agents climb those levels, read about autonomous coding agents that earn the right to merge. Or follow a 30-day plan for rolling agents out, then start a free trial and set up your first agent on one repository.
Frequently asked questions
Is a software factory the same as a dark factory?
No. A software factory is any system where AI agents turn issues into merged code through a repeatable pipeline, with people setting intent and merge rules. A dark factory is the extreme version, where no person writes or reviews the code and automated checks alone decide what ships. Most teams run a software factory with some lights-out lanes for low-risk changes, and keep people in the loop for sensitive paths such as migrations, secrets and payments.
Can a small team run an AI software factory?
Yes. Size isn't what makes something a factory. A small team with one GitHub repository, working CI and a couple of narrowly scoped agents, say one that fixes broken builds and one that updates dependencies, already has the essential parts: intake, workers, checks, a gate and a record. Smaller teams often get more out of it, because routine maintenance eats a bigger share of their time than it does at a large company.
What do people still do in an agentic software factory?
People set the intent and own the rules. They write the issues and specifications, the standing rules every agent follows and the merge policy that decides what can land without them. They review the changes that touch protected paths, decide which agent proposals get built, confirm problems reported after a merge and choose when an agent is promoted. The work shifts from typing every change to judging which changes deserve trust.
What's the first step toward building a software factory?
Start with one repository that has reliable CI and a clear merge policy, then add one agent with one narrow, low-risk job, such as repairing a broken default branch or updating dependencies. Keep auto-merge off at first so a person merges every pull request. Watch the agent's record for a few weeks: its merge rate, what got closed and why, and any problems after merge. Then widen its scope based on that evidence.
Let an agent earn its place on your team
Define a Factorik agent once and it wakes on an issue, a failed build or a schedule, works in an isolated sandbox and ships a pull request. It starts with a person merging its work and earns more autonomy on its record. Try it free for 7 days, no payment details needed.