# The software factory approach: AI agents that spec, build, review and merge

> What a "software factory" is in Claude Code, how ZazenCodes sets one up with subagents, what it costs, and a cautious way to try it.

- Site: Ideas In Reach (https://ideasinreach.com/)
- Page: https://ideasinreach.com/research/software-factory/
- Voice: "I" is Paul, the owner. "Alfred" is the AI helper. Lines marked **Alfred:** are Alfred's own words.
- Kind: Research report by Alfred's night research worker (2026-10-18), shared by the owner. Private details removed.
- The owner's question: Research the "software factory" approach ZazenCodes describes on YouTube: what it is, how he sets it up with AI coding agents, and how to apply it to my own development.
- Why the owner shares it: I wanted to know if a team of AI helpers could build and review my code for me. This is the short version.

## How to read this

1. Alfred's night worker wrote this report. This page keeps the short answers. The private details of my setup are removed.
2. The worker could not read the video itself. No transcript was available. It used the repo README, a newsletter post and search summaries. Details he only says aloud may be missing.
3. The repo shows no license file. Treat the code as reference material and write your own version.
4. No figures for token cost per job were found. The cost notes below are reasoning, not measurements.

## Short answer

ZazenCodes posted "Build Your Own AI Software Factory with Claude Code" in early October 2026. You type `/factory <feature>` in Claude Code. A team of AI helpers (subagents) then works in steps. They write a spec, build it on a separate git branch, review it from four angles, and either merge it or hand it back to a human.

It is not a product. It is a folder of plain markdown files (one skill and seven agent descriptions) that you copy into a project.

The main ideas, worth borrowing even if you skip the rest:

1. Every agent reads and writes files, not chat.
2. Reviewers are separate from the builder.
3. A human is called in only when something looks risky.

The idea is older than AI. Toshiba's 1990s Fuchu software factory claimed that improvement comes from reusing prior experience. Here that means a repeatable pipeline instead of one-off chatting.

## The cast

| Role | Model | Job |
|---|---|---|
| Orchestrator (the `/factory` skill) | your main session | Starts every agent, tracks the job |
| spec-writer | Opus | Writes `spec.md` |
| builder | Opus | Codes on branch `factory/<job-id>`, writes `build.md` |
| reviewer-security | Opus | Reviews security |
| reviewer-ux, reviewer-ui, reviewer-code | Sonnet | Run in parallel with the security reviewer |
| approver | Opus | Writes `decision.md`: APPROVE (merge) or ESCALATE (needs a human) |

## The loop

1. Spec, then build.
2. All four reviewers run at once. Each says PASS or CHANGES.
3. If any says CHANGES, the builder is resumed. This happens at most twice.
4. When all reviews pass, the approver decides.
5. An escalated job waits for you.

Commands: `/factory <feature>` runs a new job. `/factory next` takes the first unchecked item in `factory/backlog.md`. `/factory approve <id>` merges an escalated job. `/factory rework <id> <note>` sends it back with feedback.

There is also a small dashboard page. You serve it with `python3 -m http.server`. It shows job cards moving across stages.

In his examples, a reading-time feature passed every review but was still escalated, because it touched a deploy-related script. A human approved it. A 404 page merged on its own.

Later in the video he adds parallel jobs with git worktrees (separate working copies of one repo). He also mentions GitHub issues as a trigger and metrics as extensions.

## Cost and fit

1. **Tokens are the main catch.** Opus plus four reviewers per job, with up to two rework rounds, uses far more than a plain chat. The video leans on the Max plan. Try one small job and watch your usage.
2. **Hardware does not matter.** The AI runs in the cloud. The factory is prompts, git and a browser. A normal desktop or laptop is enough. Parallel jobs build slowly on weak machines, especially Rust builds.
3. **The UI reviewers assume a web app.** His checks use [agent-browser](https://github.com/vercel-labs/agent-browser) (Apache-2.0). For a desktop or GTK app, replace them with something that fits, such as a code-style reviewer.
4. **AI reviewers judge "game feel" poorly.** Do not rely on them for that.
5. **Work projects need extra care.** Engineering output needs your own checking.

## Options compared

| Option | Effort | Cost | Good for | Downside |
|---|---|---|---|---|
| A. Copy his factory as-is | Low (about 30 min) | High tokens | Web projects | Reviewers tuned for his Vue site |
| B. Slim version: spec, builder, one combined reviewer, human approves | Low to medium | Medium | Desktop and Rust projects | You maintain it |
| C. Borrow habits only: write a spec file first, then a fresh-context review pass | Almost none | Low | Everything | No automation or dashboard |
| D. Hosted products (e.g. Factory "Droids") | Medium | Paid subscription | Teams | Another vendor; not evaluated in depth |

The worker's pick is B, starting from A's files: copy them, then cut the agents you do not need.

## Steps to try it

1. Watch the video and skim `SKILL.md` and `.claude/agents/*.md` in the repo.
2. Pick one small, well-defined job in a project with tests and a build you can run.
3. Copy `.claude/` and `factory/` into that repo. Delete his example jobs. Add `/factory/jobs/` to `.gitignore`.
4. Fill in the project's `CLAUDE.md` with the build, test and lint commands. The agents take their project details from there. This is the most important step.
5. Trim the reviewers to fit your kind of app. Tailor the security checklist.
6. Make the approver ESCALATE every job for the first week, so you read each diff.
7. Run one job and note the token use. If it costs too much, drop to one reviewer.
8. Later: add the dashboard, then parallel worktrees, then issue triggers.

## Sources

- Video: [Build Your Own AI Software Factory with Claude Code](https://www.youtube.com/watch?v=ctoaIC4LHmI)
- Code and README: [zazencodes-season-3 / software-factory-claude-code](https://github.com/zazencodes/zazencodes-season-3/tree/main/src/software-factory-claude-code)
- Newsletter: [Build Your Own Software Factory with Claude Code](https://zazencodes.substack.com/p/build-your-own-software-factory-with)
- Background: [Gauntlet AI](https://gauntletai.com/night-school/transcripts/how-to-build-a-software-factory.txt), [Eden AI](https://www.edenai.co/fr/post/how-to-build-an-open-source-software-factory), [Upstash](https://upstash.com/blog/software-factory-needs-a-sandbox-per-agent)
- Channel profile: [developereducators.com](https://developereducators.com/channel/zazencodes/)

