1. Home
  2. Super Data Science: ML & AI Podcast with Jon Krohn

Sep 29, 2025

Teaching AI why code was written

David Loker

77 min → 2:45

Overview

David Loker joins Jon Krohn to explain how agentic AI and context engineering solve manual code review bottlenecks while keeping human developers as the creative directors.

3 things to know

Loker: Manual code reviews cannot keep up with AI

David Loker notes that while traditional human code reviews are essential for quality control, they take too much time and struggle to scale alongside the rising volume of AI-generated code.

▶ Watch at 2:26

Agentic AI for Code Review

AI agents can automate and enhance the code review process by providing context-aware, expert-like feedback on pull requests (PRs), speeding up the development cycle.

▶ Watch at 50:00

Context Engineering

To perform meaningful reviews, AI needs more than just a code diff.

More

It requires rich context from design documents, issue tickets, and architectural information to understand the code's original intent.

▶ Watch at 22:42

Also in this episode

The Code Graph

A technique used to map dependencies and relationships across an entire codebase, giving the AI a holistic understanding of the downstream impact of any code change.

▶ Watch at 21:51

Grounding to Reduce Hallucinations

AI hallucinations are minimized by providing the model with verifiable context and evidence, forcing it to base its suggestions on facts rather than filling in gaps with assumptions.

▶ Watch at 24:19

Loker claims new AI nearly doubles code review accuracy

David Loker reports that the latest generation of AI models shows a massive improvement in multi-step reasoning and making logical assumptions, nearly doubling accuracy on complex code review benchmarks.

▶ Watch at 58:27

Krohn says rich background teaches AI why code exists

Jon Krohn points out that giving an AI deep background information lets it move past simply checking what the code does to understanding why it was written.

▶ Watch at 0:16

AI and Creativity

AI can serve as a powerful tool to enhance human creativity by handling rote tasks and enabling non-experts to bring their ideas to life.

More

Creativity is defined as a combination of novelty and value.

▶ Watch at 58:32

Krohn sees coders describing goals while AI writes code

Jon Krohn discusses an emerging approach called vibe coding, where software developers focus on describing the outcome they want while AI handles the low-level coding details.

▶ Watch at 3:00

Quotes

“The human lift of going through all of that and making sure that the quality bar remains high is becoming an increasingly large problem.”

▶ Watch at 2:26

“Our goal was to make human beings more creative... the human needs to be the creator and the machine needs to be in the backseat.”

▶ Watch at 58:32

“You want to be able to test things and fail fast and iterate, listen to people, iterate again. And once you've got something, then spend some effort making the choices that you need to make to make it production ready.”

▶ Watch at 51:50

9 more quotes

“a Bay Area-based company that dramatically accelerates and improves code reviews through, yes, of course, AI.”

▶ Watch at 0:16

“Ultimately, that's what engineers want to do, right? They don't just want to sit here and read through line and lines of code...”

▶ Watch at 3:00

“So we do something called a code graph... which we connect pieces up together to be able to build an understanding of how the pieces of your code interact.”

▶ Watch at 21:51

“...it enables your tool...to go from a 'what' to kind of a 'why' behind a code change.”

▶ Watch at 22:42

“So rather than letting the LLM fill in the missing details, which is where you start to get hallucinations... we provide it with this context and then... we can do a verification.”

▶ Watch at 24:19

“We stand more and more on the shoulders of more and more giants and we abstract away more and more of the complexity.”

▶ Watch at 47:51

“...wouldn't the code review process be one of AI? So if you have one AI system generating code and then another AI system reviewing code... how do you see this kind of future playing out?”

▶ Watch at 50:00

“If I assume that you fix the bug that I reported earlier, then the following things have to happen... that sort of multi-layered assumption... is a difficult thing for even a human being to do.”

▶ Watch at 53:32

“It goes up to anywhere from... between 18 to 21 correct out of this 25. And that's a massive jump.”

▶ Watch at 58:27

Full summary

Episode Overview

  • The episode discusses how agentic AI, specifically through platforms like CodeRabbit, is solving the significant bottleneck of manual code reviews in software development, allowing engineers to focus more on building.
  • It explores the technical necessity of "context engineering," using a "code graph" and external documents to enable AI to understand the why behind code changes, not just the what, thereby improving review quality and reducing hallucinations.
  • The conversation highlights the "generational leap" in reasoning capabilities of new models like GPT-4o, which dramatically improves accuracy on complex, multi-step logical tasks in code analysis.
  • Ultimately, the discussion frames AI not as a replacement for human developers, but as a powerful tool to augment creativity, accelerate iteration, and democratize the ability to build, keeping the human as the creative director.

