What does a software factory cost? A cost model for AI-driven "software factories" published on GitHub by Arsenalist defaults to three engineers per factory, citing StrongDM's three-person operation, and prices tokens at $25 per agent run, or roughly $66 per feature across about 2.6 runs including rebuilds and fixes. The model also defaults to an AI judge rejecting 20% of changes, based on Spotify's engineering report that its judge vetoes about 1 in 4, and deliberately sets merge-conflict probability at 2% per concurrent change versus the roughly 20% measured in a 2026 study of agent pull requests on arXiv. The model excludes infrastructure costs, assumes higher token spend does not lower the bug rate, and treats bugs as severity-free with a constant hourly cost. Where the defaults come from Every number is a dial above, so change the ones that don't fit you. Three defaults come from what companies have published: - 3 people. StrongDM runs its factory with three StrongDM https://factory.strongdm.ai/ . - The AI judge sends back 20% of changes. Spotify's judge vetoes about 1 in 4 Spotify https://engineering.atspotify.com/2025/12/feedback-loops-background-coding-agents-part-3 . - $1,000 of tokens per person a day , in the "Start from" menu, is StrongDM's bar. The default is $25 of tokens for one agent run. A feature takes about 2.6 runs once you count rebuilds, fixes and maintenance, which is the $66 Tokens line on the bill. The rest are my guesses: the step times, the 15% bug rate, how many bugs tests and review catch, how fast a bug is noticed, and what an hour of waiting or of a live bug costs. One guess is low on purpose: a change has a 2% chance of a merge conflict for every other change that merges while it's open. A 2026 study of agent pull requests https://arxiv.org/abs/2607.04697 measured about 20%, and the "Start from" menu has that factory too. The model leaves four things out: - Infrastructure is out of scope. The bill has tokens and CI runs, but no hosting, monitoring, agent sandboxes or tool licences. - Spending more on tokens doesn't lower the bug rate. - Bugs have no severity, and a live bug costs the same every hour. - When people review only some changes, the ones they review are picked at random, not by risk. The code, with the model and its tests, is on GitHub https://github.com/Arsenalist/software-factory-simulation .