# My AI Dark Factory Dream Is Dead (Here's What Actually Works)
<!--
ref: @content/youtube/cole-medin/my-ai-dark-factory-dream-is-dead-heres-what-actually-works
tags: [agent engineering, software factory, autonomy, human-in-the-loop, codebase maintenance, holdout tests, model tiering]
version: 2
updated_at: 2026-11-24T06:11:40.886Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=GQatuTWSRqY)**

# My AI Dark Factory Dream Is Dead (Here's What Actually Works)

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

Cole Medin speaks alone, describing the coding-agent system he has built and iterated on over hundreds of hours, and contrasting it with the fully unattended "dark factory" model.

## Core Thesis
Cole argues that a "dark factory," where an agent receives a broad document and ships to production without human steps, is fundamentally flawed: models still cannot read intentions, and agents do not maintain codebases the way humans do. He instead runs a "software factory" in which humans plan each release, define tickets and review gates, and agents execute inside that structure, keeping most of the autonomy while people stay in the driver's seat.

## Key Insights
- He uses Dan Shapiro's five levels of AI-coding autonomy as the reference point. He places most practitioners at level 3 or 4, with the dark factory as level 5.
- His first dark factory did not hold up. He says Dex Hort's talk on why software factories fail makes the same point: codebase maintenance needs humans, and Hort also had to bring people back into the loop.
- Planning stays outside the factory. Each release gets a PRD and architecture document, which is broken into an epic of roughly 10 to 20 tickets, with explicit out-of-scope items.
- Holdout test scenarios are written in the same planning document but hidden from the implementing agent, so it cannot tune the code to pass known tests.
- GitHub tags record dependencies so parallel loops know what can run together. Each loop claims one issue with a "busy" tag. Simple tickets get a short build workflow, because a full workflow took 20 to 30 minutes on trivial work in his first version.
- Verification (code review and analysis, CI) and validation (testing the app the way a user would) are separate stages. Failures loop back to implementation with a capped number of attempts. A merge to the staging branch happens only when CI is green and the review is approved.
- A manager agent runs about every two or three hours to watch all loops, step in when a task hits its attempt limit, and notify him when he needs to intervene.
- Human-approval switches depend on the release. Compliance-heavy work keeps checks on task allocation and PRs; a backlog-clearing release can auto-merge into staging.
- The mission and global-rules files are never edited by the factory, so it cannot change its own permissions or behavior.
- Models are tiered by node. Opus 5.5 or GPT-6 Astra handle planning; Sonnet 5.5 handles simple nodes such as task selection. He reports hundreds of cycles per week without hitting query limits.
- Staging is where he reviews results. Problems become new tasks that the factory picks up, and only then does work go to production, which keeps one human checkpoint while letting him review many changes at once.

## Actionable Takeaways
1. Write a PRD and architecture document per release, split it into roughly 10 to 20 tickets, and list what is out of scope.
2. Keep holdout test scenarios hidden from the agent that implements the feature.
3. Tag GitHub issues for dependencies and a busy state so parallel loops do not collide, and choose workflow depth per ticket.
4. Keep verification (CI and code analysis) separate from end-to-end validation, and cap retry attempts.
5. Run a periodic manager agent to catch stuck runs, and keep the mission and global-rules files out of the agent's edit scope.
6. Use stronger models for planning and cheaper models for routine nodes such as task selection.

## Notable Quotes
> "The bottleneck becomes getting what you actually want" — Cole Medin

> "agents are prone to flattery" — Cole Medin

> "we should always be in the driver's seat" — Cole Medin

---

*Related: `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/web/github/2026-11-25-followups-scope-issue-112120` · `@content/youtube/tiago-forte/the-1m-lesson-why-i-m-pivoting-back-to-you` · `@content/youtube/cole-medin/ai-makes-us-way-faster-but-fries-our-focus-heres-what-i-do-about-it` · `@content/youtube/every-inc/ai-was-supposed-to-save-time-why-am-i-busier`*

---

*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).*