Introducing a new way to review your PRs.

Read the announcement

How to Reduce False Positives with AI Code Review

Everett Butler • Nov 24, 2026

navigation|Content LibraryHow to Reduce False Positives with AI Co...

What's worse than a noisy AI code review tool? Well, when you're trying to merge your PRs and wading through a pile of irrelevant comments… nothing.

AI code review has a massive problem. Most tools fall into one of two camps:

  • Most tools are really noisy. Devs either spend a massive amount of time sorting through false positives, irrelevant nits, and bad comments, or they ignore the comments altogether. Both create a bad experience and worse code overall.
  • Other tools have lower noise, but they miss bugs. You can't be confident that your code is clean, because these tools will skip over even critical bugs. Time-to-merge improves, but bugs slip through to prod and no one catches them.

Devs want low noise, but EMs want high recall. What's the solution?

The only real solution, in our opinion, is to use a tool that gives you high-precision review that increases the number of critical bugs caught, while also reducing false positives with context-rich review and options for fine-tuning. Better yet: AI code review that learns from your team automatically, so you don't have to manually teach it every rule.

In this piece, we'll show you how to find the right tool(s) for your team, reduce false positives, and train your tool for better code review.

Why do false positives happen in AI code review?

False positives happen when an automated or AI code review tool flags a section of code as a bug, vulnerability, or error, when the code is actually completely safe and working.

They're more common in linters and static analysis review tools, where the codebase is compared against a static database of rules and patterns. In these cases, the tools don't understand the logic or architecture of your specific codebase. This low-context review creates lots of false positives, and these tools are often very noisy as a result.

Other common reasons for high false positives include:

  • Pattern-matching loses intent. Static analysis tools often lose the intent behind why code was written a certain way, blindly following known patterns and rules rather than analyzing the architecture, function, and context of the entire PR or codebase.
  • No runtime visibility. When a tool can't see how the code works at runtime, it's likely to flag more false positives. It's reading the diff and spotting potential bugs and errors, rather than actually running the code to see if it works. It also can't see if a particular vulnerability is actually exploitable, if data is sanitized elsewhere, or if another component of the codebase "fixes" the "error" it sees.
  • Overly strict defaults and nits. Unfortunately, many SAST tools come with overly strict preset defaults, making them extremely noisy at first. Tools tend to check code against every rule in the book, flagging hundreds of semantic and surface-level "bugs" when the context of your codebase, style guide, or standard syntax means those aren't errors at all.
  • Unrecognized custom functions. Your team's custom functions or particular style guide may not adhere to "standard" rules, causing rules-based analyzers to flag these as bugs when they're not.

Why are false positives problematic?

If you're reading this article, we probably don't have to explain why false positives are so problematic. You're already annoyed and in over your head with noisy linters and review tools.

But for any EMs reading who need clear logic to make the case for better code reviewers, here's the problem in a nutshell:

False positives create a weaker, less secure codebase over time.

It seems like it would be the opposite. After all, more flags are better than fewer, right? At least the tool is catching everything?

But false positives overwhelm developers with false alarms. The tool becomes the boy who cried wolf. Over time, as devs waste time investigating problem after problem that turns out to be nothing, they learn that the tool is untrustworthy and stop "wasting time" looking into flagged errors and bugs.

Not only that, but when hundreds of potential issues are flagged on a PR, it's hard to sift through the noise to find the few that are actually critical.

The result, of course, is that real bugs the tool flags start slipping through the cracks as devs ignore or silence comments from the reviewer. Bugs slip through to prod, vulnerabilities go uncaught, and the codebase gets less secure over time.

For example, Liu et al. tracked AI-introduced issues across over 6,000 real production repositories from early 2025 through February 2026. Out of 464,900 tracked AI-introduced issues, 22.7% still survived in the codebase in February 2026 [1]. Each of these issues erodes trust and security.

And through their project SlopCodeBench, Orlanski et al. found that the longer agents work on a codebase without validation, the more expensive every subsequent change becomes [2]. These costs increase because the codebase itself becomes progressively harder to work with.

