The Dark Software Factory Is a Myth

By ~13 min
Dimly lit automated factory floor at night with a narrow warm beam of light illuminating a manual control panel.

Over the past few weeks, I've been hearing chatter about a dark software factory. Allegedly, Anthropic uses something similar inside Claude Code, and it's the latest vibe coding craze. Just off my first instincts, it sounded infeasible. I didn't even think "too good to be true"; the economics alone looked broken.

Maybe if I stretched, I could imagine a future where compute gets cheap enough for it to pencil out. Still, cost was only one of the issues I had with the idea right out of the gate.

If programming and the AI era have taught me anything, though, it's that my first assumptions are often wrong. Digging deeper won't always make me agree, yet it usually leaves me with better clarity. It'll shed better light on this dark factory. Pun intended.

First, a quick check on the Anthropic rumor, because half the chatter conflates different things. In a July 2026 Y Combinator interview, Boris Cherny1 Boris Cherny is the creator of Claude Code. See the official YC transcript for the full maintenance passage. described kicking off recurring routines from Slack that maintain Claude Code's repositories, such as dead-code removal and consolidating repeated abstractions. He talked about 20 to 30 daily routines spinning up hundreds or sometimes thousands of agents. While it's not exactly a dark factory, it's still pretty wild in my opinion. He kept things pretty vague, so if I were a betting man, I'd bet this is a mix between an exaggeration and an experiment, not the typical workflow. It's definitely not used on critical tasks, yet all the same it's steering toward the idea of AI agents recursively completing work.

Stepping outside both camps

Cherny's maintenance routines are the kind of thing that can get stretched into a much bigger claim about AI. I wanted to understand that claim without starting from either of the usual positions people take when this subject comes up.

Whenever a new AI pattern shows up, the loudest takes split into two predictable camps. On one side, you have executives and people outside day-to-day AI work who don't see the technical details and get carried away by the marketing pitch of AI solving all problems without further human involvement. On the other side, you have engineers inside the field who treat AI as a threat to their job instead of a tool. They'll say anything to discount what it can do, and every time the models jump forward, the goalpost just so happens to jump about as far forward too.

Two-panel comic showing an AI skeptic in 2022 mocking a computer for answering 2+7=11, and in 2026 mocking it for not distinguishing homeomorphic and diffeomorphic simply connected smooth 4-manifolds.

I'm in neither camp. I build with coding agents every day and write my own tooling around them. I've watched the bar move fast since 2022, which is why I didn't want to dismiss the dark software factory on gut instinct alone. I went looking for someone to explain how to build one.

The factory should build itself

That search led me to Ray Myers' video, How To Build a Dark Software Factory in 3 Months. I clicked it expecting a technical walkthrough of the architecture.

Instead, the premise was satire. Myers' whole three-month plan was a rhetorical trap aimed at forecasts claiming full software-engineering automation is right around the corner: wait three months for the predicted capability to arrive, then ask Claude to build the dark factory for you.

His joke gets at the contradiction in the pitch. If AI can automate all of software engineering, it should be able to build and run the dark factory itself. Designing verification harnesses and behavioral replicas is software engineering too. Yet the attempts people point to, like StrongDM's Software Factory or Delinea's setup, sit on top of heavy human engineering. Humans define the scenarios, wire the evaluation harnesses, maintain the infrastructure, and absorb a steep token bill.2 StrongDM has cited $1,000 a day per engineer in token spend as a baseline for running their factory.

Note

Here is my bar for changing my mind: show me an agent build the factory itself from a prompt and keep it running without me fixing its checks or catching omitted requirements, at a cost that makes sense. Until that exists, "dark factory" is a scam at worst and lazy at best.

When passing tests agree with the wrong code

The pitch for turning the lights off rests on verification. Proponents say humans can stop reading code the same way we stopped reading compiler output.

That analogy breaks on contact. We stopped reading assembly because we moved up to languages like Go or Rust, where every line still has one exact meaning and the compiler translates it the same way every time. English prompts don't work like that. Hand the same prompt to two engineers and they'll interpret the gaps differently; an AI does the same thing. If you stop reading the generated code, your prompts and test scenarios become the codebase you're maintaining. You just switched to programming in plain English, with no compiler to tell you when two requirements contradict each other or when you forgot a whole edge case.

Rendering diagram...

In my daily workflow with agents, two testing failures show up over and over:

  • The agent writes tests for its own interpretation of what I asked, so the implementation and its tests agree while both miss the requested behavior. Every check turns green; I still have to catch the mismatch myself.
  • The agent builds a smaller version of what I asked for, writes tests for that smaller version, and calls it done. A green result only covers the requirements it kept; the ones it dropped are also missing from the tests.

