Oleh Leskiv · 30 November 2026

What is an AI software factory?

An AI software factory is a way of building software in which AI agents write most of the code and tests, and every change passes through the same stations and gates. People decide what to build, approve the spec and review what ships. It suits teams that want AI speed on a real product and need to trust the result.

Definition

What the term means, and where it comes from

Port (opens in a new tab), a company that sells an internal developer platform, defines the term this way. “An AI software factory is an operating model where your software development lifecycle runs as a production line, with agents doing the work at each stage and engineers designing and running the line.”

In plainer words, it is a fixed way of working. Each piece of work is written down, split into small tasks, built by AI agents and checked by the same gates every time. The factory is the process around the AI. It works with any model or coding tool, and most of it lives in plain text files in the repository.

Addy Osmani's shorter version, from Software Factories, Light and Dark (opens in a new tab), is “A software factory is harnessing loops at scale.” A loop is one agent doing one job until a check passes. The harness is the sandbox, tools and gates around that loop.

The idea of a 'software factory' goes back to 1968, when Bob Bemer wrote “The Economics of Program Production”, a paper both Port and Osmani cite. That factory standardised the process and reused parts, and people still wrote every line. Port also separates the term from an “AI factory”, which is NVIDIA's name for data centres that train and run models.

The line

How an AI software factory works

The diagram shows the line as Nexera AI runs it. Work starts as written requirements, which a person writes. They become a spec with the data model, the contracts and a list of small tasks, which AI can draft and a developer approves. In his talk Why Software Factories Fail (opens in a new tab), Dex Horthy of HumanLayer argues for four planning steps before any code is written: product review, system architecture, program design and the order in which to build vertical slices.

In the agent build loop, AI agents take the tasks and write the code and its tests. Several agents can work at once, each on its own task, such as checkout, invoices and search. In Building a Software Factory that actually works (opens in a new tab), Ras Mic shows Greg Isenberg how each feature starts in its own git worktree, so parallel agents never overwrite each other's files, and how the whole workflow lives in an AGENTS.md file and a few skill files. Matt Pocock's open-source Sandcastle (opens in a new tab), shown in I Open-Sourced My Own AFK Software Factory (opens in a new tab), runs each agent in its own sandbox and branch, with a planner agent that picks only tasks nothing else is blocking.

In a light factory, every change then meets the merge gates: lint, type checks, unit tests, end-to-end tests, a security scan and a senior developer's review. A change that fails any gate goes back to the build loop with the error. Ras Mic's agents attach before-and-after screenshots or measurements to each pull request, and an AI reviewer sends it back until it scores well. In Pocock's pipeline a separate reviewer agent checks every diff against the project's coding standards. Cole Medin, in 5 Types of AI Software Factories Clearly Explained (opens in a new tab), points out that in factories that work, the agent that builds a change never grades it.

At release, a person signs off before the change reaches production, and what the team learns feeds the next spec. Across the whole line, AI does the work at the spec, build and gate stations, and a developer signs off the requirements, the final review and the release.

Compared

A coding assistant compared with a factory

Both use the same AI models. The difference is how much of the work runs through a fixed process.

AI coding assistantAI software factory
Who writes the codeA developer and the AI together, one chat at a timeAI agents, from written specs, often several at once
Unit of workA promptA specified task that moves through fixed stations
How quality is checkedThe developer looks at what the AI producedThe same gates on every change: tests, scans and review
Where the time goesReview piles up after the code is writtenPlanning before the code and checking after it
What the team keepsThe code; the process lives in chat historyThe code and the workflow, as versioned files in the repository
The person's rolePair programmerWrites the spec, guards the gates, owns the line

Based on Port's glossary entry and the four videos cited in this article. Prompting an app until it looks right, with no spec, tests or review, is further from a factory still. How we work compares that approach with ours.

Where the time goes

Why the bottleneck moved from writing to checking

Think of each change as three parts: plan, build and review. When people write code by hand, most of the time goes into the build. The diagram shows relative shares only, with no measured hours.

A coding assistant shrinks the build. The review grows, so the queue moves downstream. In Port's words, “A coding assistant speeds up one stage, so the bottleneck just moves downstream.” Osmani makes the same point. “There is only one expensive box that proves stubbornly resistant to scaling, and that's the review gate.”

A factory spends more time on the plan, so the build stays short and the review stays manageable. Medin names planning up front and validation afterwards as the bottleneck of software work today. Osmani says an hour of planning up front pays off in review. “It turns a long, frustrating code review into a quick read of a two-hundred-line plan.”

Speed is also easy to misjudge. In a 2025 METR study (opens in a new tab), experienced open-source developers took 19% longer to finish tasks with early-2025 AI tools, while believing they had been about 20% faster. The tools have improved since then. The lesson is to measure the whole line.

