# My AI Software Factory Ships Hundreds of PRs a Week (Here's How I Manage It)
<!--
ref: @content/youtube/cole-medin/my-ai-software-factory-ships-hundreds-of-prs-a-week-heres-how-i-manage-it
tags: [autonomous coding agents, software factory, human-in-the-loop, observability, workflow orchestration, Postgres, dashboards]
version: 2
updated_at: 2026-11-24T06:20:25.411Z
-->

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

# My AI Software Factory Ships Hundreds of PRs a Week (Here's How I Manage It)

*Synthesized from Cole Medin, 2026-11-02.*

Cole Medin gives a tour of his personal "software factory": an autonomous system that takes a product requirements document or a ticket, plans it, and builds it through verification stages, with the human involved at defined decision points.

## Core Thesis
Cole Medin argues that a software factory has to keep a human in the loop to be reliable: a fully autonomous "dark factory" that merged code straight to production was not enough, so he reduced autonomy and built a control panel that lets one person see the whole pipeline and handle only the high-level decisions. He treats the factory as a living system that needs constant observability and improvement.

## Key Insights
- **Human decision queue.** He moved from being @-mentioned on GitHub issues and PRs to a single owner-decision queue in the dashboard, covering questions and blockers that need his input.
- **Full audit trail.** Every queue entry, decision and agent tool call is stored in Neon Postgres. A GitHub webhook function writes issues and PRs into the same database, and Neon's real-time feature turns SQL queries into live dashboard data.
- **Everything runs as Archon workflows.** The Archon open-source framework turns each AI coding process into a reusable workflow with worktrees for parallel tasks, and no agent step runs outside one. Logs can be read down to the individual step.
- **Failure accounting.** Over hundreds of iterations in a few weeks, 21 failed because of workflow issues he had to fix, and two failed on Claude Code query limits.
- **Versioned factory and rewind.** Each decision creates a version-controlled commit of the factory's workflows and skills, so versions can be diffed, and a branch-based rewind in Neon is in progress for rolling back.
- **Team-facing agent.** A shared AI agent in Slack creates agendas and Jira tasks from meeting decisions. He says colleagues used to wait an average of 4.5 hours for him to log tasks after meetings.

## Actionable Takeaways
1. Route every human decision through one queue rather than scattered GitHub mentions.
2. Store every queue entry, decision and tool call in a database such as Postgres, so failures can be analyzed later.
3. Express each AI coding step as a versioned workflow (Archon, in his case), and keep the workflows in version control so they can be diffed and rolled back.
4. Track iterations, merges, elapsed time, and regression-test pass or fail results on one scoreboard.

## Notable Quotes
> "So, it all comes down to how to minimize the number of decisions for a person while ensuring maximum control." — Cole Medin

> "I realized that the only way to make them truly reliable is to leave certain aspects to human discretion." — Cole Medin

> "because a factory is a living mechanism" — Cole Medin

---

*Related: `@content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code` · `@content/web/github/2026-11-23-claude-code-v2-1-331` · `@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` · `@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).*