This article explores CodeRabbit's unique approach to software development, leveraging AI agents to automate and scale engineering output significantly. It delves into the architectural considerations and verification strategies required to build and operate a 'software factory' where AI agents generate thousands of pull requests monthly, challenging conventional notions of code review and development costs.
Read original on The Pragmatic EngineerCodeRabbit, an AI code review business, operates what its CEO Harjot Gill terms a 'software factory', where AI agents generate over 5,000 pull requests monthly. This high-throughput model necessitates a rethinking of traditional development workflows, quality assurance, and even system design. The company invests heavily in AI, treating much of its spend as R&D to accelerate product development and achieve unprecedented shipping speeds. This approach offers insights into how AI can fundamentally alter software architecture and development paradigms.
To support the massive output from AI agents, CodeRabbit focuses on robust infrastructure and efficient verification mechanisms. Key architectural decisions include building custom infrastructure components, such as a write-ahead log (WAL) on top of object stores using Rust, and optimizing existing systems like their CI pipeline. The rapid iteration cycle allows for quick migration of core services (e.g., to Bun) and continuous improvement of underlying infrastructure through agent-generated PRs.
A crucial aspect of this 'software factory' is ensuring the quality and correctness of agent-generated code. Harjot Gill emphasizes the need for 'hill climbing' agents that can verify their own work. This involves multiple layers of validation:
Rethinking Code Review
The article posits that human code review for agent-generated code will become obsolete. Instead, human efforts will shift to reviewing higher-level plans and final product releases, rather than individual PRs. This implies a future where quality gates move upstream to design and downstream to integration and observable production behavior.
The CodeRabbit model highlights a shift from individual PR reviews to reviewing 'releases' (multiple PRs). It also introduces a system of accountability where engineers can lose the privilege of committing without human review if their changes cause production outages. This fosters a high-trust, high-accountability culture essential for extreme velocity. The emphasis on systems thinking and breadth of experience in hiring reflects the complex, interconnected nature of managing such an automated development ecosystem.