What is an AI software factory? A guide for small teams
By Christian Vismara ·
An AI software factory is a setup where coding agents take tasks from a queue, write the code, run the tests, and hand each change to a review step before it merges. The engineers stop prompting one agent at a time and build and run the system that does the work instead.
For a small team on a flat monthly plan, the model bill is the predictable part. Review time, build minutes and deciding which work the agents must never do alone are harder.
I'm Christian Vismara, co-founder and CTO of Digital Kitchen, and I run a factory like this every day with Claude Code. This guide explains the idea, the costs I actually see, what I keep away from agents, and how to tell whether a factory will pay off for your team. My exact setup, with numbers, is in how I run a software factory with Claude Code.
Where the term comes from
The AI meaning of "software factory" spread in 2026. Four write-ups shaped it.
Dan Shapiro described six levels of AI-assisted coding in January 2026, numbered 0 to 5. At level 0 the AI is autocomplete. At level 5, which he calls the dark factory, the process becomes "a black box that turns specs into software." He calls it dark because "humans are neither needed nor welcome".
StrongDM then published its own factory with two rules: code must not be written by humans, and code must not be reviewed by humans. Simon Willison wrote it up the next day.
Addy Osmani gave a clear working definition in July 2026: many agent loops running at once, fed by a queue of work and drained through a review gate into production.
Zach Lloyd, the CEO of Warp, wrote in June 2026 that the engineer's daily job becomes "to build the thing that builds that product."
The words loop, harness and dark factory get mixed up a lot. I separate them in loop engineering vs harness engineering.
The parts every software factory has
Strip away the branding and every factory I've seen has the same six parts. A small team can build all of them with tools it already uses.
| Part | What it does | The small-team version |
|---|---|---|
| Work queue | Holds tasks, each with a written definition of done | Issues in your tracker, or a roadmap file in the repository |
| Separate workspaces | Lets agents work in parallel without overwriting each other | One git worktree per agent, or one cloud machine per agent |
| Harness | Everything around the model: instructions, tools, permissions | A rules file, project instructions, and hooks that block risky commands |
| Checks | Proves the change works | Your existing tests and CI, plus running the real page or app |
| Review gate | Decides what merges | A fresh AI reviewer for every change above a quick fix, and a person for risky ones |
| Hard stops | Actions that always wait for a person | Production data, payments, sending messages, spending money |
What a software factory costs a small team
There are four costs, and only the first one shows up as a model bill.
| Cost | What drives it | What to watch |
|---|---|---|
| Model | Flat plan or pay-per-token, and how many agents run at once | Monthly spend per engineer |
| Builds and CI | Every agent branch can trigger a build and a full test run | Build and CI minutes per week |
| Upkeep | Rules, skills and instructions go stale as the code changes | Hours per week spent fixing the setup itself |
| Review | Every change still needs someone, or something, to check it | Time from "pull request opened" to "merged" |
The model. I pay a flat monthly subscription, so this line stays predictable. Teams that pay per token see a very wide range. StrongDM wrote that a team spending less than $1,000 a day on tokens per engineer "has room for improvement". That is a benchmark they published for any team, not a bill they reported, and it is far above what a small team needs to start.
Builds and CI. This is the cost that surprised me. When agents started pushing lots of branches, 97% of our hosting usage became build time. We added a rule that skips builds nobody needs. Replaying one product's history showed that 352 of its 635 production pushes didn't need a build, so on that history the rule would have skipped more than half of them. CI is the next line. Across our projects, I estimate from sampled job times that GitHub Actions ran about 21,600 Linux minutes in 30 days, and every new agent branch adds to that.
Upkeep. OpenAI's harness team wrote that it used to spend every Friday, a fifth of the week, cleaning up poor agent output, until it automated that cleanup. In August 2026, The Pragmatic Engineer reported that 75% of Ramp's merged pull requests come from sessions in its in-house coding agent, and that the team building that agent is 5.5 people. Plan for this time from the start.
Review. Review time decides how big your factory can get. I cover how to measure it in the guide to comprehension debt.
Work to keep away from autonomous agents
I decide by what a change affects, not by how many lines it touches. A one-character change to how a payment is calculated is riskier than a large rewrite of a marketing page. These are the areas where an agent can work, but a person always approves before merge:
Login, sessions and permissions. A small mistake here exposes every user at once.
Payments and billing. Errors cost real money and are hard to undo.
Sensitive data. Personal, health or financial records, and anything covered by a contract.
Destructive database migrations. Dropping columns or tables, or rewriting data in place.
The supply chain. New dependencies, CI workflow files, and anything that touches secrets.
The agent's own powers. Which tools, credentials and commands an agent may use.
Actions outside the repository. Sending messages, spending money, deleting data.
Anthropic's Claude Code team works in a similar way. In their October 2026 write-up on code review, a classifier puts each change in a risk tier. Low-risk changes need no human once the automated review and security checks pass, medium-risk changes need one person, and high-risk changes need two. Sensitive paths and CI workflow files always need a person.
These limits only hold if permissions enforce them, because an agent can ignore a written instruction. If an agent must never touch production, it must not hold production credentials. In April 2026, the founder of PocketOS described how a coding agent deleted the company's production database and the backups stored on the same volume in one API call that took nine seconds. Both the tool's rules and the project's rules forbade it. The agent had found an API token in an unrelated file, and that token, created for domain changes, had full access to the API.
When a software factory pays off
The public evidence on payback is thin. Most of the numbers come from the companies selling the tools, and they measure output (pull requests merged) rather than profit.
Cursor reported in February 2026 that 35% of the pull requests it merges internally are created by agents working on their own in cloud machines. On the other side, METR's 2025 study found that experienced open-source developers took 19% longer with AI tools, while they expected to be 24% faster. METR has since marked that study as out of date, but the gap between how fast people feel and how fast they are is still the thing to watch. And the 2025 DORA report found that AI adoption still has a negative relationship with how stable software delivery is.
From what I've seen, a factory is likely to pay off when:
The code has tests that run in minutes, so an agent can prove its own work.
Most work splits into small tasks you can describe in a few sentences.
Someone has real time to review, and review is not already the bottleneck.
A bad change is cheap to roll back.
It is not ready yet when there are no tests, when most of the work is open design questions, or when one senior engineer already reviews everything and has no time left. In those cases, start with one well-run agent and a fresh reviewer. The ways factories go wrong are in why software factories fail.
How to start, in order
Write down the hard stops first, then pick one repository that already has tests, and add a fresh reviewer before a second builder. The full order I would use if I started again is in how I run a software factory with Claude Code.
If you're bringing this to a whole team rather than running it yourself, read Claude Code for teams. If you want to know whether agents fit your business at all, start with AI agents for business.
Frequently asked questions
What is a software factory in AI?
It is a setup where coding agents take tasks from a queue, write the code, run the checks, and pass each change through a review step before it merges. The people on the team spend their time building and running that system instead of prompting one agent at a time.
Who owns code that an agent wrote?
The person who asked for the change. They must be able to explain it, and they are the one on call if it breaks. "The agent wrote it" does not help anyone fix an outage.
Is an AI software factory the same as a government software factory?
No. In defense and government, "software factory" has long meant an in-house team and delivery pipeline that builds and releases software. It has nothing to do with AI agents. The AI meaning became popular in 2026.
How much does an AI software factory cost a small team?
On a flat monthly plan, the model is the predictable part. The costs that grow are build and CI minutes from all the extra branches, the time to keep the rules and tools up to date, and review time. Track build minutes and review time from the first week, because neither shows up as a model bill.
Do you need a big team to run a software factory?
No. One engineer can run one, and I do. What limits it is how many finished changes someone can review in a day, so a small team should add parallel agents only as fast as its review capacity grows.
Should agents merge their own code?
Only after the tests and a fresh review pass, and even then I approve every merge to a shared main branch myself. Changes that touch login, payments, permissions, sensitive data, destructive database migrations or the build pipeline always need a person to read them first.
Thinking about a software factory for your team?
I help small teams decide whether a factory makes sense yet, and then set up the parts that keep it safe: the rules, the risk levels, the review step and the numbers to watch. Tell me about your team and your codebase, and I'll tell you where I would start.