Low noise vs. high recall: which is better?

In code review, there are generally two approaches:

  • High recall: Flagging as many bugs as possible, even if it creates a lot of noise or false positives
  • Low noise: Reducing false positives as much as possible, even if it means missing some actual bugs

Here's how the two approaches stack up:

ApproachProsCons
Low noise
  • Less dev overwhelm
  • More likely for devs to investigate issues flagged
  • Keeps teams moving faster
  • Focus on most critical errors
  • Easy for bugs to get missed and slip through to prod
  • Can create a false sense of security
High recall
  • Catches more bugs
  • Creates more trust in the codebase being error-free (when issues are investigated)
  • Can reduce risk for critical, security-focused codebases
  • Creates high dev overwhelm
  • Alert fatigue means issues may be ignored
  • Critical issues can get lost in the noise
  • Reduces productivity and speed as devs have to investigate lots of false positives

For most teams, a low-noise tool is the better option. But ultimately, neither of these trade-offs is ideal.

Both approaches end in the same place: missing critical bugs and errors that degrade codebases over time.

So at Greptile, we take a third route: high precision, built on context-rich reviews. That way, your code review can ignore what's not important, catch the most critical bugs, reduce false positives, and eliminate pedantic noise.

Post from Bence Redmond, who ran five review agents on more than 500 PRs, calling Greptile's comments incredibly accurate with virtually no false positives

Because ultimately, the lowest-noise version of a code review tool is not using a code review tool at all. But that's clearly not the solution. You don't want no noise. You want as little noise as possible, so that your tool can catch the right bugs while ignoring what isn't important.

How to reduce false positives in AI code review

So, false positives are both frustrating and dangerous. The more of them show up, the more your devs ignore the code review, and the more bugs slip through to prod over time.

How do you fix it? Here are seven techniques for reducing false positives in AI code review tools:

Use a code reviewer that learns your codebase

This is the most important step: use a code reviewer that learns and understands your codebase context. Without a full-context code review, your tool will always have high false positives because it's always analyzing code "blind."

For example, here's how that works in Greptile:

  1. Greptile starts by constructing a graph of your complete codebase. It documents how each part of your codebase works, then builds a map of how each part connects to everything else.
  2. From there, it builds a completely custom knowledge base of your entire codebase. You can see and edit this at any time, but Greptile also edits it on its own as you make changes, merge PRs, accept and reject Greptile comments, and as Greptile learns more about your codebase.
  3. Then, Greptile reviews each PR with that entire codebase and even cross-repo context in mind. It looks at code not based on patterns or generic rules, but based on how it works and communicates with every other part of your codebase. It also learns from your feedback and changes over time to create more personalized, contextual, precise reviews, without the noise.
Greptile dashboard showing the knowledge base it built for a repository, open on an editable doc covering billing and scheduled jobs

Not only does this generate less noise, since Greptile can see beyond the individual diff, but it also gives Greptile the deep context to catch hidden, complex bugs. Lower noise and higher precision, at the same time.

Add custom standards

By configuring the rules your code reviewer uses, you can add custom standards, style guides, and context to your review, while eliminating noise from standard rules, patterns, and CVEs that don't apply to your team.

Most tools allow you to set custom rules and configuration, but every tool handles it differently. In Greptile, you can set custom standards by:

  • Adding custom rules via the Dashboard at the team or organization level. This is best for simple syntax rules, naming conventions, and other straightforward rules, and changes apply within minutes.
  • Adding existing style guides (in Markdown, plain text, YAML, or JSON files) to your custom context.
  • Using .greptile/ folders to set version-controlled rules with per-directory overrides for longer, more complex sets of standards. This is ideal for monorepos and teams that want rules reviewed directly in PRs. You can set rules via structured JSON, free-form Markdown, or both.
  • Using greptile.json to set all configuration parameters across your entire repo. You can control review behavior, PR filters, file patterns, custom context, and output formatting.

Greptile also learns from your PR feedback: what you merge, what you change, and what you ignore. It will automatically suggest new rules and standards based on its reviews and your changes, which you can approve, modify, or ignore.

Post from John Horton saying Greptile's PR comments are gold and getting better, and that his coding agent agrees with them and fixes the issues

Configure your code reviewer to reduce nitpicking

Along with setting up custom standards, you can also configure your code reviewer to reduce nitpicking. Basically, this lets you tell your code review tool how strict you want it to be. Would you rather just hear about the most critical issues? What triggers do you want it to focus on? Do you only want certain comment types? In a good code review tool, all of this can be configured to essentially make your tool "shut up" when it's being too noisy.

On Greptile, you can configure:

  • Strictness: limit comments based on severity
  • Comment types: filter which categories Greptile provides feedback on (logic, syntax, and/or style)
  • Ignore patterns: exclude files that don't need review (test files, dependencies, config files, and so on)
  • Trigger config: set up when Greptile reviews run

Use a scoring system to understand severity

A scoring system for the severity of each flagged issue can also help reduce noise and surface the most critical issues out of a list of flagged issues. That is: even when false positives happen, severity can help you find what to focus on first.

It can also help your team triage. Even if all the issues flagged are real, you don't need to spend the same amount of time on each comment. Focus on what's critical, then move on accordingly.

The same goes for the level of review: small, minor PRs might only need a quick review with no nitpicks, while more complex PRs with critical changes need a full review that catches every issue, even if there's some noise.

In Greptile, there are two ways to do this:

  • Set the appropriate review tier. Base gives you thorough review with full codebase context; Plus adds a deeper layer for extra scrutiny; and Apex is an intensive review for complex PRs. You can also set up tier rules to automatically select the right level of review based on PR labels, length, or other filter conditions.
  • Filter by severity level. Filter by issues with higher severity (P0) to surface and focus on critical issues, or look at P1 and P2 issues as well for a more thorough review.
LevelSeverityDescription
P0CriticalMust fix before merging: security vulnerabilities, data loss, crashes
P1HighShould fix: bugs, incorrect behavior, edge cases
P2MediumConsider fixing: code quality, maintainability, best practices

Train your code reviewer's learning system

A good code reviewer, whether AI or human, gets better over time. It learns from your team, your changes, your codebase, and your conventions to get less noisy and surface better, more precise changes.

This isn't the case for many tools, but with tools like Greptile, you can train the learning system to get better, faster. For example:

  • Use the 👍 / 👎 emoji reactions on Greptile comments to show the system what to focus on. Thumbs up tells Greptile to make more comments like this. Thumbs down trains it to stop making these types of comments.
  • Add context to changes. If you downvote a comment, tell Greptile why. A quick line or two of explanation (for example, "We don't enforce this in test files") gives Greptile context to add to your codebase knowledge base, which prevents this type of mistake in the future and reduces false positives and noise.
  • Add comments to explain preferences. If Greptile doesn't do something the way you would, just say so. Short, specific, clear comments update the learning system and knowledge base to train Greptile to review like you do over time, only focusing on what's actually helpful.

Use opposing models

As your workflow gets more agentic, using opposing models to write code and review it becomes more critical. This is something that not enough teams do or talk about.

When you use Claude Code to write the code, and also use Claude as your reviewer, it misses the same errors it made (false negatives) while also tending to be nitpicky about other errors (false positives). The same goes for Cursor and Bugbot, and other tools that use the same model to review and to write.

Instead, opt for a code reviewer that implements model inversion automatically. Not only does this cover your bases so you get a more thorough review, but it also offsets the weak spots of individual models: GPT tends to drop bugs, while Opus tends to leave far more comments than it should. Neither model gets the whole picture right, especially on code it wrote.

That's why we've built Greptile to use model inversion automatically. It detects which coding agent authored a PR based on commit trails, branch prefixes, and PR titles, and routes the review to a different model. If Claude wrote it, GPT reviews it, and vice versa. Greptile also spins up a swarm of review agents using a variety of models and review methods to produce a more thorough review while reducing false positives.

Add in runtime validation

One of the biggest ways to reduce false positives is to simply run the actual code. There's a world of difference between reading the diff and actually running the code and seeing how it performs in a real-world context.

Not only can you catch bugs that only show up at runtime (reducing false negatives), but you can also eliminate nitpicking and false positives, particularly with security vulnerabilities that aren't exploitable, code that isn't reachable, or "errors" and "bugs" that are resolved when connected to other parts of your codebase.

At Greptile, we've solved for this with TREX:

  • TREX can run on any PR: all PRs, any you choose, or certain types by default with filters set up.
  • TREX starts by understanding the change and what needs to be tested, looking at the PR, your repo, your test suite, and your stack to figure out what needs to run.
  • Then TREX spins up a sandbox for every PR that needs checking.
  • TREX installs your dependencies, starts the services the change touches, and exercises the code with targeted tests.
  • Then it clicks through desktop apps, web apps, and command-line tools the way a real user would.
  • As it goes, TREX captures screenshots, logs, videos, scripts, and other artifacts that help you see exactly what happened, and whether it's something you need to worry about or not.

This increases context, which decreases false positives, while increasing precision, giving you the exact details about the most critical issues that would break something if they went to prod.

Diagram showing issues caught in review sent to TREX subagent sandboxes, which report what TREX did alongside evidence including logs, screenshots, and video

Best low-noise AI code review tools with low false positive rates

ToolNoise levelBest forDrawbacks
GreptileLowBest overall for full-context AI code review with low false positive ratesGreptile improves with time, so your reviews get better after a few weeks of use
GraphiteLowComplementing human reviewMisses many bugs due to emphasis on low noise
QodoLowCustom rules systemsGovernance-first, diff-only review misses bugs while requiring lots of setup
CodeAntMediumSAST and security scanningOverly cautious and requires lots of tuning to reduce noise
CodeRabbitMedium (noisier on larger PRs)Diff-only annotationsDiff-only analysis means CodeRabbit misses more bugs and requires active tuning to be useful

For a closer look at the top tools and how they compare for low-noise code review, read our guide to the best AI code review tools.

How Greptile helps reduce false positives with AI code review

Ultimately, it's really hard to build a code review tool that has zero false positives. But at Greptile, we're on a mission to make a world without bugs. Part of that means reducing false positives as much as possible.

That's why we've built Greptile to:

  • Learn and review based on the entire codebase context, not just the diff, for high-context reviews that reduce false positives
  • Let you add custom context, standards, style guides, and instructions to tune your review
  • Let you configure your PR review settings to reduce nitpicking
  • Score bugs based on severity, so you know what to focus on
  • Learn from your team both implicitly and explicitly: you can train your reviewer manually, and your reviewer also learns from your team's changes and actions
  • Use inverted models, so you get the best review with the least noise from AI reviewers
  • Run runtime validation with TREX, so you can see how the change impacts the application, not just review the diff. This adds context and validation to catch hidden bugs while reducing noise.

And in Greptile v5, we've seen all of this paying off. Our A/B testing of Greptile v5 over a million PRs shows:

  • The percentage of Greptile comments addressed increased from 52% to 66%. Less noise, more signal.
  • Developers' positive replies ("nice catch," "fixed") to Greptile's comments increased 28.6% per pull request.

That's why teams like Brex can use Greptile on a decade-old monorepo and still say:

“

We've tried more code review tools than I can count. Greptile outperforms them all by a mile. Honestly the only AI reviewer that doesn't annoy the s**t out of me.

”
James Reggio • CTO, Brex

Try Greptile free for 14 days and see what a difference it can make for your team →

Footnotes

[1] Liu, Y., Widyasari, R., Zhao, Y., Irsan, I.C., Chen, J., and Lo, D. "Debt Behind the AI Boom: A Large-Scale Empirical Study of AI-Generated Code in the Wild." arXiv:2603.28592, April 2026. arxiv.org/abs/2603.28592

[2] Orlanski, G., Roy, D., Yun, A., Shin, C., Gu, A., Ge, A., Adila, D., Roberts, N., Sala, F., and Albarghouthi, A. "SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks." arXiv:2603.24755, May 2026. arxiv.org/abs/2603.24755





See Greptile in action