Research briefing · Verified 2026-07-02
Dark Factories: Agentic Software Factories
Executive summary
A "dark factory" in software borrows the manufacturing term "lights-out factory" — a plant that runs with no humans on-site — and applies it to systems where fleets of AI coding agents write, test, and ship software autonomously, without humans watching each step. The term's most visible champion is Steve Yegge, whose open-source orchestrator Gas Town (launched Jan 1, 2026) and its SDK successor Gas City (v1.0, April 2026) run tens to hundreds of concurrent coding agents; consultancies like BCG Platinion have picked up the framing as the "Agentic Software Factory."
The state of the art is real but early and expensive: Yegge himself calls Gas Town "a cash guzzler," and Microsoft Research finds agentic coding consumes roughly 1000x the tokens of code chat, with wildly variable and unpredictable costs. Headline productivity claims (BCG's "3–5x") are self-reported and unaudited, and the most dramatic case study circulating (Spotify's allegedly all-AI codebase) failed fact-checking outright. For enterprises, the emerging playbook is graduated human oversight — routing agent work into human-in-the-loop, human-over-the-loop, or automated-with-monitoring tiers based on risk — plus hard attention to token economics and observability.
1. What "dark factory" means and where it came from
In manufacturing, "lights-out" — also called a "dark factory" or "automatic factory" — means fully automating production so that no human labour presence is required on-site (Wikipedia: Lights out (manufacturing)). The lights can literally stay off because nobody is in the building. FANUC's robot plants, which can run unsupervised for weeks, are the canonical example.
The software industry borrowed the term for AI coding at scale. Steve Yegge gives the most-cited definition:
"A dark factory is any system in which coding agents are set up to work autonomously without humans watching." — Steve Yegge, "Welcome to Gas City" (April 2026)
Yegge hedges that "there aren't any reliable definitions yet," and he deliberately positions his own Gas City as a "Light Factory" — "or at least, a very well-lit dark one" — because all agent workers remain visible and addressable. The dark/light distinction he draws is about observability: the rooms where agents work "are allowed to have windows."
Consulting firms have adopted a parallel vocabulary. BCG Platinion published a piece under the URL slug "the-dark-software-factory" defining an "Agentic Software Factory": "Autonomous AI agents build, test, and ship software solutions around the clock, while humans define business intent and review outcomes" (BCG Platinion, March 2026). The lights-out analogy is explicit — the article opens: "Software Engineering Has Changed. They Turned the Lights Off."
2. Steve Yegge: Gas Town, Beads, and Gas City
Yegge is the central builder-evangelist in this space. Over roughly the year preceding February 2026 he built two open-source tools as explicit experiments in multi-agent coordination, shared memory, and AI-driven workflows: Beads (a git-backed agent memory / issue-tracking system) and Gas Town (Software Engineering Daily).
Gas Town
- What it is: an MIT-licensed multi-agent orchestrator for running many Claude Code instances in parallel, open-sourced January 1, 2026. It addresses durable memory, session handoffs, parallel agents that don't conflict, and a record of completed work (yegge.ai/gastown). Yegge explicitly calls it "an early example of a 'Dark Factory.'"
- Scale claims: Yegge says he's "tamed" agents "to where you can use 20–30 at once, productively, on a sustained basis," though he typically runs about a dozen ("Welcome to Gas Town").
- How it was built: the Go version took ~17 days, ~75,000 lines of code, ~2,000 commits — and was "100% vibe coded." Yegge: "I've never seen the code, and I never care to." It was his fourth complete orchestrator of 2025, after two failed versions and a Python v3.
- Maturity: reached v1.0 on April 3, 2026, roughly three months after launch ("From Clown Show to v1.0"). The repo (~16k GitHub stars) remains actively maintained as of July 2026.
Gas City
Gas City is "Gas Town rewritten as an SDK": the stack decomposed into composable, declarative building blocks called "packs" (TOML) for assembling arbitrary agent topologies. v1.0.0 shipped the week of the April 24, 2026 announcement essay. Yegge calls it "an SDK for building your own dark factories" and reports that Julian Knutsen — a Gas City co-creator, so this is a team anecdote, not an independent benchmark — "has had hundreds of concurrent workers in a city" ("Welcome to Gas City").
The adoption ladder
In a Pragmatic Engineer interview (Feb 2026), Yegge describes an 8-level ladder of AI coding adoption culminating in fleet operation: Level 6 — several agents; Level 7 — 10+ agents managed by hand; Level 8 — you build your own orchestrator to coordinate more agents. This ladder is a useful shared vocabulary when talking with peers about where an org sits.
3. Who else is building or discussing this
- Anthropic / Claude Code: Yegge claims "Claude Code and some other agents are trying to turn themselves into dark factories, by running subagents" with built-in task management and memory — but "with a product lens, no platform... a monolith" (Yegge, April 2026). Note this is Yegge's characterization, not Anthropic's own positioning.
- BCG Platinion: publishing enterprise-facing frameworks for the "Agentic Software Factory," aimed at CIO audiences (March 2026).
- Academia: Microsoft Research / Stanford / MIT collaborators on agent token economics (arXiv 2604.22750); the GAIE governance framework for regulated domains (arXiv 2606.22484) — see sections 4 and 5.
- The broader discourse: As of early 2026, commentators frame the core challenge of software development as shifting away from writing code toward orchestrating work, managing context, and maintaining shared understanding across fleets of agents (SED; corroborated by Anthropic's 2026 Agentic Coding Trends Report's "orchestration era" framing and independent essays). Treat this as a framing gaining currency, not a settled consensus.
4. State of the art, economics, and skepticism
What it costs
The clearest verified signal is that autonomous coding fleets are expensive and hard to budget:
- Yegge on Gas Town: "It is a cash guzzler." He had to open a second Claude Code account within days of launch and projected needing a third within a week — "Do not use Gas Town if you care about money" (Jan 2026). His posts cite roughly $100/hour of runtime; HN commenters note subscription pricing actually subsidizes the true API cost.
- Yegge claims companies running agentic coding "are all starting to spend their own salaries on tokens" — framing token spend as the core economics of agent fleets (Pragmatic Engineer).
A Microsoft Research / Stanford / MIT study of 8 frontier models on SWE-bench Verified ("How Do AI Agents Spend Your Money?", April 2026, preprint) quantifies the problem:
- Agentic coding tasks consume roughly 1000x more tokens than code reasoning or code chat, with input tokens (re-sent context), not output tokens, driving cost.
- Token usage is highly stochastic: repeated runs of the same task can differ by up to 30x, and more spend doesn't buy accuracy — accuracy often peaks at intermediate cost and saturates beyond it.
- Frontier models cannot forecast their own token consumption (predicted-vs-actual correlation only up to 0.39) and systematically underestimate real costs — undermining pre-task budgeting for agent fleets. The authors recommend adaptive in-task budgeting instead.
Claimed results — and why to discount them
| Claim | Source | Status |
|---|---|---|
| 3–5x average productivity gains for full agentic factories vs. up to 30% for copilots | BCG Platinion | Verified as attributed; unsourced within the article, self-reported, no methodology |
| 3–5 engineers running Gas City packs can replace seven-figure SaaS bills; non-technical staff rebuilt a $30k/yr SaaS tool on Gas Town | Yegge | Verified as attributed; self-reported, anonymous customer, no token costs or throughput metrics given |
| Spotify merges 650 AI-generated PRs/month; engineers haven't written code since Dec 2025 | circulated via BCG piece | REFUTED (0–3 in verification) |
Additional skeptical context surfaced during verification: METR's randomized controlled trial found experienced developers were slower with AI tools (initially −19%; revised Feb 2026 to roughly −4%, CI −15% to +9%) — that measured copilot-style use rather than agent factories, so it qualifies rather than contradicts the factory claims, but it should temper enthusiasm about self-reported multipliers. Critics such as Steve Klabnik and pivot-to-ai.com dispute Gas Town's economics while not disputing what Yegge said. Notably, no independently audited case study of factory-scale results — with throughput, defect rates, and token costs — survived verification for this report.
5. What an enterprise should know
Graduated human oversight (the emerging governance pattern)
The GAIE framework ("Governed AI-Assisted Engineering," arXiv 2606.22484, June 2026 — a single-author preprint, not yet peer-reviewed) proposes a three-tier oversight model for agentic code generation in regulated domains:
- Human-in-the-loop — strategic functions; a human approves before action.
- Human-over-the-loop — customer-impacting work; humans supervise and can intervene.
- Automated-with-monitoring — internal tasks; agents run autonomously under telemetry.
Its Oversight Classification Model (OCM) is a deterministic decision function routing each task to a tier based on four factors: regulatory impact, customer proximity, reversibility, and data sensitivity — with each tier defining required evidence artifacts for compliance auditability. Even if you never adopt GAIE itself, those four routing factors and the evidence-artifact requirement are a sound checklist for any agent-fleet rollout.
Architecture and operating lessons from the verified record
- Observability is the dividing line. Yegge's own "Light Factory" repositioning concedes the core enterprise objection to dark factories: agents you can't see are agents you can't trust or audit. Insist that every worker is visible and addressable.
- Composable topologies over monoliths. The Gas Town → Gas City arc (monolithic orchestrator → declarative "packs" SDK) mirrors a familiar platform lesson; Yegge criticizes agent products that bake in orchestration "with a product lens, no platform."
- Budget for stochastic, input-token-dominated costs. Plan on 30x run-to-run variance, use prompt caching, cap spend adaptively in-task rather than pre-task, and don't trust model self-estimates of cost.
- Persistent memory and work tracking are prerequisites, not add-ons. The problems Gas Town was built to solve — durable memory, session handoffs, non-conflicting parallel agents, a clean record of what got done — are exactly the gaps an enterprise pilot will hit first.
- Expect iteration and failure. Gas Town was Yegge's fourth orchestrator in a year; the first two failed outright. Treat any factory build as an evolving platform investment, not a one-shot deployment.
- Discount vendor multipliers. The only headline case study in the leading consulting piece failed fact-checking. Demand audited throughput, defect, and cost data before believing "3–5x."
Caveats
Self-reported figures dominate. Nearly all scale and economics numbers (20–30 agents, hundreds of workers, SaaS-replacement claims, BCG's 3–5x) come from the builders or their promoters, without independent audit. The "hundreds of concurrent workers" figure comes from a Gas City co-creator, not an independent user.
Preprints, not peer review. Both academic anchors (Microsoft Research token study; GAIE) are recent preprints. The token findings are benchmark-relative (SWE-bench Verified), and prompt-caching discounts soften the dollar impact of input-token dominance.
Fast-moving topic. Sources span January–June 2026; capabilities, pricing, and tooling are changing monthly. The lights-out manufacturing analogy is also partly interpretive — Yegge's essay implies rather than explicitly names the manufacturing origin.
One refuted claim: the Spotify "650 AI PRs/month, no human code since Dec 2025" story failed verification 0–3 and should not be repeated.
Open questions
- Are there any independently audited, named enterprise case studies of factory-scale agentic development — with throughput, defect rates, and full token costs?
- How do Gas Town/Gas City compare with other orchestration stacks (Claude Code subagents/agent teams, LangGraph-style frameworks, internal FAANG systems) on cost per merged change and quality?
- Does the Microsoft Research finding that accuracy saturates at intermediate cost hold outside SWE-bench — i.e., on real enterprise repos and long-horizon tasks?
- What do security review, incident attribution, and liability look like when code is "100% vibe coded" and no human has read it?
Key sources
- Yegge, "Welcome to Gas City" — https://yegge.ai/essays/welcome-to-gas-city/
- Yegge, Gas Town overview — https://yegge.ai/gastown
- Yegge, "Welcome to Gas Town" — https://steve-yegge.medium.com/welcome-to-gas-town-4f25ee16dd04
- Yegge, "Gas Town: from Clown Show to v1.0" — https://steve-yegge.medium.com/gas-town-from-clown-show-to-v1-0-c239d9a407ec
- Wikipedia, "Lights out (manufacturing)" — https://en.wikipedia.org/wiki/Lights_out_(manufacturing)
- BCG Platinion, "The Dark Software Factory" — https://www.bcgplatinion.com/insights/the-dark-software-factory
- Microsoft Research, "How Do AI Agents Spend Your Money?" (arXiv 2604.22750) — https://www.microsoft.com/en-us/research/publication/how-do-ai-agents-spend-your-money-analyzing-and-predicting-token-consumption-in-agentic-coding-tasks/
- Kang, "Governed AI-Assisted Engineering (GAIE)" (arXiv 2606.22484) — https://arxiv.org/html/2606.22484v1
- Pragmatic Engineer, "Steve Yegge on AI agents" — https://newsletter.pragmaticengineer.com/p/steve-yegge-on-ai-agents-and-the
- Software Engineering Daily, "Gas Town, Beads, and the Rise of Agentic Development" — https://softwareengineeringdaily.com/2026/02/12/gas-town-beads-and-the-rise-of-agentic-development-with-steve-yegge/
Further reading
- StrongDM, "The StrongDM Software Factory: Building Software with AI" — a first-party account of a three-engineer factory whose cardinal rule is that no human writes or reviews code; spec-driven, non-interactive agents — https://www.strongdm.com/blog/the-strongdm-software-factory-building-software-with-ai
- Simon Willison on the "software factory" pattern — https://simonwillison.net/2026/Feb/7/software-factory/
- Addy Osmani, "Orchestrating a Code Agent Orchestra" — https://addyosmani.com/blog/code-agent-orchestra/
- Aviator, "The Rise of Coding Agent Orchestrators" — a survey of the orchestrator landscape — https://www.aviator.co/blog/the-rise-of-coding-agent-orchestrators/
- O'Reilly Radar, "Dark Factories: Rise of the Trycycle" — a skeptical industry-press take — https://www.oreilly.com/radar/dark-factories-rise-of-the-trycycle/
- EPAM, "Building a Dark Factory with AI Agents" — https://www.epam.com/insights/ai/blogs/building-a-dark-factory-with-ai-agents
- Thoughtworks, "Cybernetics and human-on-the-loop in agentic coding" — https://www.thoughtworks.com/en-us/insights/blog/generative-ai/cybernetics-and-human-on-the-loop-in-agentic-coding
- Infralovers, "Architecture patterns for the Dark Factory" — https://www.infralovers.com/blog/2026-02-22-architektur-patterns-dark-factory/
- Hackernoon, "The Dark Factory Pattern: Moving from AI-Assisted to Fully Autonomous Coding" — https://hackernoon.com/the-dark-factory-pattern-moving-from-ai-assisted-to-fully-autonomous-coding
- Johnny Butler, "Dark Factory: No Humans Should Write Code, and What It Taught Me" — a hands-on practitioner retrospective — https://world.hey.com/johnnybutler/dark-factory-no-humans-should-write-code-and-what-it-taught-me-3f1a06f0
- Medium (polyglot_factotum), "Slop Review with AI: The Dark Factory" — a critical take on review quality — https://medium.com/@polyglot_factotum/slop-review-with-ai-the-dark-factory-ffca22406822