Key Concepts

  • Manual Code Review as a Bottleneck: Traditional, manual code reviews are essential for quality control but are time-consuming and difficult to scale, especially with the rising volume of AI-generated code.
  • Agentic AI for Code Review: AI agents can automate and enhance the code review process by providing context-aware, expert-like feedback on pull requests (PRs), speeding up the development cycle.
  • Context Engineering: To perform meaningful reviews, AI needs more than just a code diff. It requires rich context from design documents, issue tickets, and architectural information to understand the code's original intent.
  • The Code Graph: A technique used to map dependencies and relationships across an entire codebase, giving the AI a holistic understanding of the downstream impact of any code change.
  • From "What" to "Why": Providing deep context allows the AI to move beyond syntactic analysis ("what" the code does) to understanding its purpose and rationale ("why" it was written).
  • Grounding to Reduce Hallucinations: AI hallucinations are minimized by providing the model with verifiable context and evidence, forcing it to base its suggestions on facts rather than filling in gaps with assumptions.
  • "Vibe Coding": An emerging paradigm in software development where developers focus on describing the desired outcome or "vibe," while AI handles the low-level implementation details.
  • GPT-4o's Reasoning Leap: The latest generation of AI models demonstrates a massive improvement in multi-step reasoning and the ability to make logical assumptions, nearly doubling accuracy on complex code review benchmarks.
  • AI and Creativity: Creativity is defined as a combination of novelty and value. AI can serve as a powerful tool to enhance human creativity by handling rote tasks and enabling non-experts to bring their ideas to life.

Quotes

  • At 0:16 - "a Bay Area-based company that dramatically accelerates and improves code reviews through, yes, of course, AI." - Jon Krohn provides a concise overview of what CodeRabbit does.
  • At 2:26 - "The human lift of going through all of that and making sure that the quality bar remains high is becoming an increasingly large problem." - David Loker highlights the scaling challenge that manual code reviews present, especially with increasing code volume.
  • At 3:00 - "Ultimately, that's what engineers want to do, right? They don't just want to sit here and read through line and lines of code..." - David Loker emphasizes that CodeRabbit helps developers focus on their core passion—building things—rather than getting bogged down in tedious review tasks.
  • At 21:51 - "So we do something called a code graph... which we connect pieces up together to be able to build an understanding of how the pieces of your code interact." - Defining the "code graph" as a core technique for providing the AI with a holistic view of the codebase.
  • At 22:42 - "...it enables your tool...to go from a 'what' to kind of a 'why' behind a code change." - The interviewer summarizing how rich context elevates AI's capability from syntax checking to understanding the rationale and purpose of the code.
  • At 24:19 - "So rather than letting the LLM fill in the missing details, which is where you start to get hallucinations... we provide it with this context and then... we can do a verification." - Detailing the strategy for reducing AI hallucinations by grounding its outputs in factual, verifiable context.
  • At 47:51 - "We stand more and more on the shoulders of more and more giants and we abstract away more and more of the complexity." - Jon Krohn summarizing the historical progression of software development, leading to concepts like "vibe coding."
  • At 50:00 - "...wouldn't the code review process be one of AI? So if you have one AI system generating code and then another AI system reviewing code... how do you see this kind of future playing out?" - Jon Krohn questioning the future of software quality assurance in a world dominated by AI tools.
  • At 51:50 - "You want to be able to test things and fail fast and iterate, listen to people, iterate again. And once you've got something, then spend some effort making the choices that you need to make to make it production ready." - David Loker explaining how AI dramatically accelerates the early, iterative stages of product development.
  • At 53:32 - "If I assume that you fix the bug that I reported earlier, then the following things have to happen... that sort of multi-layered assumption... is a difficult thing for even a human being to do." - David Loker on the advanced, multi-step reasoning capability he observed in GPT-4o, which sets it apart from previous models.
  • At 58:27 - "It goes up to anywhere from... between 18 to 21 correct out of this 25. And that's a massive jump." - David Loker quantifying GPT-4o's performance leap on CodeRabbit's most difficult code review benchmarks, nearly doubling the accuracy of prior state-of-the-art models.
  • At 58:32 - "Our goal was to make human beings more creative... the human needs to be the creator and the machine needs to be in the backseat." - David Loker on his core philosophy for human-AI collaboration, emphasizing AI as an enabler rather than a replacement for human creativity.

