It's a little past midnight in early December, and I'm watching Telegram more than my screen. On my NAS, a four-core Celeron N5105 with 16 GB of memory, runs Hermes Agent, the open source agent from Nous Research. I write to it in French, it turns my requests into instructions for Claude Code, and Claude Code builds an internal web application for my employer, a training platform. Tonight a chain of scripts is moving on its own, step after step, all the way to deployment.
So I asked the agent (in French, translated here): "So in the end: the SDLC, Hermes, me asking you for things, and you producing them through Claude Code, which you govern. Is that a dark factory?"
Its answer: "Almost. An 80% dark factory, and the missing 20% is the part that matters."
I pushed: "What does it take to reach 100%?" This post is my answer, a bit longer than its own.
In brief
- Dark factory: a factory that runs with no humans on site. FANUC has worked that way since 2001. In January 2026, Dan Shapiro borrowed the term for the top level of software automation, "a black box that turns specs into software."
- My setup: Hermes Agent (Nous Research) on a NAS, driven from Telegram, governing Claude Code in non-interactive mode with my team's SDLC framework (spec, plan, TDD, automated reviews).
- The numbers: from December 2 to 4, 2026, 17 merge requests merged, 129 commits, 75,540 lines added, 7,865 tests. In one night, five merges and dev deployments between 9:48 pm and 5:35 am, with nobody at the screen.
- What's missing: intent, an eye on the product, security and personal-data trade-offs, and someone watching the factory itself.
- My position: for an internal app that handles personal data, I keep humans in the loop on purpose.
What is a software dark factory?
The image comes from manufacturing. Wikipedia defines "lights-out manufacturing or dark factory" as fully automating production with no human labour on site. The example everyone cites is FANUC, the Japanese robot maker, a lights-out factory since 2001. Robots build other robots there "at a rate of about 50 per 24-hour shift" and "can run unsupervised for as long as 30 days at a time."
On January 23, 2026, Dan Shapiro carried the image over to software in The Five Levels: from Spicy Autocomplete to the Dark Factory. His scale runs from Level 0 to Level 5 and follows the self-driving car analogy. At Level 3 you review the code the AI writes, and almost everyone tops out there. Level 4 is a robotaxi: "You write a spec. You argue with it about the spec. […] Then you leave for 12 hours, and check to see if the tests pass." At Level 5, it's not really a car any more: "It's a black box that turns specs into software." To explain the word "dark," Shapiro points to FANUC, a place "where humans are neither needed nor welcome."
Some teams already run at Level 5. On February 7, 2026, Simon Willison described how StrongDM's AI team build serious software without even looking at the code. Their two rules: "Code must not be written by humans" and "Code must not be reviewed by humans." To judge the result, they write scenarios stored outside the codebase, the equivalent of a holdout set in model training, which the coding agents never see. They also built a "Digital Twin Universe," behavioral clones of the third-party services their software depends on: Okta, Jira, Slack, Google Docs, Google Drive and Google Sheets. Their practical rule is the one that makes you blink. If you haven't spent at least $1,000 on tokens today per human engineer, your software factory has room for improvement. Willison ran the numbers, $20,000 a month per engineer, and admits that cools his interest.
My stack: Hermes Agent, Claude Code, TDD and an overnight pipeline
On that scale, I'm at Level 4, with pieces of Level 5.
I talk to Hermes from Telegram. Hermes starts Claude Code (on my Claude Max subscription) in non-interactive mode, each time in a clean git worktree. The team's SDLC framework imposes the rest: a spec, a plan, red-then-green TDD cycles, automated code and security reviews by sub-agents, and a dedicated agent for commits. I approve the gates (the spec, the plan) myself, or explicitly hand them to Hermes.
On top of that sits what I call the night chain, a bash script. For each step, Claude Code builds. When the plan's five-hour limit cuts the session, the chain reads the reset time and restarts by itself. Then it pushes, opens the merge request, waits for a green pipeline (retrying a failed job up to twice), merges and deploys to dev.
The numbers from December 2 to 4, 2026: 17 merge requests merged in a little over two days, 129 commits excluding merges, 75,540 lines of code and tests added, 362 test files and 7,865 tests at the end. On the night of the 3rd, the chain merged and deployed five times between 9:48 pm and 5:35 am, with nobody behind the screen.
And nobody reads the code. I haven't opened a single file. That is StrongDM's rule exactly, and I follow it without ever having decided to.
The NAS, for its part, climbs to 75 °C with a load of 6 on 4 cores. The thinking happens at Anthropic. What heats the box is the test suites running locally.
What 7,865 green tests don't see: the human 20%
If everything is automated, what am I still doing? Reading back over the week's messages, I keep finding the same gesture: I open the app and I click.
Intent, first. Every test passed on the content editing screen. I open it. You could move items, rename them, and not add any. The screens for adding existed, tested too, and no link led to them. Nearly eight thousand green tests don't tell you whether anyone can use the product.
The eye, too. The admin menu was empty. I asked for a real table, then for a dropdown "that you can tell is a menu." No test could fail on that: nobody had written down what I wanted before I saw it.
Above all, the trade-offs that commit you. A single sentence changed the security of a whole batch: "the manager only sees the progress of the people they manage." Right after, the trainer role lost the tracking view the agent had given it on its own initiative. Elsewhere, the agent escalated a question: should we hide that an identifier already exists somewhere else? I answered "we'll leave it like that." A security decision, made in a handful of words, and it's mine.
The unsettling part is that the factory knows. The headless sessions write their own "cognitive debt alerts": "you delegated every trade-off in a security batch, do you approve these two choices?" The machine is asking me back into the loop.
And the factory itself. One incident that week came from the deployment script. One step failed silently, the cd was skipped, and the old local copy, two weeks stale, went out to dev for a few minutes. The product code had nothing to do with it. The fix is a guardrail: only deploy if main contains the expected commit. When nobody reads the application's code anymore, someone has to read the factory's.
An on-demand security audit came back with 0 critical, 0 high and 2 medium findings: two trainers from different domains could interfere with each other. The chain fixed them. I was the one who thought of asking for the audit, though.
Then there are the humans I kept out of the loop on purpose. Sign-off from my designer colleague, from IT, from the data protection officer, and the production release. I haven't tried to automate any of them.
How do you get from an 80% to a 100% dark factory?
If I really wanted to turn the lights off, here is what I'd need, roughly in order of importance.
Acceptance scenarios written by a human and hidden from the agents, StrongDM's holdout. Today the agent writes the tests and the code that passes them: it grades its own homework. A set of scenarios it never sees would break that loop.
Tester agents that use the application in a browser, like a user would. Everything I found this week, I found by clicking. An agent trying to add a piece of content would have spotted the missing link before I did.
Twins of the external services. The database emulator is a start, a very long way from a Digital Twin Universe.
Production observability that sends errors back to the factory, so the loop closes on what users actually go through. And guardrails on the factory as much as on the product. My cd story shows it: the factory's pipeline deserves its own tests.
And a budget. My Max plan cuts out every five hours, and my chain has to wait for the reset. StrongDM aims for $1,000 per day per engineer. I couldn't justify the gap for an internal app.
And the real question: do I want that 100%? For this application, no. It handles employees' personal data, their progress, what their manager gets to see. Going to 100% takes the human out of the loop, and with it the intent and the judgment about use, which I don't yet know how to write into a spec. It takes accountability out too. GDPR requires a data controller, and I have never seen an agent sign a data protection impact assessment.
My role has shifted. I no longer write code and I no longer review it. I design the factory, tune its gates, and act as its first user. I like this job, and I haven't seen it in any job description yet.
Developer or factory designer: what Claude Code changes
A year ago, in my analysis of whether AI will replace developers, I argued that human-in-the-loop was a structural necessity. I still think so. Only, in my loop, the human no longer stands between the agent and the code. They stand between the product and the people who will use it.
That's close to what I described about the Forward Deployed Engineer, whose value lies in what they see in the field and bring back to the product. If the factory writes the code, the scarce skill is knowing what to ask of it and recognizing when it got things wrong.
On the gates themselves, I explained with Kaizen why I'd rather have them checked by code than by an agent's good intentions. And the ways of working with AI I compared last spring look different once nobody reads the code: the spec becomes the last text a human reads end to end.
Which leaves cognitive debt, and that's what keeps me up at night, more than the NAS temperature. 75,540 lines in two days that I haven't read is a codebase I don't know. The day the chain stalls on a bug no agent understands, someone will have to open the files. Tonight, I'm not sure it will be me.
Cover photo: KUKA robots spot-welding BMW 3 Series bodies at the BMW plant in Leipzig, 2005. © BMW Werk Leipzig, Wikimedia Commons, licensed CC BY-SA 2.0 DE, cropped.
Frequently asked questions
- What is a dark factory in software development?
- A software dark factory is a pipeline where AI agents turn specifications into software without any human writing or reviewing the code. The term comes from manufacturing (lights-out manufacturing) and was applied to software by Dan Shapiro in January 2026 as the top level of his automation scale.
- What are Dan Shapiro's levels of AI-assisted development?
- In a post dated January 23, 2026, Dan Shapiro describes a scale running from Level 0 (code written by hand) to Level 5 (a black box that turns specs into software). At Level 3, the developer reviews the code the AI produces. At Level 4, the developer writes a spec, leaves for 12 hours and checks whether the tests pass.
- How does StrongDM stop coding agents from gaming the tests?
- According to Simon Willison (February 7, 2026), StrongDM's AI team writes acceptance scenarios stored outside the codebase, like a holdout set in model training. The coding agents never see them, so the software is judged on criteria the agents could not tune for.
- Can Claude Code run unattended overnight?
- Yes, in non-interactive mode with a script that handles restarts. In Angelo Lima's setup, a bash script restarts Claude Code when the Claude Max five-hour limit cuts the session, then pushes, waits for a green pipeline, merges and deploys to the dev environment. One night in December 2026 it merged and deployed five merge requests between 9:48 pm and 5:35 am.
- What is missing to go from an 80% dark factory to 100%?
- In Angelo Lima's experience: acceptance scenarios hidden from the agents, tester agents that use the application in a real browser, twins of external services, production observability wired back into the pipeline, guardrails on the factory itself, and a far larger token budget. Product intent and accountability (GDPR, security) stay human.


