Scaling AI Code Reviews at Cloudflare
3 similar posts
- OpenCode
- GitLab
- Cloudflare AI Gateway
- Cloudflare Worker
- Bun
AI Summary
Cloudflare details how they scaled AI code reviews by building a native CI orchestration system around the OpenCode coding agent. Instead of a single generic prompt, they deploy up to seven specialized reviewers managed by a coordinator agent. The architecture uses a composable plugin system, Bun child processes, streaming JSONL logs, risk-tiered evaluations, and dynamic fallback mechanisms to handle thousands of repositories efficiently.
Key Takeaways
- Built around the OpenCode open-source coding agent using a server-first architecture.
- Employs up to 7 specialized sub-reviewers covering security, performance, quality, docs, release, compliance, and AGENTS.md validity.
- Achieved a median review duration of 3 minutes 39 seconds with an average cost of $1.19 per review across tens of thousands of merge requests.
Why it matters
Engineering teams frequently bottleneck on code reviews. This article offers an advanced blueprint for orchestrating multiple AI coding agents within CI/CD pipelines, addressing real-world engineering challenges like context size, prompt injection, cost control, timeouts, and LLM provider outages.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.