Takeaways

  • Automate code reviews to free up developers from tedious tasks, allowing them to focus on high-value work like building new features and solving complex problems.
  • To get high-quality, reliable output from AI tools, you must engineer rich context by providing relevant documents, code dependencies, and user feedback to guide the model's analysis.
  • Embrace AI tools to accelerate the early stages of product development, enabling rapid prototyping, faster iteration, and the ability to "fail fast" before committing significant resources.
  • As AI generates more code, implementing an equally powerful AI-driven review process is essential to act as a quality gate, preventing an increase in bugs and technical debt.
  • Focus on developing skills in high-level architectural design and outcome-oriented communication, as these will become more valuable than low-level implementation skills in an AI-assisted future.
  • Recognize that the latest AI models represent a significant leap in reasoning ability, opening up new possibilities for tackling complex analytical tasks that were previously out of reach.
  • Adopt a human-centric approach to AI, viewing it as a collaborative partner that augments your abilities rather than a replacement, ensuring technology serves to enhance human creativity and control.

Watch the full episode 1 hr 17 min

Read along with the audio summary

If one artificial intelligence system generates your software code and another artificial intelligence system reviews it, how does the future of software quality actually play out? Host Jon Krohn raised that question on his podcast with guest David Loker in an episode that came out on September 29, 2025. By the end of this audio, you will learn how autonomous AI agents are breaking the code review bottleneck, why context engineering prevents AI errors, and how to stay in the driver's seat of a rapidly changing workflow.

Spot the hidden bottleneck slowing down your software team.

As artificial intelligence helps developers write a rising volume of code, checking all of that work by hand is becoming unmanageable. Loker notes that engineers do not want to just sit and read through lines of code; they want to build things.

To solve that bottleneck, you can use autonomous AI to speed up your development cycle.

Instead of waiting on overwhelmed human reviewers, agentic AI, meaning autonomous artificial intelligence agents, can step in to automate and enhance the review process. Jon Krohn explains that platforms like CodeRabbit, a Bay Area company, use AI to dramatically accelerate and improve these reviews.

Feed your AI the bigger picture for smarter feedback.

An AI cannot give a meaningful review if it only looks at a code diff, which is simply the isolated lines of text that changed. To perform meaningful reviews, the system requires context engineering, which means feeding it design documents, issue tickets, and architectural information so it understands the original intent.

Map your entire codebase to see how every change ripples outward.

Beyond external documents, the AI also needs to know how all the pieces of your software fit together. CodeRabbit achieves this using a technique called a code graph, which connects different pieces of the codebase to map dependencies and relationships.

That deep context teaches your AI the why behind your work, not just the what.

Most basic automated tools only check syntax, looking at what the code does on the surface. As the interviewer summarizes, providing rich context and a code graph enables the tool to go from looking at what changed to understanding why the code was written that way.

Force your AI to stick to the facts and stop making things up.

When a large language model, the technology powering modern AI, lacks information, it tends to fill in the missing details with assumptions. By grounding the model in verifiable context and evidence, the system can do a verification step and base its suggestions strictly on facts.

Trade low-level typing for high-level directing with vibe coding.

Software development is shifting toward a new paradigm called vibe coding, where developers describe the desired outcome, or vibe, while AI handles the low-level implementation details. Focus on developing your skills in high-level architectural design and outcome-oriented communication, as these will become more valuable than low-level coding skills.

Tap into a generational leap in machine reasoning.

The latest generation of AI models, specifically GPT-4o, shows a massive improvement in multi-step reasoning. On CodeRabbit's twenty-five most difficult code review benchmarks, GPT-4o got between eighteen and twenty-one correct, nearly doubling the accuracy of prior state-of-the-art models.

Use artificial intelligence to amplify human creativity, not replace it.

Creativity is a combination of novelty and value, and AI enhances it by handling rote tasks and helping non-experts bring ideas to life. David Loker shares that his advice for early product development is to use AI to test things, fail fast, listen to people, and iterate before spending effort making the code ready for production.

As artificial intelligence writes more of our software, pairing it with a context-aware AI review process is essential to prevent bugs and technical debt while freeing engineers to build. The human needs to be the creator and the machine needs to be in the backseat.

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

Related Episodes