# Build Your Own AI Software Factory with Claude Code <!-- ref: @content/youtube/zazencodes/build-your-own-ai-software-factory-with-claude-code tags: [software factory, Claude Code, subagents, agent orchestration, verification agents, human approval, git worktrees, developer tooling] version: 2 updated_at: 2026-11-26T07:03:04.752Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=ctoaIC4LHmI)** # Build Your Own AI Software Factory with Claude Code *Synthesized from ZazenCodes, 2026-10-07; speakers are not named in the source.* A single presenter, credited only to the ZazenCodes channel, walks through building a small agent-based "software factory" inside an existing website repository, then runs three features through it in parallel. ## Core Thesis The presenter argues that a software factory, a pipeline where agents take a feature from specification through building, review and merge, can be built by any developer as a simple project skill in Claude Code. The useful parts are a clear set of role-based subagents, a loop with limited review rounds, and one human approval gate, and the presenter says a developer who understands these pieces can adapt the setup freely instead of adopting a large off-the-shelf framework. ## Key Insights - **Lineage.** The presenter traces software factories to Bob Beamer at GE in 1968, then to reusable templates in the 2000s and CI/CD pipelines in the 2010s and 2020s. Agent factories, in his telling, automate relatively unstructured cognitive work between deterministic stages. - **The pipeline.** An Opus spec writer produces a specification, a builder agent assembles the feature, and verification agents for security, UX, UI design and code review check it. The loop returns to the builder when needed, capped at two rounds. An Opus approver then either merges automatically or hands the change to a human. - **Escalation rules.** The approver escalates billing changes and anything touching access to the paid course, and those rules are specific to his repository. - **Packaging.** The factory is one project skill called "factory," with a subagent file per role, a backlog markdown file for future tasks, a state file the dashboard reads, and a dashboard toolbar that shows stages and flags stages needing human verification. - **Prerequisite.** The run would not start until the working tree was clean. He committed the setup first, then ran the factory on an "Obsidian course without paid access" task. - **Parallel features.** After adding git worktree support, three features ran at once: a reading-time display on blog posts, a copy button for code blocks, and a 404 page. - **Model choices.** He used Opus at high effort to build the factory and tried a Sonnet orchestrator at low effort. His position is that the orchestrator should be a strong model, with faster and cheaper subagents doing the bulk of the work. - **Failure modes.** A 404 feature was marked approved but did not merge because uncommitted changes in the repo, specifically factory metadata, blocked the merge. He fixed it by allowing changes to that one file. The 404 page also needed a human check. - **Metadata.** The factory keeps its metadata as text files in the project. He suggests keeping them out of git, since they clutter file search, and backing them up elsewhere. - **Cost.** He acknowledges that subagents pass context back and forth, which adds overhead, and argues that quality justifies the extra tokens. He says the work ran under his Claude Code plan. - **Next steps.** Planned inputs include GitHub Issues as a trigger source, production bug data from an application monitoring tool such as Sentry, and infrastructure metrics for monitoring after deployment. ## Actionable Takeaways 1. Start in an existing repository with a clean git working tree, and commit the setup before the first run. 2. Package the factory as one project skill with an orchestrator, one subagent file per role (spec, builder, security, UX, UI design, code review, approver), a backlog file and a state file for the dashboard. 3. Cap the verification loop at two rounds, and send any change touching billing or paid access to a human. 4. Use git worktrees so several features can run at the same time. 5. Use a smarter model for orchestration and faster models for subagents, and decide which factory files to commit, since metadata can clutter search. ## Notable Quotes > "So, we enter a feature request and the rest is handled autonomously, except for this last step, this human approval step." — the ZazenCodes presenter > "The only thing I will say is that we probably don't want all of these things committed." — the ZazenCodes presenter --- *Related: `@content/youtube/sean-kochel/opus-4-7-is-insanely-powerful-and-insanely-expensive` · `@content/youtube/yifan-bth/i-reverse-engineered-claude-code-learn-these-agent-tricks` · `@content/youtube/yifan-bth/the-complete-claude-code-workflow-90-skip-this` · `@content/youtube/david-ondrej/hermes-goal-is-insane-just-watch` · `@content/youtube/tiago-forte/stop-overthinking-ai-use-this-4-step-framework`* --- *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).*