tensorfolk

Cloudflare cuts its AI code reviewer's cost per run 68% with shared cache prefixes and model routing

Cloudflare's multi-agent code reviewer dropped from $2.43 to $0.77 per review and median time from about 4 minutes to 1.5. The biggest wins came from restructuring prompts so a shared first half caches across repos (first-request hit rate rose from under 26% to over 91%), trimming unused tools and redundant calls, and moving reviewers to cheaper models with tuned effort levels.

Why it matters

A concrete playbook for agent cost control: check first-request cache hits, not just overall hit rate, and re-validate finding quality when you lower effort.

Source: Read the full story on Cloudflare Blog

prompt-cachingcostmulti-agentcode-reviewcase-study