architecture18 min read

Scaling AI Code Review Orchestration at Cloudflare

6 similar posts
  • OpenCode
  • GitLab
  • AI Gateway
  • Claude Opus
  • GPT-5
  • Kimi

AI Summary

Cloudflare details how they scaled AI code review from naive prompt experiments to an orchestration system using OpenCode. The architecture uses a coordinator agent managing up to seven specialized sub-reviewers for security, performance, and compliance. To control costs and noise, they implement risk-tiering, streaming JSONL output, dynamic plugin configurations, and robust timeout handling.

Key Takeaways

  • Replaced single monolithic prompts with specialized multi-agent architecture.
  • Used JSONL output streaming to prevent command-line argument limits and buffer issues.
  • Implemented a risk-tiering system to avoid expensive LLM calls on trivial diffs.

Why it matters

Demonstrates practical enterprise architecture for deploying LLMs in critical CI/CD pipelines, addressing latency, token cost, prompt injection, and hallucinations at scale.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.