Cloudflare cut its AI code review cost by 68%. The average review now costs $0.77 instead of $2.46. Median review time dropped from 4m 09s to 1m 32s. The team traced the rise to model changes and growing token counts. They split the system prompt to share a cached prefix across repositories. They reduced calls by removing unused tools and parallelizing file reads. They switched models and effort tiers to cheaper, equally effective options. They shared one cached first request among three reviewers. They canceled jobs when GitLab signals cancellation.
What changed
Average review cost was $2.46 with rising token usage and model prices.
What it unlocks
Running code reviews at lower cost and higher speed using prompt caching and model routing.
- 68% cost reduction
- $2.46 to $0.77 per review
- 1m 32s median review time
- 98% approval agreement between OpenCode v1 and v2
What you need to act on it
- using Cloudflare's AI code reviewer
- Anthropic models
- OpenCode v2
Sources