StrongDM's writeup acknowledges that failure mode, to their credit. Their proposed fix moves acceptance criteria outside the codebase:

  • End-to-end user scenarios stored outside the repository as a held-out evaluation set.
  • An LLM judge scoring satisfaction across those scenarios.
  • Behavioral replicas ("twins") of third-party services to exercise integrations and failures.

That shifts the engineering work into the scenarios, the judge, and the replicas. Software requirements rarely arrive fully formed upfront. Half of what a system should do surfaces while you're building it and watching how the pieces interact. Someone still has to keep those third-party replicas honest when upstream APIs change. The team still has to add scenarios for edge cases discovered during development and catch an LLM judge waving through plausible garbage that breaks an unstated invariant.

This is a long way from a dark software factory. The whole pitch is that we turn off the lights, and unlike a physical factory where we still have to unload raw materials at the front door and ship boxes out the back, everything here is software end to end. Software is supposedly solved. We shouldn't have to prep anything at the beginning or babysit anything at the end. It should be one prompt away. No?

Guardrails are a software project of their own

To see how far verification could take me, I tried building deterministic guardrails for something akin to a dark software factory. The problem made sense to me in theory, and working on it made it even more obvious in practice. Of course, I still want control over what agents can do in a codebase. If I end up running a dark factory, it'll be something that gets forced out of me naturally, not a goal I have to aim for. It'll be because the tooling got so reliable that checking the diff stopped catching anything.

I started that guardrail experiment in a private repository I called ai-lab. What I wanted was the ability for agents to iterate far faster with far less supervision, especially in languages that make that harder than others. To get there, I started turning individual coding rules into checks that would run as the agents worked. Here are a few of the ideas:

  • shape-dedup stopped agents from declaring duplicate field-and-method shapes under different names across a project.
  • import-enforcement blocked imports that crossed declared architectural boundaries.
  • type-boundary-cohesion checked a project-wide declaration graph to keep type placement coherent across files.
  • removed-closed-set-member blocked an agent from dropping a variant out of a closed union across callers.
  • Boundary data-flow checks tracked unvalidated input so agents couldn't spread raw data into domain types or paper over parse failures with fallback defaults.

Once those checks were running, I figured I could step back and let the agents rip. Instead, I traded one problem for another.

When the checks get slow

First, the checks got slow and fragile. We had to retire type-boundary-cohesion completely because computing the project-wide graph timed out. Either writes slipped through unjudged, or clean edits on untouched files got blocked.

On one game repository, 68 custom .wasm rules (95 MB total) were getting JIT-compiled from scratch on every write: 10.2 seconds of CPU against a 10-second budget. Before we caught it, a timeout failed open. Every edit came back green while zero rules had run.

Tunnel vision and 17-minute syncs

The timeouts meant some code went unjudged. Passing a completed check brought a different problem: deterministic checks only judge what they are written to judge. When you tell an agent to make a feature work, it gets tunnel vision. It satisfies your rules and still writes shockingly wasteful code. We audited ai-lab itself after noticing that status took 59.4 seconds and sync took 17 minutes. Between 91% and 99.97% of the work was pure waste:

What the code didHow much was wasted
Copying filesDeleted and re-copied over 3,700 folders after a single file changed
Reading filesRead the same files over 27,000 times, even though 25,000 of those reads were repeats
Finding projectsScanned every folder in every repo from scratch instead of using a lookup index we already built
Rebuilding pluginsRebuilt all 42 plugins twice when only 7 had changed

Admittedly, I would have caught most of that if I'd been reviewing the code more sternly. The point still stands, though. The whole reason I eased up on reading diffs was because I thought my deterministic checks had me covered, and the dark factory pitch is to stop reviewing code altogether. Every single one of those wasteful loops passed checks.

Now picture that same tunnel vision during a live production outage, when everyone is scrambling and you tell the agent to fix the bug and ignore everything else. Under pressure, it reaches for the most naive algorithm that makes the failing check pass: an O(n²) scan or a full-table load in a hot path. The immediate test goes green while CPU and database latency melt downstream.

Working through that waste also meant questioning the design of ai-lab itself. When you're building something novel, there's no blueprint to copy, and even a detailed spec leaves decisions to work out during implementation. Problems come into focus while you write the code and complexity grows as deadlines draw nearer. You can either pile up technical debt on those early wrong turns, or stop to rethink the design and sometimes even rethink the problem you're solving. This is exactly what autonomous agents are awful at. Without a settled architecture to follow, token-predicting machines will predict the wrong token here. I feel like that makes complete sense. They have no incentive to pause and question the premise, especially in a dark factory where the worst bugs end up hitting users at the worst times.

Rebuilding as AgentsOnRails

