# I'm Building an AI Dark Factory That Ships Its Own Code (Public Experiment)
<!--
ref: @content/youtube/cole-medin/im-building-an-ai-dark-factory-that-ships-its-own-code-public-experiment
tags: [AI dark factory, autonomous coding, Archon, agent governance, holdout validation, model routing, regression testing]
version: 2
updated_at: 2026-11-24T06:04:53.223Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=6woc6ii-zoE)**

# I'm Building an AI Dark Factory That Ships Its Own Code (Public Experiment)

*Synthesized from Cole Medin, 2026-04-16.*

Cole Medin presents solo, describing a public experiment in which an AI coding system plans, implements, validates and merges changes to production with no human approval step. He says the system is not yet practical for production code and was still being built when the video was made.

## Core Thesis
Cole Medin argues that the next level of AI-assisted development is a "dark factory," in which the engineer sets mission and rules and the AI handles implementation, testing and shipping. He is open that this is level five on Dan Shapiro's scale and that he is uncomfortable with it, so he frames the project as an experiment that is built in public, with the reliability built in through governance files, workflow orchestration and separated validation.

## Key Insights
- Dan Shapiro's levels, as Cole presents them: level 0 is spicy autocomplete; level 1 is the coding intern; level 2 is the junior developer, with AI writing most code and a human reviewing it; level 4 is unattended harnesses that run overnight with final human review; level 5 is the dark factory, with no review before production.
- Cole's governance layer has three files loaded into every workflow: mission.md (scope, in-scope and out-of-scope features, and what the factory must never change), factory rules (triage, labels, PR size limits and auto-merge gates such as browser-based testing), and CLAUDE.md (stack, layout and test commands).
- The application under construction is a RAG agent that answers questions over Cole's YouTube videos. Out-of-scope items include other channels, non-YouTube content, model swaps, payments and a mobile app.
- Archon is the workflow engine. Triage runs on a schedule: a bash step fetches recent issues, an agent classifies them against mission.md and the factory rules, and deterministic steps apply labels and close rejected issues with a comment.
- Claude Code is routed through environment variables to MiniMax M2.7 for throughput and cost reasons. He says Anthropic subscription rate limits would be hit quickly at the planned volume.
- Implementation runs in parallel Archon workflows, each in its own worktree. Each one researches the issue, classifies it as a bug or a feature, plans or investigates, implements, opens a PR and validates.
- The holdout pattern from StrongDM keeps validation separate. The validation agent receives the user journey and the diff, but none of the development context, so it cannot be biased by the implementer. Browser automation tests the user journey end to end.
- The planned next piece is a weekly regression run over a document of user journeys. It would open GitHub issues for anything that is not right.
- Cole says he has not yet finished the wiring. He plans to host the system on a machine that runs 24/7, and to publish the app for public issues.

## Actionable Takeaways
1. Write a mission document with explicit in-scope and out-of-scope items, and keep the agent from changing it.
2. Encode triage and merge gates as labels and rules the agent reads, and keep PRs small enough to review.
3. Route cheap, high-throughput steps to a lower-cost model through environment variables, and let the workflow engine choose models per step.
4. Separate the implementing agent from the validating agent, and give the validator the user journey and diff rather than the development history.
5. Add a scheduled regression run that files issues for failures.

## Notable Quotes
> "Not 100% practical yet for production code." — Cole Medin

> "Even I'm kind of uncomfortable with this myself." — Cole Medin

> "LLMs are way too prone to agree with our ideas even when they're stupid." — Cole Medin

---

*Related: `@protocol/eval` · `@content/youtube/nate-herk/how-anthropic-engineers-actually-prompt-fable-5` · `@content/youtube/nate-herk/this-stealth-model-makes-claude-code-free-heres-how` · `@content/youtube/nate-herk/how-i-make-opus-think-like-fable-5-easy-steps` · `@content/youtube/cole-medin/gpt-6-astra-just-made-ai-software-factories-real-here-s-how-to-run-one`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*