Super Data Science: ML & AI Podcast with Jon Krohn
Super Data Science: ML & AI Podcast with Jon Krohn

927: Automating Code Review with AI, feat. CodeRabbit’s David Loker

Earlier this year, David Loker joined CodeRabbit as their Director of AI. As more people come to write code with the help of large language models, David believes CodeRabbit will become a helpful assistant for code reviewing and pull requests. He tells Jon Krohn how CodeRabbit assists developers wit

Featured Speakers

Jon Krohn HostDavid Loker Guest

Topics Discussed

Episode Summary

Executive Summary: David Loker of CodeRabbit argued that AI is transforming code review by combining pipeline and agentic systems with rich context engineering to catch bugs, security issues, and design problems across large codebases. He emphasized that GPT-5 marks a major reasoning leap for complex reviews, that productivity metrics must shift away from lines of code, and that AI should augment—not replace—human creativity and engineering judgment.

Main Topics: CodeRabbit’s AI code review approach: CodeRabbit uses AI to accelerate pull request review, improve code quality, and reduce the manual burden on senior engineers while preserving production standards. Pipeline AI vs. agentic AI: Loker contrasted fixed workflows with exploratory agent loops, arguing that real products need a hybrid approach: deterministic steps for known checks and controlled agentic exploration for missing context. Context engineering for better reviews: The conversation focused on assembling the right context—diffs, issues, docs, code graphs, and dependency relationships—so the model can infer intent, detect cross-file bugs, and reduce hallucinations. Tool use and agent training: Loker discussed research like Retool and LereT as evidence that agents can be trained to call tools more efficiently and with fewer wasted actions, improving speed and reliability. Measuring productivity in an AI-driven workflow: He argued that lines of code, PR counts, and bug counts are becoming less meaningful; organizations should measure feature delivery, hypothesis execution, developer satisfaction, and outcome quality. GPT-5 as a reasoning leap: Loker said GPT-5 dramatically improved CodeRabbit’s benchmark performance, especially on difficult multi-file, multi-step reasoning tasks, and reduced hallucinations and negative sentiment. Human creativity and AI: Drawing on his music background and Wave AI experience, Loker argued AI can be creative, but the best systems keep humans central so users feel ownership and agency over the output.

Key Arguments: AI code review is necessary because AI-generated code is increasing the volume of PRs while human review capacity is limited. Hybrid systems are superior in production: deterministic pipelines handle known checks, while bounded agents handle unpredictable context gathering. More context improves review quality, but too much irrelevant context can hurt performance; context engineering is about selecting and shaping the right inputs. Cross-file and cross-repo dependencies matter because a change may break code outside the diff itself. Verification loops can reduce hallucinations by forcing comments and findings to be backed by evidence in the codebase. Tool-use quality matters as much as model intelligence; agents should learn to choose efficient tool paths rather than waste tokens. Developer productivity should be judged by feature creation, problem solving, and shipped outcomes rather than raw code volume. GPT-5 is a major step up for complex reasoning, not just a marginal improvement, because it handles deeper logical chains and cross-file inference better than prior models. AI security concerns are real, but AI can also be more vigilant than humans because it does not get tired or distracted. AI creativity is most valuable when it augments human creators rather than replacing them, because ownership and intentionality matter to users.

Data Points: GPT-5 evaluation improvement: 18–21 correct out of 25 - CodeRabbit’s hardest pull-request benchmark cases after adopting GPT-5 Previous model performance: About 10 correct out of 25 - CodeRabbit benchmark before GPT-5, after incremental gains from prompting and context work Earlier benchmark performance: About 5–6 correct out of 25 - CodeRabbit’s harder PR set at an earlier stage before major improvements Intermediate model performance: About 12 correct out of 25 - Performance after Opus 4 / Sonnet 4 before GPT-5 Enterprise AI usage stat: About 90% - Claimed share of employees using personal ChatGPT subscriptions or free tools in enterprises AI bug study claim: Up to 41% more bugs - Referenced critique that AI coding tools can increase bug counts in generated code Context window trend: 1M–10M tokens (hypothetical) - Discussed as a future possibility and why simply stuffing more context is not enough Wave AI / creativity field: Since the 1950s - Loker noted that research on machine creativity has existed for decades ChatGPT-style tool use: Web access and other sources enabled - Used as an example of modern agents being given tools Context attention pattern: U-shaped - LLMs pay more attention to the beginning and end of long contexts than the middle

Pivotal Quotes: "Let the model reason within reason." — David Loker: Describing the balance between agentic exploration and controlled workflows in code review "Code reviews should feel like they came from your best engineer on their best day every time." — David Loker: Explaining the goal of combining context engineering with AI review quality "The human needs to be the creator and the machine needs to be in the back seat." — David Loker: On AI-assisted creativity and why human ownership should remain central

Implications: AI will increasingly handle routine software review and prototype generation, so teams should invest in context engineering, tool discipline, and better outcome-based metrics. The winners will be systems that keep humans in control while making software creation faster, safer, and more accessible.

🔓 Sign Up for Unlimited Episode Search

About Super Data Science: ML & AI Podcast with Jon Krohn

View all episodes from Super Data Science: ML & AI Podcast with Jon Krohn