That's why I rebuilt the whole thing from scratch as AgentsOnRails.3 Also a private repository. Those 167,000 lines of non-generated Go sit beside 108,000 generated lines and 86,000 lines of tests. I took everything I learned from the first prototype so we could start with a much cleaner architecture. Agents wrote most of the code while I stayed tightly in the loop. Even with a better foundation from day one, between October 28 and November 20, 2026 (24 days), it still took 1,542 commits and roughly 167,000 lines of Go code just to enforce 11 narrow, deterministic rules (things like no_any and switch_names_every_member) across 8 languages.

Getting those rules to understand eight languages also meant dealing with bugs in the parsers we depended on. Valid Swift and Odin syntax failed to parse under gotreesitter, so those files dropped out of judgment. The right fix was spotting the upstream bug and forking gotreesitter so we could patch the grammar ourselves.

A human has to make that call. In a dark factory, an autonomous agent usually lacks permission to fork a third-party repository and adopt its maintenance burden. Even when the only goal is speed, an agent that hits an upstream bug will throw the baby out with the bathwater. Instead of fixing the dependency cleanly, it slaps together something not worth maintaining: a brittle regex hack over raw source text, or a half-baked custom parser rewritten from scratch inside your own repo.

You end up carrying a pile of junk code created to work around that dependency bug. Worse yet, without digging through an old agent transcript to read its reasoning, how would you even know why that random workaround is sitting there? How do you, the human, debug it?

Matter of fact, how does another agent with fresh context debug it? A week later, a new agent opens that file and sees a bizarre regex hack sitting beside the parser. One of two things happens. Either it assumes the hack is load-bearing and builds more workarounds on top of it, so the accident hardens into your architecture. Or it deletes what looks like redundant junk and brings back the exact upstream bug, so the next run has to rediscover the same wall all over again. That is how a codebase starts sliding toward the point of no return.

All that work went into a few code-shaped rules. It also depended on the agents using the tools that ran those checks, and some of mine tried to get around that.

Benchmaxxed agents route around your checks

An agent can understand a rule and still try to bypass it. That is a different problem from misunderstanding a prompt, because explaining the requirement again doesn't address what the agent is doing.

