How I run a software factory with Claude Code, with real numbers
By Christian Vismara ·
I run my software factory as many Claude Code sessions working in parallel. When several sessions build at once, each one works in its own git worktree on one written task, follows the same rules file, and hands any change bigger than a quick fix to a separate reviewer before it merges. Risky changes stop and wait for me. Over the last 30 days my machine logged about 830 Claude Code sessions, counting research and writing as well as code, and 3,600 subagent runs.
I'm Christian Vismara, co-founder and CTO of Digital Kitchen. This page is my actual setup as of December 2026: the parts, the numbers, and the things that went wrong. If you want the definitions first, start with my guide to AI software factories.
My Claude Code workflow, step by step
On our product repositories, every Standard or Critical change takes the same five steps. Quick changes, like a copy fix, skip the separate reviewer.
A task gets written down in the project's tracker or roadmap file, with what "done" looks like.
A session picks it up in its own git worktree, a separate checkout of the repository, so two sessions never edit the same files.
The session builds it and runs the path a user takes: the page in a browser, the app in the simulator, the endpoint with a real request. Passing unit tests alone don't count as done.
A fresh reviewer checks the exact commit. It's a subagent that has never seen the builder's notes or an earlier verdict.
The change opens as a pull request, and it merges to the main branch only when I say so. Anything that touches login, payments, permissions, data deletion or spending gets two fresh reviews and my approval.
The parts, and why each one is there
Most of it is plain files and settings that every session reads.
| Part | What it is | Why it is there |
|---|---|---|
| Rules file | One instructions file every session loads. Mine is 210 lines. | The same defaults everywhere: hard stops, cleanup, how to report, how to write. |
| Project instructions | A CLAUDE.md or AGENTS.md file in each repository | Build commands, known traps, files nobody should touch |
| Skills | Reusable instruction packs for recurring jobs. I have 169 installed, and about 40 of them are my own. | Research, risk-based review and SEO pages run the same way every time, and I don't re-explain the job |
| Worktrees | A separate checkout of the repository for each session | Parallel work without sessions overwriting each other |
| Subagents | Short-lived helpers inside a session, each with its own context | Reviews and fact checks from a context that has not seen the builder's reasoning |
| Session messages | Sessions on the same machine can message each other | A coordinating session hands work to builders and hears back when they finish |
| Memory notes | Short notes on decisions and lessons. My main workspace alone has over 200. | A mistake I never want twice becomes a note every later session reads |
How I decide what needs a human
Every task gets a risk level before work starts, and the level decides how much checking it needs. I count what the change affects, not how many lines it touches.
| Level | What fits | What it needs before merge |
|---|---|---|
| Quick | Isolated, reversible changes with no new behavior, like copy or a style fix | Look at the diff and see the result in the product |
| Standard | An ordinary feature or bug fix with limited reach | Acceptance criteria, relevant tests, the real user path, and one fresh reviewer |
| Critical | Login, payments, permissions, sensitive data, destructive migrations, supply chain, or what tools an agent may use | Written failure cases, two fresh reviewers (one on the risk, one on correctness), a rollback plan, and my approval |
A one-character change to a payment amount or a sign-in check is still critical, even though a punctuation fix elsewhere in the same app can be quick. A large refactor of a marketing page can be standard. The longer version of this, with what to keep away from agents entirely, is in the software factory guide.
How I write a /goal for a long run
Claude Code's /goal command keeps a session working until a condition you write is met, so the stop condition has to be one the agent can't fake. Mine always has the same parts.
More than one way to stop: every task that isn't blocked has an open pull request, or a set number of turns has passed, or the only work left needs me.
A status block every turn: what's done with the evidence (test output, pull request link), what's in progress, and what's blocked and why.
Blocked means log it and move on. A task that needs a key or a decision from me goes on the blocked list, and the agent picks the next task instead of waiting.
Hard stops that always pause: production database changes, merging to a shared main branch, spending money, changing an agreed spec, and sending anything to the outside world.
The numbers, measured on December 4, 2026
| What | Count |
|---|---|
| Claude Code sessions with activity, last 30 days | About 830 |
| Subagent runs, last 30 days | About 3,600 |
| Project folders touched in the last 30 days (many are worktrees) | 138 |
| Skills installed | 169 |
| Rules file every session loads | 210 lines |
| Lessons saved as memory notes (main workspace) | 204 |
These numbers show how big the setup is, not whether it works. Whether it works shows up in the costs and the failures below.
I pay a flat monthly subscription, so the model bill stayed the same and the costs that grew were the ones around the model. When agents started pushing lots of branches, build time became 97% of our hosting usage. We added a rule that skips builds nobody needs. Replaying one product's history showed that 352 of its 635 production pushes didn't need a build, so on that history the rule would have skipped more than half of them.
CI minutes are the next line to watch, and so is review time, which never shows up on an invoice. The guide to comprehension debt covers how to measure that one.
What broke, and the rule each failure produced
Most of my rules exist because something went wrong once. These are the ones that changed how the factory runs.
A reused reviewer stopped reviewing. On November 1, 2026 my coordinating agent sent the same reviewer three rounds of its own fix notes. The reviewer's effort dropped from 26 tool calls to 6, then 2, then 2, and it said the change was ready. The agent then pushed a commit that included edits the reviewer had never seen, and I caught it. Since then, the review that clears a change comes from a new reviewer, on the exact commit, without the builder's notes.
Some reviews never converge. Eight full reviews of one long policy document each found one to five new edge cases, and none came back clean. Now the rounds are capped, the fixes are batched, and the open points come to me instead of looping forever.
Two agents wrote to the same file. On November 18 two builder agents saved their pull request text to the same scratch file, and for about two minutes one pull request showed the description of another of our projects. Every agent has had its own scratch folder since then, and the agent reads the pull request text back after it opens.
My Mac slowed to a crawl. Sessions left dev servers, emulators and headless browsers running after they finished. The rule now is that every session stops whatever it started before it reports back.
An agent kept going when it should have stopped. In May 2026 I asked an agent to finish one phase of a plan, report, and then keep going. It ran three phases in one stretch without stopping to report, made nine commits and several decisions on its own, and sent a real Slack message to my channel during a test. Now long runs stop at phase boundaries, and anything that sends, spends or adds a monthly cost waits for a yes.
"Done" wasn't done. An agent once told me a dark-mode fix worked because the computed style looked right, while the screen was still wrong. Done now means someone ran the path a user takes, on the surface the user sees. And after two failed attempts at the same fix, the agent stops patching and reads the real source: the library code, the actual database rows, the config.
If I were starting from zero
Write a short rules file with the hard stops first. Everything else can wait.
Pick one repository that already has tests the agent can run.
Give every session its own worktree from day one.
Add a fresh reviewer before you add a second builder.
Put a risk level on every task, and keep critical work out of autonomous runs.
Track review time and build minutes weekly.
Add parallel sessions only once the single loop has become boring.
If you're deciding whether any of this is worth it, the trade-offs are in why software factories fail, and the vocabulary is in loop engineering vs harness engineering. For a whole team rather than one person, read Claude Code for teams.
Frequently asked questions
Do you need Claude Code to build a software factory?
No. The same pattern works with other coding agents. What matters is that agents work in isolation, run the real checks, and hand their work to a reviewer before it merges. I use Claude Code because one session can run subagents with a fresh context and sessions can message each other, which makes the review step easy to wire up.
How much does it cost to run a software factory with Claude Code?
On a flat monthly subscription, the model is the predictable part. The costs that grew for me were CI and build minutes from all the extra branches, and review time. Watch those two numbers from the first week.
How many agents can one person supervise?
The limit is how many finished changes someone can check in a day, not how many sessions you can start. Starting another session takes seconds. Reviewing what it produced does not, so add parallel sessions only when review keeps up.
How do you run several Claude Code sessions without them overwriting each other?
Give each agent its own git worktree, a separate checkout of the repository, and its own scratch folder for notes and pull request text. Then nothing two sessions write can collide.
What is the /goal command in Claude Code?
It sets a completion condition, and Claude keeps working toward it without you prompting each step. It only works well when the condition asks for evidence you can see, such as passing test output or a pull request link, and when it has more than one way to stop.
Want this setup for your team?
I set these up for small teams as a fractional CTO: the rules file, the risk levels, the review step and the numbers to watch. Tell me about your repository and your team, and I'll tell you whether a factory makes sense yet or whether a single well-run agent is the better start.