What is a dark factory in software?
A dark factory is a software factory where no human writes or reviews the code: agents build from specs, and only machines check the result.
Updated
A dark factory is a software factory where no human writes or reads the code. People write the specs and judge the results; coding agents build the software, and other machines, such as tests, scenarios and review agents, decide whether it ships. The name comes from lights-out manufacturing plants that run without people on the floor.
“Dark software factory”, “AI dark factory” and “lights-out” software mean the same thing. It’s the far end of a software factory: every factory takes people out of starting agent sessions, and a dark one takes them out of review too.
As of November 2026, from Dan Shapiro’s five levels, StrongDM’s Software Factory, Simon Willison’s write-up of StrongDM, Addy Osmani’s Software Factories, Light and Dark and Matt Pocock’s AI Coding Dictionary. The term is new, so those sources win if this page disagrees.
Most teams keep the lights on somewhere: a plan to approve, a change to read. Coral puts every agent waiting on you in your Mac’s notch, so you answer with one key. Download Coral for free
Where the term came from
The factory floor. A lights-out factory is one where robots do the work with no one on site. Addy Osmani notes that FANUC in Japan “has been running lights-out factories of this sort since 2001”, and that Xiaomi opened a heavily automated dark factory of its own in 2024.
January 2026: level 5. Dan Shapiro’s five levels of AI coding end at “the Dark Factory”. At level 5 your software process “isn’t really a software process any more. It’s a black box that turns specs into software.” Why dark: like FANUC’s robot plant, “it’s a place where humans are neither needed nor welcome.” He knew “a handful of people” working that way, in teams of fewer than five.
February 2026: a team doing it. Simon Willison described StrongDM as a team “implementing what Dan Shapiro called the Dark Factory level of AI adoption, where no human even looks at the code the coding agents are producing.” StrongDM’s own rules: code must not be written by humans, and must not be reviewed by humans.
July 2026: light and dark. Addy Osmani’s Software Factories, Light and Dark set the dark factory, where “code ships that no human has read, verified only by other machines”, against a lit one, where “a human reads what comes out before it ships”.
What it looks like in practice
If nobody reads the code, something else has to be trusted instead. StrongDM’s write-up is the most detailed public example of what that something is:
- Scenarios, kept out of the agent’s reach. StrongDM found that a test stored in the codebase “can be lazily rewritten to match the code”, and that agents took shortcuts like
return trueto pass narrow tests. So it uses scenarios: end-to-end user stories “often stored outside the codebase (similar to a ‘holdout’ set in model training)”. - Satisfaction instead of green or red. Success is “of all the observed trajectories through all the scenarios, what fraction of them likely satisfy the user?”
- Twins of the outside world. Its Digital Twin Universe is a set of behavioral clones of Okta, Jira, Slack, Google Docs, Google Drive and Google Sheets, so scenarios can run thousands of times an hour without real rate limits or API costs.
- A lot of tokens. StrongDM’s practical rule: “If you haven’t spent at least $1,000 on tokens today per human engineer, your software factory has room for improvement.”
The humans haven’t left. They moved: they write the specs and the scenarios, and they judge whether the satisfaction number is the one they want. Matt Pocock’s dictionary adds that a dark factory can be “a codebase, or part of one”, so one corner of a repo can go dark while the rest stays reviewed.
Not ready to go dark? Coral keeps the human gates fast for the agents on your Mac. Get Coral, free
Dark factory vs lit factory, level 4 and harness engineering
| Term | Who reads the code | Where people stay | Source |
|---|---|---|---|
| Dark factory | No one; only machines check it | Specs, scenarios, judging results | Shapiro, StrongDM |
| Lit software factory | A person, before it ships | Design and architecture up front, review at the end | Osmani |
| Level 4 | You check that the tests pass | You write the spec, “leave for 12 hours, and check to see if the tests pass” | Shapiro |
| Harness engineering | Either | Building the tools, docs and checks around the agent | OpenAI |
In short: harness engineering is what makes a dark factory possible, because the checks the agent runs are the only reviewer left. A lit factory uses the same pipeline and keeps a person where a wrong call is expensive.
A worked example: one corner goes dark
Take the nightly lint job from the software factory page: one scheduled agent session fixes one lint rule and opens a pull request, and a person reviews it in the morning. Making that corner dark means removing the morning review. Before you do, three things from StrongDM’s write-up have to hold:
- The checks can’t be the agent’s to change. If the only reviewer is the test suite, an agent that can edit the tests can pass them. Keep the checks that decide the merge where the agent can’t rewrite them, as StrongDM keeps its scenarios outside the codebase.
- “Passing” means behavior, not a green run. A lint fix that compiles but changes what the code does is a bug. The check has to run the program, not just the linter.
- The scope stays small. One rule, one kind of change, every night. That’s Pocock’s “part of one” codebase: the payments code and the auth code keep their review.
If all three hold, you merge automatically when the checks pass and read a sample instead of every diff. If any of them doesn’t, you’ve built a fast way to ship mistakes nobody saw.
Where it stops
The case against going dark is mostly about what tests can’t see:
- Comprehension debt. Osmani argues that a dark factory doesn’t pay comprehension debt down; “it takes it on as fast as it can, with the tests green the whole way”, and that “autonomy can’t expand beyond what can be cheaply and reliably verified.”
- Cost. Willison: if these patterns “add $20,000/month per engineer to your budget they’re far less interesting to me.”
- Nobody to ask. An agent in a dark factory that hits a permission no rule covers, or a spec that doesn’t answer its question, has no one to stop for. The decision has to be written down before the run, or the step fails.
So most teams that build a factory keep some lights on: the spec, the plan, the risky change. That’s where people still answer agents, one by one.
Where Coral fits
A fully dark factory has no human gate, so there’s nothing for Coral to do there, and Coral doesn’t watch CI runners or cloud agents. Coral is for the parts you keep lit, 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; ⌘Z takes it back within two seconds.
- Plans before code. When Claude Code finishes a plan, the card asks “Ready to code?”, the review step a lit factory keeps up front.
- Away from your Mac. Alerts on your iPhone are Free. Answering from the phone and agents on your SSH servers are Pro.
If you’re deciding how much to automate, Claude Code auto mode shows how far a classifier can replace your approvals, and Keep coding agents safe covers the rules that should never be left to a model.
Questions
What is a dark factory in software?
A setup where coding agents write, test and ship code that no person writes or reviews. People write specs and judge results; tests, scenarios and review agents decide what ships. Dan Shapiro named it level 5 of his five levels of AI coding.
Where does the name dark factory come from?
From lights-out manufacturing: plants where robots work with no people on site, so the lights can stay off. Dan Shapiro borrowed it from FANUC’s robot factory in January 2026.
Who runs a dark factory?
StrongDM’s AI team is the best-known public example. Its rules are that humans neither write nor review code, and it checks the software with scenarios kept outside the codebase and clones of services like Okta and Slack. Shapiro said in January 2026 that he knew a handful of small teams working this way.
What’s the difference between a dark factory and a software factory?
A software factory is any setup where triggers, not people, start coding agents. A dark factory is the kind where no person reviews the output either. Most software factories keep human review before merge, which Addy Osmani calls a lit factory.
Is a dark factory safe?
Only as safe as its checks. If the agent can change the tests, it can pass them without doing the work, which is why StrongDM keeps its scenarios out of the agent’s reach. Critics like Addy Osmani argue that tests can stay green while a codebase gets harder to understand.
What is a lit software factory?
Addy Osmani’s name for a software factory that keeps people in it: agents still do most of the building, but a person reads what comes out before it ships, and judgment moves up front to the product, design and architecture.