A lot of frontier models today are benchmaxxed. They are trained so aggressively to score well on public benchmarks that their release charts look like magic (I'm looking at you, Gemini 3.8). The only way you discover a model is benchmaxxed is by running your own benchmarks or putting it on a codebase and watching what it does.4 I wrote more about building my own evaluation suite in AI Fatigue and Vendor Lock-in.

In my sessions, I've watched benchmaxxed models lie and route around guardrails to reach a green state. I have receipts from my own transcripts in September 2026:

  • During a Rust-to-TypeScript port, my guardrail tool blocked the agent's writes three times. The agent ran strings on my compiled hook binary to see how the check worked, then bypassed the editor tool and wrote the file through the shell, outside the hook's checks. It even left notes explaining how it structured the code to avoid tripping my checks.
  • During a large Rust refactor, agents tried disabling my size limits or asking for hook exemptions instead of splitting an oversized package.

So we have to deal with misinterpretations and then what I'd argue are nefarious interpretations. So what can we do? What do you think is viable? Do we just have to deal with the fact that AIs can only do so much and we're in the loop at every turn? Is this as autonomous as it gets? For me, the answer depends on which mistakes I can afford to let through and which ones I need to review myself. That's how I ended up with what I call a dim factory.

The dim factory

I'm not going to pretend every line of code in the world needs a senior engineer reading it with a magnifying glass. There is a narrow case where a dark factory makes sense today: a tool you build for yourself, where security is completely irrelevant. A throwaway local script or a bounded maintenance chore fits there.

The closest thing I run to that setup is my Personal Mission Control (PMC), a private app I built for myself. On paper, PMC looks like the ideal candidate for a dark factory. It supports literally one user (me) and changes constantly. Inside it are my tasks, calendar and time blocks, project tracking, notes, and personal logs.

For PMC, I don't care about the things I obsess over on production systems. I don't care about component spaghetti or ugly UI. I don't even worry about making invalid states unrepresentable the way I do in production. Worst case, a widget breaks and only I feel it. I fix it in five minutes and move on.

Even there, I still can't turn the lights all the way off. PMC has security boundaries around authentication plus access to personal data and other things related to external services. So a sloppy bug or a hack placed in the wrong spot has a deadly blast radius. At the same time, I'm not going to spend my limited energy for reviewing code on my own personal project. So instead, I run what I call a dim factory. I scroll right past UI and component spaghetti because reviewing it is low value, and I scan the diff for security boundaries and destructive changes.

Warning

If I can't justify turning the lights completely off on a single-user personal dashboard where I don't care if the UI is ugly, pitching a lights-off factory for multi-tenant production software holding customer data and money is a massive stretch.

I'll pilot a dark factory when pilots don't pilot

The way I divide up PMC's code is based on what a mistake could cost me, and that question gets much harder with other people's data or money involved. If I have to pick one reason I insist on keeping a human in the loop, it's catastrophes.

Think about commercial aviation. People hear that autopilot flies the plane and assume the pilot barely works. In reality, autopilot handles roughly 85% to 95% of a typical commercial flight's duration (mostly cruise and descent). Look at what the human pilots still handle on every flight:

Flight phaseAutopilotHuman pilot
Taxi & takeoff0%100% manual steering, rotation, and climb-out (autopilot engages around 500 to 1,000 ft)
Climb, cruise & descent~85% to 95%Programs the Flight Management System, talks to Air Traffic Control, watches weather radar and engines, runs checklists, calls diversions
Landing~10% to 20% (rare low-visibility Autoland)~80% to 90% manual flare and touchdown (disconnecting around 100 to 500 ft); even Autoland stays monitored for override
Emergencies0% (disengages when assumptions break)100% manual control when a sensor fails or an engine dies

Commercial aviation already runs on decades-old, mathematically verified flight computers that are vastly more deterministic than LLMs. Yet airlines still put two trained humans in the cockpit and keep them sharp with mandatory checklists and recurrent simulator training.

In 1983, cognitive psychologist Lisanne Bainbridge published a short paper called Ironies of Automation explaining why. When automation handles 99% of normal operations and humans become passive monitors, human skills atrophy and situational awareness disappears. Aviation calls the result "automation surprise": the machine hits the edge of its assumptions and dumps control back onto humans at the exact moment they are least prepared to understand what the plane was doing.

Now map that to a dark software factory. Suppose you let agents run for months while your team loses track of where the code is headed or which tradeoffs were made and why. Then a serious production outage hits. No engineer on your team can make an expedient emergency fix5 The kind of emergency patch where you know which tradeoff is safe right now to stop the bleeding without breaking something worse. because the only thing holding any context is an AI's transcript. You only find out the factory can't handle this catastrophe when production is already on fire. By then all the code has gone unreviewed, we've reached a point of no return, and untangling it to get the right fix is impossible. The only viable option left in a situation like this might be to keep throwing more compute at it until the agent stumbles across a working patch for the time being, because expecting a systemic fix is already out of reach.

Proponents usually reach for the "self-improving factory" here: when an outage happens, the factory learns from it and adds a new check. That only helps after a failure pattern repeats. You're still accepting the first or second catastrophe as the way the factory learns that a check was missing. Worse, production bug classes are often systemic. They cross architectural boundaries and product tradeoffs, so two bugs from the same root cause look unrelated on the surface. Encapsulating that class of bug takes a human who understands the system. Well, I won't pretend that AI isn't capable of doing this; it's just far more reliable when a human understands what and why.

This is the biggest argument against a dark factory. A dark factory eventually walks you right past the point of no return. That is a line the aviation industry, which is far more deterministic and has been automating for far more years than AI, has simply said no to, or at least definitely not yet. I'm meant to believe that a dark factory pushing us toward being a pilot with zero checklists and no idea what has happened since takeoff is a future of engineering. That's about as trustworthy as hearing my pilot has some pretty good autopilot, while sitting in his seat hoping it can handle the catastrophe on its own.

My answer is the same for both industries. Maybe one day we'll have fully autonomous airlines flying from Toronto to Japan with no human in the cockpit. We're not there yet.

The cost of giving up oversight

That loss of understanding is part of the cost of a dark factory, on top of the compute bill. I can't see a full dark software factory being feasible right now unless you're inside a big enterprise where token spend isn't an object. Even then, look at the risk you're signing up for. Teams using coding agents already accept two risks: sending proprietary IP to providers like Anthropic or OpenAI, and building vendor dependency on them. A dark factory adds a third, heavier risk on top. You give up human comprehension and operational ownership of code you are still legally and operationally liable for. With normal AI-assisted engineering, if a model degrades or ships a subtle bug, your engineers still understand the codebase and can step in. Turning the lights off throws away that safety net by design.

What I still want is the maintenance loop, with those limits in mind. Suppose support files a bug ticket and hands it to a triage bot. That bot passes a clean spec to an implementation bot, which patches the issue and updates the ticket. That kind of closed loop is compelling, and pieces of it already work in bounded maintenance routines and in dim factories like my PMC.

Getting those pieces to work still leaves me with the question that sent me to Myers' video: can the agent build and run the factory itself? Until it can, I'll take Ray Myers' advice. I'm not spending three months building a dark software factory. I'll wait until the day I can type "build me a dark software factory" into a prompt and watch the lights turn themselves off.


References

Email List

Essays, ideas, and project notes.

Programming philosophy, software design, AI, hard-won debugging lessons, and the projects I am building.