# Run Your AI Software Factory Like a Real Engineering Org (Here's How)
<!--
ref: @content/youtube/cole-medin/2026-10-23-run-your-ai-software-factory-like-a-real-engineering-org-here-s-how
tags: [ai-coding, software-factory, agents, skills-registry, context-store, scorecards, governance, human-in-the-loop]
version: 2
updated_at: 2026-11-21T19:11:04.227Z
-->

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


*Synthesized from Cole Medin, 2026-10-23; the presenter is not named in the transcript.*

The presenter gives a solo walkthrough of the AI software factory he has been building for a year and what it takes to run several of them at enterprise scale, using a platform called Port as the surrounding layer.

## Core Thesis
The presenter argues that an autonomous AI coding factory is not enough once you have many applications or an enterprise setting; it needs a shell around it providing ownership, shared context, standards and monitoring. His view is that this shell should leave the core engineering loop untouched and keep a human in the loop at planning and approval points instead of running a fully "dark" factory.

## Key Insights
- **Basic cycle:** plan the next release with the agent (a greenfield proof of concept or an epic of roughly 10 to 20 tickets), create a PRD, then have the agent split it into tickets and map dependencies so some run in parallel. A loop, usually on a cron schedule, picks the next issue by priority, plans, implements, and tests as a user would, followed by a separate review agent. A merge happens only when CI is green and review is complete.
- **Staging batches:** he does not merge to production; changes go to a staging branch, the release is verified together, and feedback is fed back as new tasks, usually for a few iterations before production.
- **Why scale needs more:** agents often borrow a person's credentials such as a GitHub account, so a bad commit cannot be traced to an engineer or an agent; Port assigns identifiers to agents.
- **Component 1, agent and skill registry:** each skill (a workflow) and agent (a role, such as a scheduler or a backlog allocator) has an owner, version control and a lifecycle (recertify, reject, retire). Registry views show the number of versions per skill, and a high number is bad because skills have drifted across factories. Agents carry a platform (Claude Code, Codex or Pi), a model, permissions and approval status; enterprises might run some on GCP Vertex AI or AWS Bedrock.
- **Component 2, context lake:** the factory connects to GitHub, CI, Jira and Slack so it knows who owns which application or feature and when human approval is required, which cannot be inferred from the codebase. During planning the agent queries the Port MCP server for repository owners, launch templates and repository readiness.
- **Component 3, standards via scorecards:** a readiness scorecard checks things like a defined owner, a README, a PR template, a CI workflow and CI on the main branch; gold repos are ready for autonomy, others get a fix list. Each merged pull request is re-evaluated against the standards.
- **Component 4, workflows and monitoring:** in a demo, he deliberately broke CI, the repo dropped from gold to silver, a workflow proposed a GitHub ticket, he approved it, the factory fixed CI and the repo returned to gold. This gives a self-improving loop with a quick human approval.
- **Demo result:** a team knowledge-base RAG app that answers questions across repositories with source links was built in two days, with 20 pull requests in one release and no intervention after the initial PRD.
- **From dark factory to human in the loop:** his first version had no human involvement and shipped straight to production; he moved away from that, adding owners, context, planning, and approval where needed, and removing humans only when justified.

## Actionable Takeaways
1. If you are starting out, keep to the basic cycle (plan, implement, test, separate review, merge) before adding a shell.
2. Keep one version of each skill and distribute it from a registry rather than copying it between factories.
3. Give every agent and skill an owner and a lifecycle with approval status.
4. Pull business context (owners, approval rules) from Jira, Slack and GitHub into planning, not just the code.
5. Gate autonomy with a readiness scorecard: owner, README, PR template, CI workflow, CI on main.
6. Route failures into tickets for the factory, with human approval initially.
7. Merge to a staging branch and test a whole release in batch before production.

## Notable Quotes
> "A factory alone is not enough." — the presenter

> "Everything should be within reason." — the presenter

---

*Related: `@content/web/huggingface/2026-11-27-os-omni-computer-use-benchmark` · `@content/youtube/every-inc/ai-was-supposed-to-save-time-why-am-i-busier` · `@content/youtube/eo-global/15-years-after-the-lean-startup-eric-ries-explains-why-great-companies-go-bad` · `@content/youtube/cole-medin/my-ai-software-factory-ships-hundreds-of-prs-a-week-heres-how-i-manage-it` · `@content/youtube/cole-medin/my-ai-dark-factory-dream-is-dead-heres-what-actually-works`*

---

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