# What is a software factory?

> A software factory is a setup where triggers, not people, start coding agents that write, test and open PRs, while humans keep the approval gates.

Updated November 22, 2026 · https://usecoral.app/glossary/software-factory

A software factory is a way of building software where triggers, not people, start coding agents. A new issue, a schedule or a failing build kicks off an agent session that writes the code, runs the checks and opens a pull request. Humans decide what gets built and keep the approval gates: plans, permissions and merges.

“AI software factory” and “agentic software factory” mean the same thing. The phrase itself is almost 60 years old; only the worker inside the factory is new.

As of November 2026, from the writing that put the term back in use: Dan Shapiro’s [five levels](https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-factory/), [StrongDM’s Software Factory](https://factory.strongdm.ai/), OpenAI’s [harness engineering](https://openai.com/index/harness-engineering/) post and Matt Pocock’s [AI Coding Dictionary](https://www.aihero.dev/ai-coding-dictionary/software-factory). The meaning is still settling, so those sources win if this page disagrees.

<p data-cta="guide_top">A factory still stops for people: a plan to approve, a command no rule covers, a question. Coral puts every agent waiting on you in your Mac’s notch, so you answer with one key. <a href="/download">Download Coral for free</a></p>

## Where the term came from

**1968: the first software factory.** Bob Bemer, then at General Electric, coined the term. The IEEE Computer Society’s [pioneer biography](https://history.computer.org/pioneers/bemer.html) credits him with inventing the term and defining “the nature of the software factory”: programming managed like production, with standard tools, reusable work and measurement. Hitachi opened the first shop run under that name, its Software Works, in 1969. MIT’s Michael Cusumano studied those shops in [*Japan’s Software Factories*](https://global.oup.com/academic/product/japans-software-factories-9780195062168) (1991). In all of them, people still wrote the code. The factory organized the work around them.

**2026: agents take the coding step.** The term came back when agents could do the part the old factories never automated:

- **January 2026.** Dan Shapiro’s [five levels of AI coding](https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-factory/) borrow the driving-automation ladder. At level 3 you’re “the human in the loop” and “your life is diffs”; at level 4 you write the spec, “leave for 12 hours, and check to see if the tests pass”. Level 5 is the dark factory, “a black box that turns specs into software”, named after the robot plants that run with the lights off.
- **February 2026.** StrongDM published [its Software Factory](https://factory.strongdm.ai/): “non-interactive development where specs + scenarios drive agents that write code, run harnesses, and converge without human review”. Its two rules: code must not be written by humans, and must not be reviewed by humans.
- **February 11, 2026.** OpenAI’s [harness engineering](https://openai.com/index/harness-engineering/) post described a product built over five months with no hand-written code, all of it from Codex. Gergely Orosz went [inside OpenAI’s agentic software factory](https://newsletter.pragmaticengineer.com/p/openai-software-factory), where Codex makes the change, tests it, opens the pull request and fixes what review agents flag.

Matt Pocock’s [AI Coding Dictionary](https://www.aihero.dev/ai-coding-dictionary/software-factory) gives the most practical test: a factory is any system where agent sessions “are started by triggers … rather than by a human”. It “takes the human out of starting sessions, and not necessarily out of anything else.”

## What it looks like in practice

Without a factory, you open a terminal, start a [coding agent](https://usecoral.app/glossary/coding-agent) like Claude Code or Codex, point it at a ticket and watch. In a factory, an event starts the session and you meet the work later, usually as a pull request.

| Trigger | The session it starts | Where a person can sit |
|---|---|---|
| An issue is opened or labelled | Explore, fix the bug or build the feature, then open a PR | Writing and labelling the issue; approving the plan |
| A schedule (cron) | One maintenance job: a lint rule, a dependency bump, a flaky test | Reviewing the PR in the morning |
| A failing build or a monitoring alert | Find the breaking commit, propose a fix | Deciding whether the fix ships |
| Another session finishing | Review the PR, then a session that fixes the review comments | The final merge |

The triggers are from the AI Coding Dictionary’s table; the right column is the design question it calls central: “deciding which of those decisions stay human”. A factory with nobody in that column is a dark factory.

What changes for the agent is that nobody is at the keyboard when it asks for permission. The agents handle that differently, and it decides what your factory can do:

- **Claude Code.** `claude -p` and Agent SDK runs start in Manual mode (since v2.1.302), and an action no rule allows just doesn’t run; Claude carries on without it. [Auto mode](https://usecoral.app/guides/claude-code-auto-mode) can review actions in headless runs if you pass `--permission-mode auto`.
- **Claude Code GitHub Actions.** A run starts from an `@claude` mention, any GitHub event or a schedule. Per [Anthropic’s docs](https://code.claude.com/docs/en/github-actions), Claude “has no shell or GitHub API access until you grant the tools the prompt needs”, with `--allowedTools` or a `permissions.allow` rule.
- **Codex.** In `codex exec` and other non-interactive runs, an action that needs approval fails ([Codex subagents](https://usecoral.app/guides/codex-subagents) covers the details). MCP calls that need approval come back cancelled ([Codex MCP](https://usecoral.app/guides/codex-mcp)).

So a factory doesn’t remove permission prompts. It turns each one into a rule you wrote in advance, or a step that fails at 3 a.m.

<p data-cta="guide_body">Not every agent runs in CI. For the ones on your Mac, Coral shows the moment one needs you in the notch. <a href="/download">Get Coral, free</a></p>

## Software factory vs agent orchestration, harness engineering and CI/CD

The terms overlap, and people mix them up. Each one names a different part of the same setup.

| Term | What it names | Who starts the agent | Where people stay |
|---|---|---|---|
| **Software factory** | The whole loop from trigger to merged change | An event: an issue, a schedule, a failure | Specs, plan approval, merge review: whichever gates you keep |
| **[Dark factory](https://usecoral.app/glossary/dark-factory)** | A factory with no human review at all ([Shapiro’s level 5](https://www.danshapiro.com/blog/2026/01/the-five-levels-from-spicy-autocomplete-to-the-software-factory/)) | An event | Writing specs and judging the results |
| **[Agent orchestration](https://usecoral.app/glossary/agent-orchestration)** | Splitting one job across several agents and combining their work, as in [Claude Code agent teams](https://usecoral.app/guides/claude-code-agent-teams) | A person or a lead agent | Usually at the keyboard, answering each agent |
| **[Harness engineering](https://usecoral.app/glossary/harness-engineering)** | Building what surrounds one agent: docs, tools, tests and checks it can run ([OpenAI](https://openai.com/index/harness-engineering/)) | Either | Designing the harness |
| **[Agentic engineering](https://usecoral.app/glossary/agentic-engineering)** | The practice of building software with coding agents ([Simon Willison](https://simonwillison.net/guides/agentic-engineering-patterns/what-is-agentic-engineering/)) | Usually a person | Throughout |
| **CI/CD** | Building, testing and deploying a change someone pushed | A push or a merge | Writing the change |

In short: harness engineering makes one agent reliable, orchestration makes several work together, and a factory makes them start on their own. CI/CD is still there inside the factory, checking every pull request the agents open.

## A worked example: one lint rule a night

The smallest real factory is one scheduled job that opens one kind of pull request. Here it is with [Claude Code GitHub Actions](https://code.claude.com/docs/en/github-actions), following the scheduled example in Anthropic’s docs (install the app with `/install-github-app` in Claude Code first):

```yaml
name: nightly-lint-fix
on:
  schedule:
    - cron: "0 3 * * *"   # 03:00 UTC, every night
permissions:
  contents: write
  pull-requests: write
jobs:
  fix-one-rule:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: anthropics/claude-code-action@v1
        with:
          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
          prompt: "Pick one ESLint rule that still has violations. Fix every violation of that rule on a new branch, run npm test, and open a pull request that names the rule."
          claude_args: |
            --allowedTools "Edit,Bash(npx eslint:*),Bash(npm test),Bash(git:*),Bash(gh pr create:*)"
```

What happens each night:

1. **The trigger.** At 03:00 the schedule starts a session. Nobody opened a terminal.
2. **The work.** Claude picks a rule, edits the files and runs the tests. It can only run what `--allowedTools` lists: anything else, like installing a package, doesn’t run.
3. **The check.** Your normal CI runs on the pull request, the same as for a person’s.
4. **The gate.** In the morning you review one small, predictable diff and merge it or close it.

That’s the advice in the AI Coding Dictionary: start narrow, because small, similar pull requests show you how far the loop can be trusted before you widen it. The next step is usually an issue label (`ready-for-agent`) that starts the same kind of session for a real ticket, with a plan you approve before it writes code.

## Where it stops

A factory takes people out of starting sessions. It doesn’t take them out of deciding, and the decisions move to two places:

- **Before the run.** Every permission the agent will need has to be written down as an allow rule, a scenario or a test. What you didn’t foresee doesn’t get asked; it fails or gets skipped, and you find out from the pull request.
- **Around the run.** Most teams don’t go dark. They keep agents on their own machines next to the factory, for the work that needs judgment: writing the spec, approving the plan, the change that touches payments. Those agents stop and wait for an answer, and with several running, the person is the queue. That’s Shapiro’s level 3, where “almost everyone tops out”.

Neither one is a CI problem. It’s the human gate, and it decides how fast the whole factory moves.

## Where Coral fits

[Coral](https://usecoral.app/features) doesn’t run the factory, and it doesn’t watch your CI runners: a GitHub Actions job never shows up in it. It handles the part of the loop that stays human, for the agents on your Mac:

- **Every gate in one place.** When a Claude Code, Codex, Copilot CLI, OpenCode or Grok session stops for a permission, a question or a finished plan, it appears in your Mac’s notch, whoever has waited longest first.
- **Answer with one key.** Press 1, 2 or 3 from any app, and see what the agent wrote just before it asked. ⌘Z takes it back within two seconds.
- **Plans before code.** When Claude Code finishes a plan, the card asks “Ready to code?”, the same gate the factory keeps before an agent builds a ticket.
- **Away from your Mac.** Alerts on your iPhone are Free. Answering from the phone and agents on your SSH servers are [Pro](https://usecoral.app/pricing).

If you’re running several agents by hand on the way to a factory, [Run multiple Claude Code agents](https://usecoral.app/guides/run-multiple-claude-code-agents) covers the worktree and terminal setup.

## Questions

### What is an AI software factory?

The same thing as a software factory in 2026: a setup where events like a new issue, a schedule or a failing build start AI coding agents, which write the code, run the checks and open a pull request. People choose the work and keep the approval gates they want, such as plan approval and the merge.

### What is an agentic software factory?

Another name for the same idea. “Agentic” stresses that the workers are agents that run tools in a loop until the job is done, not autocomplete. OpenAI’s version runs on Codex, StrongDM’s on specs, scenarios and validation harnesses.

### What is a dark factory in software?

A software factory where no person reviews the code before it ships. Dan Shapiro made it level 5 of his five levels of AI coding, named after manufacturing plants that run with the lights off. StrongDM’s rules, that humans neither write nor review code, describe one.

### Is a software factory the same as CI/CD?

No. CI/CD builds, tests and deploys a change that someone pushed. A software factory adds the steps before that: something starts an agent, and the agent writes the change. CI/CD still runs inside the factory, on every pull request the agents open.

### Who coined the term software factory?

Bob Bemer, at General Electric in the late 1960s. Hitachi opened the first shop run as a software factory in 1969. The AI meaning came in early 2026, from Dan Shapiro’s five levels, StrongDM and OpenAI.

### Do I have to stop reviewing code to have a software factory?

No. A factory only means sessions start without you. You can keep human review on every pull request, and most teams do. Dropping review is what makes it a dark factory.
