WhoBuilt

AI powered entomology: Lessons from millions of AI code reviews

Jul 22, 2025· 10 min· 5.8K views·Watch on YouTube

Speaker

Tomas Reimers, co-founder of Graphite, explains at the AI Engineer conference how AI code review can find useful bugs while avoiding feedback developers do not want.

Why Graphite built an AI code reviewer

Graphite’s Diamond reviews GitHub pull requests for bugs. Reimers says the team saw AI-generated code increasing alongside bugs, so they explored whether AI could help find them. Early examples included an uninstantiated ORM class that could crash a server and border-radius math that could divide by a negative number.

Separate useful findings from unwanted feedback

Reimers says AI reviewers can also make frustrating or incorrect suggestions, such as reverting code to an earlier behavior or recommending changes that are unnecessary. The team distinguished issues an LLM can identify from those it cannot, then added a second question: whether developers actually want that kind of feedback from a bot. Suggestions like adding comments, tests, or helper functions may be technically defensible but still unwelcome.

Map review comments by capability and usefulness

Graphite analyzed 10,000 comments from its own and open-source codebases to categorize common review feedback. Logical errors, accidental code, performance, and security concerns were among the bug types reviewers raised. Some valuable feedback relies on tribal knowledge held by senior developers, while routine cleanliness and best-practice suggestions can be easy for an LLM to generate but unwelcome to receive.

Measure whether comments help developers act

After adjusting prompts to focus on findings the model could make and developers wanted, Graphite looked for ways to track quality as models and context changed. Users can upvote or downvote comments; Reimers says the downvote rate is now below 4%. The team also measured whether comments led to code changes in the same pull request: about 50% of human comments did, and Diamond reached 52% as of March.

Interpret code changes in context

Reimers cautions that a comment not fixed in the same pull request may still prompt a follow-up, offer a future suggestion, or reflect a preference the author disagrees with. Healthy code review allows for that disagreement. The team treats same-PR changes as a useful measure of comment fidelity, not a complete measure of review value.

Takeaways

  • Judge AI review comments by whether they identify real issues and whether developers welcome the feedback.
  • Use code history, team conventions, and human judgment to filter technically correct but low-value suggestions.
  • Track user reactions to catch hallucinations and adjust prompts when downvotes rise.
  • Measure whether comments lead to changes, while accounting for follow-ups, heads-ups, and legitimate disagreement.

Mentioned in this talk

Search inside this talk

What was claimed 7

  • founded
    co-founder
    “I'm one of the co-founders of Graphite”
    YouTube
    Verified5 sources· Talk, Web· archived
  • feature
    Diamond: AI-powered code reviewer that connects to GitHub and finds bugs
    “You connect it to your GitHub, and it finds bugs.”
    YouTube
    Unverified1 source· Talk
  • built
    “Graphite builds a product called Diamond.”
    YouTube
    Verified2 sources· Talk
  • uses
    “We started asking Claude, “Hey, here's a PR. Can you find bugs in it?””
    YouTube
    Unverified1 source· Talk
  • metric
    Graphite: Less than 4% downvote rate on Diamond comments
    “these days we see less than a 4% downvote rate”
    YouTube
    Unverified1 source· Talk
  • metric
    Graphite: About 50% of human comments on the examined repositories led to changes
    “only about 50% of human comments lead to changes”
    YouTube
    Unverified1 source· Talk
  • metric
    Diamond: 52% of comments led to a change as of March
    “As of March, we're at 52%.”
    YouTube
    Unverified1 source· Talk

Related talks