Five levels

The five levels of AI coding

Dan Shapiro, CEO of Glowforge, describes five levels of AI coding (opens in a new tab), modelled on the levels used for self-driving cars. They run from Level 0 to Level 5. The short names below are shorthand used in summaries of his post, and the descriptions follow his.

At Level 0, spicy autocomplete, you write the code and use AI as a search engine or to accept a suggestion. At Level 1, the coding intern, you hand the AI small tasks such as a unit test or a docstring. At Level 2, the junior developer, you pair with the AI like a colleague and work in flow.

At Level 3, the developer level, the AI writes and you manage, and your days are spent reading diffs. At Level 4, the engineering team, you write the spec, argue it through with the agent, set up its skills and check the tests after it has worked for hours on its own. Level 5 is the dark factory, a black box that turns specs into software. Shapiro says he knows a handful of small teams working this way.

A factory starts at Level 3. Nexera AI works between Levels 3 and 4. We write and argue the spec and set up the agents' skills, as at Level 4. A senior developer still reads every diff before it merges, as at Level 3.

Light and dark

Light and dark factories

A dark factory runs with nobody reading the code. StrongDM's AI team set this out in Software Factories And The Agentic Moment (opens in a new tab) as two rules: “Code must not be written by humans” and “Code must not be reviewed by humans”. They check the work with end-to-end scenarios kept outside the codebase, like a holdout set, so agents cannot rewrite them to pass.

A light factory keeps people where judgement is needed. In Osmani's words, “A lit factory is the same pipeline with the lights left on where judgment lives.” He sets one rule for where the lights stay on. “A loop needs to be reviewed if a wrong answer is expensive and only a person can catch it.” Passing tests is not proof on its own. In a 2026 METR note (opens in a new tab), maintainers reviewed agent-written pull requests that passed SWE-bench Verified's tests and judged that roughly half would not have been merged. The agents had no chance to respond to feedback, and METR does not treat the result as a limit on what agents can do.

Cole Medin draws the choice as a chart with two questions. Can tests prove the work is right? How much does a person review? Little review with weak tests is the danger zone, where dark factories sit. Little review with strong tests suits fleet work such as migrations and refactors. Heavy review of work that is easy to test is over-review and wasted effort. Where tests cannot prove the work, as with product features that need judgement, heavy review is the safe choice. Safe factories sit on the diagonal from heavy review with weak tests to no review with strong tests.

Nexera AI sits with product features, close to that line. Every change gets a senior developer's review, because product decisions are where a wrong answer is expensive.

Types of factories

Five types of AI software factory

Cole Medin stresses that a factory does not take people out of the loop. His five types differ in where people stay.

How it worksWho reviewsSuits
Dark factoryA request goes in; agents plan, build, review and merge to productionNobodyProofs of concept
Fleet factoryThe same mechanics, limited to work with a clear goal that a machine can checkMostly nobodyMigrations, refactors and maintenance
PR factoryOne issue at a time goes through the build loopA person reviews every pull requestThe most reliable place to start, though the reviewer stays the bottleneck
Release factoryA person-led plan of about 10–20 tickets is split into issues, built in parallel and merged to a staging branchA person reviews one combined pull request and the staging appMedin's recommended balance of speed and control
Self-improving factoryA release factory that also turns production signals, such as errors and usage data, into new issuesAs in a release factoryProducts with real users and monitoring

Adapted from Cole Medin's 5 Types of AI Software Factories Clearly Explained (opens in a new tab). In two fleet examples, Airbnb (opens in a new tab) migrated nearly 3.5K test files in 6 weeks against a manual estimate of 1.5 years, and Spotify's Fleet Management (opens in a new tab) has merged more than 2.5 million automated maintenance pull requests, “the vast majority auto-merged with no human in the loop.”

Risks

Where AI software factories go wrong

  • Code nobody understands

    Osmani calls it comprehension debt and defines it as “the widening gap between how much code exists and how much any human still understands.” A factory where nobody reads the code adds to it with every merge.

  • The bug no prompt can fix

    Dex Horthy says HumanLayer stopped reading its code in July 2025. Months later the site went down with a bug the agents could not fix, and the team had to debug code nobody had read. He now argues for putting review and up-front planning back.

  • Tests that bend

    StrongDM found that “return true is a great way to pass narrowly written tests”, and that “A test, stored in the codebase, can be lazily rewritten to match the code.” Tests need a second check, such as a human review or scenarios the agent cannot edit.

  • The wrong thing, built well

    Medin points out that people never describe what they want perfectly. With no person at the gate, a misunderstanding ships straight to production.

  • Agents with too much access

    Pocock warns that agents running unattended with full permissions can delete files or leak data, which is why his factory runs every agent in a sandbox.

  • AI amplifies the team you have

    The 2025 DORA report (opens in a new tab) found AI adoption still negatively related to delivery stability. In its words, “AI doesn't fix a team; it amplifies what's already there.” Without strong automated tests and fast feedback, more changes lead to more instability.

