What a User Story Actually Costs in a Dark Code Factory
AI-generated summary of reporting by Oreilly AI ML Blog. Read the original for the full story.
Why it matters
Real per-story AI coding costs are now measurable: agents burn most tokens on cache reads, so cost optimization means cache management, and flat-fee subscriptions can undercut list prices five to one.
A developer let AI coding agents build an application of 861,601 lines of code between March and July 2026. His newer system records exactly what each task costs: about $10.88 per delivered story of work, mostly spent rereading cached context rather than writing code. Most of the bill, 77%, comes from cache traffic, not new text. He also shows a $200 monthly subscription delivered over five times its price in list-rate value.
François-Xavier Martin measured 193 AI-built user stories costing $3.02–$43.24 each, median $9.56, at $10.88 per delivered story. Cache writes are 3% of tokens but 31% of cost, so cutting costs means cache discipline, not shorter prompts. Rework adds roughly 13% in waste. His $200/month subscription delivered about $1,088 of API-equivalent value, though flat fees will reprice and unmetered factories will not see it coming.
An autonomous SDLC framework driven by Claude Code ran 193 story-builds (374 stage attempts) in isolated git worktrees using Claude Opus 4.8, Claude Fable 5 and Haiku 4.5, shipping 77 stories for 595.7M tokens. 95.4% of tokens were cache reads; cache traffic was 77% of cost, fresh input 1.6%. A ledger bug under-recorded spend by a sixth ($694.65 vs $837.53); session logs are ground truth. Model routing was off, so $10.88/story is unoptimized.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Claude Code Claude Opus 4.8 Claude Fable 5 Claude Haiku 4.5 François-Xavier Martin local-code-bench
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
Speculative Decoding Makes Tool Calls Faster. Agents Need a Cache.
Speed improvements in speculative decoding mean agents can execute tool calls faster, reducing latency for real-time applications.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
Let Claude Code or any agent tap, type, and read your real phone
Agents can now close the mobile testing gap by driving and reading a real phone themselves, with nothing installed on the device.