What happened

Cloudflare’s AI code reviewer climbed from 1.19 dollars per review in April to 2.43 by late August, as models improved and contexts grew. Between mid-September and early October they cut it to 0.77 dollars, down 68%, and the median review got faster too: 4m 09s down to 1m 32s. All numbers are Cloudflare’s own measurements (engineering blog, 19 Oct 2026), not independently verified.

Where the money was going

Per review: 16.6 LLM calls on average, 72k tokens written to the prompt cache and 1.08M read back. Spend split: 43% cache writes, 34% cache reads, 23% output. Most of the bill was context the model had already seen, or was about to see again.

The four levers

  1. Shared cached prefixes: first requests are ordered so the shared part (tools, system prompt, rules) is byte-identical across repos before the only cache breakpoint; one reviewer writes, two read.
  2. Reference material moved into the prompt: 15.9 to 9.6 calls per run.
  3. Call hygiene: no unusable tools, parallel reads, skip stale reviewers on re-reviews, stop after posting, cancel cancelled jobs.
  4. Model and effort A/Bs: Sonnet 5.5 was 47-62% cheaper per run at the same token price with equal findings.

The quality check

Findings fell 40-71%, so they verified: acted-on findings per 1,000 reviews held (132 vs 145, within noise); blinded judges found important findings steady and inflated severities down 70%. Caveat: performance and security lost real findings at medium effort - both moving to high.

What we take from it

Two checks for our agents: does each session’s first request READ from the cache (stable ordered prefix), and does the reviewer still find real problems at the effort level being paid for.

Source

Cloudflare engineering blog (Ryan Skidmore), 19 Oct 2026 - blog.cloudflare.com/obsessive-inference-optimization/ - method and numbers are the vendor’s own.