The human part

What people still do in a factory

The sources disagree on how much people should review. They agree on what stays with people.

  • Decide what to build, including what is out of scope.
  • Design the system: the architecture, data models and contracts that keep agents on track.
  • Write the spec and the acceptance criteria the work is checked against.
  • Build and tune the line: the workflow files, the skills, the checks and the merge policy.
  • Judge at the gates. Port's advice is to “keep a human in the loop for anything touching money, data, or safety.”
  • Own production: on-call, incidents and their consequences.
Our factory

How Nexera AI runs a light factory

AI agents write most of the code and tests, and a senior developer reads every diff. In Medin's terms our line is closest to a PR factory. Every feature passes the same five stations, on our own products and on the ones we build for buyers. Three real builds has the full numbers, and How we work describes each gate.

  1. Product Requirements

    We write down what the product must do with you, in plain language you can review. On the builds we do for buyers they are numbered. The workforce time tracking apps have about 2,500 requirements across 78 feature specs.

  2. Spec

    AI drafts the technical spec, data model, API contracts and task list, and a developer approves it. Each task names the requirements it covers, and the acceptance criteria are agreed before any code is written.

  3. Agent build loop

    Agents plan, act and verify. A developer adjusts the plan before any code is written, then agents write the code and its tests. InvestKit, our In-house Build, went live in under 2 weeks with 2,681 tests.

  4. Merge gates

    Six checks run on every commit: lint, type checks, unit tests, end-to-end tests, a security scan and a senior developer's review. A change that fails any of them goes back. On a self-storage booking platform about 150 changes merged this way.

  5. Release

    A developer signs off the release to production, and what we learn feeds the next plan. Our three builds carry more than 13,900 automated tests between them.

Getting started

How to start a factory of your own

These steps follow what the sources agree on. If you need a product built, we run our factory for you through an MVP Launch, from $4,500, or a Dedicated Developer, from $35 per hour. If you already have developers, Factory Setup installs the same line in your repository and trains your team on real features. Both are described on the AI Software Factory page.

  1. Write the workflow down

    Put how your team builds in an AGENTS.md file and a few skill files, so every agent follows the same process.

  2. Write the spec before the code

    Requirements first, then a spec with small tasks and acceptance criteria. Small fixes can skip this and go straight to an agent.

  3. Put the gates in CI

    Lint, type checks, tests and a security scan run on every change, so a failing change never reaches the main branch.

  4. Review every merge at first

    Start as a PR factory. Let changes merge unreviewed only where tests can prove the work is right, such as dependency updates and migrations.

  5. Measure the whole line

    Port suggests measures such as lead time, deployment frequency and change failure rate. They show whether the line is faster from spec to release.

FAQ

Questions, answered

What is an AI software factory in simple terms?

A fixed way of building software in which AI agents write and test the code and every change passes the same checks before it ships. People decide what to build, write the spec and approve the result.

How is an AI software factory different from a coding assistant like Copilot or Cursor?

An assistant helps one developer write code faster in one chat. A factory runs the whole line from spec to release, with agents working in parallel and gates checking every change. Port notes that speeding up only the coding moves the bottleneck to review.

What is a dark software factory?

One where no person writes or reviews the code. StrongDM (opens in a new tab) works this way and checks its software with scenarios kept outside the codebase. Dan Shapiro calls it Level 5 and knows only a handful of small teams doing it.

Do AI software factories still need human code review?

For most product work, yes. A 2026 METR note (opens in a new tab) found that roughly half of agent-written pull requests that passed SWE-bench Verified's tests would not have been merged by maintainers. Unreviewed merges suit narrow work that tests can prove, such as migrations.

What do you need to set up an AI software factory?

A written workflow in an AGENTS.md file and skill files, a spec template, automated tests and checks in CI, and a review policy. Most of it is plain text in your repository, and it works with most coding agents.

How much does an AI software factory cost?

With Nexera AI you can have us run ours through an MVP Launch, from $4,500 and live in 2–4 weeks, or a Dedicated Developer, from $35 per hour. Factory Setup in your own repository is priced per Milestone. Each Milestone gets a fixed Milestone Price in writing after the Scope Call.

Where does the term software factory come from?

The idea of a 'software factory' goes back to 1968 and Bob Bemer's paper “The Economics of Program Production”. That factory standardised the process, and people still wrote every line. AI agents are what is new.

Find the right factory for your product

Book a free 30-minute Scope Call with a senior developer. Tell us whether you need a product built or a factory in your own repository, and leave with a clear next step.

Last updated: