Claude or GPT: Which LLM is best for code review?

When choosing an LLM for code review, most people start with the same question: Claude or GPT?

But a model that excels at writing code isn’t necessarily a good code reviewer. Finding bugs in changes it didn’t write, understanding the surrounding code, and avoiding unnecessary comments require a different set of skills.

To understand how these models perform on this task, we used the LLM code review benchmark we developed at Kodus, featuring 30 real pull requests from open-source projects and 121 confirmed bugs.

We compared four models: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.1 Sol, and GPT-6 Luna. Beyond the number of bugs each model found, we looked at comment precision, cost per review, and cost per bug found.

What stood out to us was that the biggest differences between Claude Opus and GPT-6.1 Sol were in comment precision and the cost of more in-depth reviews, rather than necessarily in their ability to find bugs.

TL;DR:

  • Claude Opus 5.5 and GPT-6.1 Sol achieved similar recall, with no conclusive statistical advantage in this sample.
  • GPT-6.1 Sol achieved higher precision than Opus in both review modes: 62.6% vs. 52.6% in Balanced mode.
  • In Heavy mode, GPT-6.1 Sol costs roughly half as much as Opus per bug found ($0.78 vs. $1.55).
  • Claude Sonnet 5.5 found 45 bugs in Balanced mode, compared to just 8 for GPT-6 Luna.
  • Claude Sonnet 5.5 achieved the highest precision among all 13 models tested in Heavy mode (57%).

Claude vs. GPT for code review: Benchmark results

The table below summarizes how the four models performed in Balanced mode, using the same set of 30 pull requests and 121 confirmed bugs.

ModelBugs foundRecallPrecisionCost per PR
GPT-6.1 Sol52/12143.0%62.6%$0.787
Claude Opus 5.551/12142.1%52.6%$0.715
Claude Sonnet 5.545/12137.2%57.0%$0.542
GPT-6 Luna8/1216.6%61.5%$0.023

Source: Code Review Bench, methodology v3. Balanced mode results.

Recall and precision in Balanced mode: GPT-6.1 Sol 43.0% and 62.6%, Claude Opus 5.5 42.1% and 52.6%, Claude Sonnet 5.5 37.2% and 57.0%, GPT-6 Luna 6.6% and 61.5%

GPT-6.1 Sol and Claude Opus 5.5 are the closest competitors in terms of cost and bug detection under this configuration.

Claude Sonnet 5.5 and GPT-6 Luna, on the other hand, represent the lower-cost alternatives from each provider in the benchmark, although they fall into very different price ranges.

Luna costs about 4% of what a Sonnet review costs. But as we’ll see, paying less per review doesn’t necessarily make a model more effective at reviewing code.

How we tested Claude and GPT on 30 real pull requests

To keep the comparison consistent, we had every model review the same 30 previously merged pull requests from five open-source projects:

  • cal.com
  • Discourse
  • Grafana
  • Keycloak
  • Sentry

The sample includes projects written in TypeScript, Ruby, Go, Java, and Python, with a ground truth of 121 confirmed bugs.

To build this ground truth, we reviewed and relabeled the bugs in each PR. Claude Opus 5.5 performed the initial review, a second reviewer checked the results, and disagreements were discussed.

The comments generated by each model were then compared against the ground truth using Claude Haiku 5.5 as the evaluator. To count as a match, a comment had to identify the same issue in the same location in the code.

We also cross-checked the evaluator’s decisions against Claude Opus 5.5 across 252 comments. The two models agreed in 249 cases.

All models ran within the same Kodus code review system, using each provider’s default reasoning settings.

Balanced vs. Heavy: The two code review modes we tested

We wanted to understand not only how each model performs in a single-agent review, but also how its performance changes when working alongside specialist agents.

That’s why we tested each model in two modes:

  • Balanced: A single general-purpose agent analyzes the pull request and posts review comments.
  • Heavy: The general-purpose agent runs in parallel with nine additional specialist agents that analyze specific aspects of the code, such as security and performance. Findings are verified and deduplicated before being published.

What metrics did we use to compare Claude and GPT?

We used four key metrics:

  • Recall: The percentage of the 121 confirmed bugs that the model successfully identified.
  • Precision: The percentage of published comments that matched confirmed bugs in the ground truth.
  • Cost per PR: The average token cost of reviewing a pull request.
  • Cost per bug found: How much was spent to identify each confirmed bug.

It’s important to look at these metrics together.

A model might find a lot of bugs but generate so much noise that developers start ignoring its comments. Likewise, a model can be cheap and precise while missing most of the actual issues.

You can find all the details in our benchmark methodology.

Claude Opus 5.5 vs. GPT-6.1 Sol for code review

GPT-6.1 Sol achieved higher precision and lower costs in Heavy mode, while Claude Opus 5.5 delivered similar recall and slightly lower costs in Balanced mode.

Recall: Does Claude Opus or GPT-6.1 Sol find more bugs?

GPT-6.1 Sol found more bugs in both review modes, but the results aren’t enough to conclude that it is inherently better at detecting bugs than Claude Opus 5.5.

RecallClaude Opus 5.5GPT-6.1 Sol
Balanced42.1% (51 out of 121)43.0% (52 out of 121)
Confidence interval (Balanced)30.4%–54.8%32.6%–54.4%
Heavy49.6% (60 out of 121)55.4% (67 out of 121)
Confidence interval (Heavy)41.0%–59.1%45.0%–67.1%

In Balanced mode, the difference was just one bug. When we added specialist agents in Heavy mode, that gap widened to seven bugs.

Despite GPT-6.1 Sol’s numerical lead, the confidence intervals overlap considerably in both modes.

With a sample of 30 pull requests, it would be premature to claim that one model is definitively better than the other at finding bugs.

Precision: GPT-6.1 Sol generates fewer false positives than Claude Opus

When we look at comment precision, things get more interesting.

GPT-6.1 Sol achieved higher precision than Claude Opus 5.5 in both review modes.

PrecisionClaude Opus 5.5GPT-6.1 Sol
Balanced52.6% (51 out of 97 comments)62.6% (52 out of 83 comments)
Heavy48.8% (60 out of 123 comments)55.4% (67 out of 121 comments)

In Balanced mode, GPT-6.1 Sol found one more bug than Opus while posting 14 fewer comments.

To me, this is one of the most meaningful differences in this comparison.

When a team uses AI code review every day, every incorrect comment is another interruption for a developer who has to read the suggestion and figure out whether there’s actually a problem in that part of the code.

It’s not enough to look at how many bugs an LLM finds. We also need to consider how much extra work it creates for the people on the receiving end of the review.

Cost: How much does code review with Claude Opus and GPT-6.1 Sol cost?

The two models have similar costs in Balanced mode, but that changes considerably when we introduce specialist agents in Heavy mode.

CostClaude Opus 5.5GPT-6.1 Sol
Per PR (Balanced)$0.715$0.787
Per bug found (Balanced)$0.421$0.454
Per PR (Heavy)$3.100$1.741
Per bug found (Heavy)$1.550$0.780
Cost per bug found in Heavy mode: Claude Opus 5.5 $1.550, Claude Sonnet 5.5 $0.923, GPT-6.1 Sol $0.780, GPT-6 Luna $0.107

If we only looked at Balanced mode, we’d probably conclude that cost wasn’t a deciding factor between Claude Opus and GPT-6.1 Sol.

But Heavy mode tells a different story.

Claude Opus 5.5 went up to $3.10 per pull request, making it the most expensive configuration in the entire benchmark.

GPT-6.1 Sol not only found more bugs in this mode but also achieved a roughly 50% lower cost per bug found.

That difference starts to add up when you’re reviewing hundreds or thousands of pull requests every month.

Source: Code Review Bench, methodology v3. Costs were calculated using Anthropic and OpenAI API pricing, including prompt caching discounts.

When should you choose Claude Opus 5.5 or GPT-6.1 Sol?

Claude Opus 5.5 remains a good option for teams already using Anthropic that plan to run mostly Balanced reviews, where its cost and recall are close to those of GPT-6.1 Sol.

GPT-6.1 Sol makes more sense when the priority is reducing false positives or running more in-depth reviews with multiple agents, based on the costs and performance observed in the benchmark.

Claude Sonnet 5.5 vs. GPT-6 Luna for code review

When we compared the lower-cost alternatives from Anthropic and OpenAI, we found a much bigger performance gap.

Claude Sonnet 5.5 found 45 of the 121 bugs in Balanced mode, while GPT-6 Luna found just 8.

MetricClaude Sonnet 5.5GPT-6 Luna
Recall (Balanced)37.2% (45 out of 121)6.6% (8 out of 121)
Confidence interval (Balanced)28.6%–46.9%2.4%–11.0%
Precision (Balanced)57.0%61.5%
Recall (Heavy)47.1% (57 out of 121)13.2% (16 out of 121)
Precision (Heavy)57.0%35.6%
Cost per PR (Balanced)$0.542$0.023
Cost per bug found (Balanced)$0.361$0.086

Source: Code Review Bench, Balanced and Heavy modes.

Why did GPT-6 Luna find so few bugs?

If you only look at precision, GPT-6 Luna seems like a promising option. After all, it achieved 61.5% precision in Balanced mode and cost just $0.023 per PR.

The problem is that it posted only 13 comments across all 30 pull requests.

Published comments in Balanced mode: Claude Sonnet 5.5 45 confirmed and 34 unconfirmed, GPT-6 Luna 8 confirmed and 5 unconfirmed

In other words, while a good portion of its comments matched confirmed bugs, it missed the vast majority of the issues in the ground truth.

There’s an important detail here: GPT-6 Luna ran with OpenAI’s default reasoning settings, which resulted in about 25 reasoning tokens per PR for this task.

Higher reasoning effort might improve its performance. Since we didn’t test other configurations in this benchmark, we don’t yet know how much that would change the results or costs.

Is Claude Sonnet 5.5 a good alternative to Claude Opus for code review?

Yes. In fact, Sonnet’s performance was one of the most interesting results of this comparison.

Although it found fewer bugs than Opus, Claude Sonnet 5.5 achieved higher precision in both review modes and a lower cost per bug found.

In Heavy mode, it achieved 57% precision, the highest among all 13 models evaluated in that configuration, with a recall of 47.1%.

For teams already using Anthropic models and looking to balance cost, precision, and bug detection, I’d test Sonnet before assuming that Opus is necessary for every review.

Which model should you choose for each code review scenario?

I don’t think there’s a single best LLM for every team and every type of pull request.

The right model depends on your review volume, budget, the complexity of your changes, and, most importantly, what your team expects from an AI code review tool.

Based on the benchmark results, we can break that decision down into a few scenarios.

PriorityRecommended model
Highest precision in Balanced modeGPT-6.1 Sol
Highest precision in Heavy modeClaude Sonnet 5.5
Highest observed recall among the four modelsGPT-6.1 Sol
Balance between cost and precision within AnthropicClaude Sonnet 5.5
In-depth reviews with multiple agentsGPT-6.1 Sol
Lowest absolute cost per PRGPT-6 Luna, with significant recall limitations

Best model for reducing false positives

GPT-6.1 Sol achieved the highest precision among all 13 models tested in Balanced mode, at 62.6%.

In Heavy mode, Claude Sonnet 5.5 came out ahead with 57% precision, compared to 55.4% for GPT-6.1 Sol. However, it found ten fewer bugs.

If too many incorrect comments are a problem in your review process, these are two models worth evaluating.

Best model for finding more bugs

Between Claude Opus 5.5 and GPT-6.1 Sol, the benchmark didn’t establish a conclusive advantage in recall.

But if finding as many bugs as possible is your top priority, it’s worth looking beyond Anthropic and OpenAI models.

Kimi K3.1 Pro, for example, found 83 of the 121 bugs in Balanced mode, outperforming all four models in this comparison in terms of recall.

We explore this result in more detail in our article on the best LLMs for code review and our Kimi vs. Claude code review comparison.

Best model for teams already using Anthropic or OpenAI

Choosing a model isn’t always a purely technical decision. Many teams already have contracts, available credits, or security policies that restrict which providers they can use.

Within Anthropic’s lineup, Claude Sonnet 5.5 offers a good balance of precision, recall, and cost.

Within OpenAI’s lineup, GPT-6.1 Sol significantly outperforms GPT-6 Luna under the default configuration we tested.

Best model for multi-agent code review

If you’re planning to use specialist agents to review more complex changes, GPT-6.1 Sol is worth considering.

In Heavy mode, it found 67 of the 121 bugs at an average cost of $1.741 per PR.

Bugs found in Balanced and Heavy modes: GPT-6.1 Sol 52 and 67, Claude Opus 5.5 51 and 60, Claude Sonnet 5.5 45 and 57, GPT-6 Luna 8 and 16

Claude Opus 5.5 cost $3.10 per PR, while Claude Sonnet 5.5 was close to GPT-6.1 Sol at $1.754 per review.

In this scenario, I’d start by evaluating GPT-6.1 Sol and Claude Sonnet 5.5.

Claude vs. GPT code review cost calculator

Use the calculator below to estimate the monthly API cost of each model based on your team’s pull request volume and preferred review mode.

AI code review cost calculator
GPT-6 Luna$23.00
Claude Sonnet 5.5$542.00
Claude Opus 5.5$715.00
GPT-6.1 Sol$787.00
Monthly difference between the most and least expensive model: GPT-6.1 Sol vs GPT-6 Luna
$764.00 API cost per PR measured in the benchmark. Excludes infrastructure, licensing and human time.

Should you use the same model for every pull request?

One thing this benchmark reinforces is that you don’t necessarily need the most expensive model to get a good code review.

You also don’t need to treat every pull request the same way.

A dependency update, a documentation change, and a modification to an application’s access permissions all carry different levels of risk.

It makes more sense to choose models and review strategies based on the complexity and risk of each change.

For example, a team might use a Balanced configuration for simpler PRs and reserve multi-agent reviews for changes involving authentication, security, customer data, or critical business logic.

That’s exactly why we built different review modes into Kodus and made it possible to configure review routing based on the risk of each pull request.

The goal isn’t simply to spend fewer tokens. It’s to allocate more resources to the changes that actually need a deeper review.

Kody, the Kodus mascot, reviewing code at a computer

Run Claude or GPT on your own PRs

Bring your own API key, choose your preferred model, and pay for tokens with zero markup.

Try Kodus for free
Works with

What are the limitations of this Claude vs. GPT benchmark?

As useful as these results are, it’s important to understand what this benchmark can and cannot measure.

One run per model: Each model was run once in each review mode. Resampling the 30 PRs produces recall confidence intervals roughly 20 percentage points wide. Small differences should therefore not be treated as conclusive.

Default reasoning settings: All models used their providers’ default settings. Changing reasoning effort could affect both performance and cost, particularly for GPT-6 Luna.

Same code review system: The models were tested within the Kodus code review system. Results may differ in other tools that use different approaches to context, prompting, and execution.

Anthropic-based ground truth and evaluator: Claude Opus 5.5 participated in labeling the ground truth, and Claude Haiku 5.5 was used as the evaluator. This introduces a potential source of bias in a comparison between Anthropic and OpenAI. Agreement between evaluators does not eliminate that possibility.

Fixed ground truth: Comments that don’t match previously identified bugs are counted as false positives, even when they may point to other valid issues.

To make the results easier to reproduce and analyze, we’ve made the data available in the public Code Review Bench GitHub repository.

FAQ

Is Claude or GPT better for code review?

In a benchmark of 30 pull requests and 121 confirmed bugs, GPT-6.1 Sol achieved higher precision than Claude Opus 5.5 in both Balanced and Heavy modes. The difference in recall was inconclusive. In Heavy mode, GPT-6.1 Sol also achieved a roughly 50% lower cost per bug found.

Is GPT-6 Luna good for code review?

Under the default reasoning configuration tested, GPT-6 Luna found only 8 of the 121 bugs in Balanced mode, achieving a recall of 6.6%, the lowest among all 13 models evaluated. Configurations with higher reasoning effort were not tested.

Claude Sonnet 5.5 vs. Claude Opus 5.5: Which offers better value for code review?

Claude Sonnet 5.5 achieved higher precision and a lower cost per bug found in both review modes. In Heavy mode, Sonnet cost $0.92 per bug found, compared to $1.55 for Opus, although Opus identified more bugs.

Is GPT cheaper than Claude for code review?

It depends on the model and review strategy. In Balanced mode, Claude Opus 5.5 cost $0.715 per PR, compared to $0.787 for GPT-6.1 Sol. In Heavy mode, GPT-6.1 Sol cost $1.741 per PR, compared to $3.10 for Claude Opus 5.5.

Does using multiple agents improve Claude and GPT’s code review performance?

In our tests, all four models found more bugs when using specialist agents in Heavy mode. GPT-6.1 Sol went from 52 to 67 bugs found, while Claude Opus 5.5 went from 51 to 60. However, using multiple agents also increased review costs.

Which Anthropic model has the highest precision for code review?

Among the Anthropic models evaluated in this comparison, Claude Sonnet 5.5 achieved the highest precision, at 57% in both Balanced and Heavy modes, outperforming Claude Opus 5.5 in both scenarios.

Which OpenAI model is best for code review?

Among the OpenAI models tested, GPT-6.1 Sol delivered the best overall performance. It found 52 of the 121 bugs in Balanced mode and 67 in Heavy mode, while GPT-6 Luna found 8 and 16, respectively, using each provider’s default reasoning settings.

So, is Claude or GPT better for code review?

If I had to choose between Claude Opus 5.5 and GPT-6.1 Sol based on the results of this benchmark, I’d start with GPT-6.1 Sol.

The two models achieved similar bug detection results, but GPT-6.1 Sol generated proportionally fewer incorrect comments and was considerably cheaper when running reviews with specialist agents.

Among Anthropic’s models, Claude Sonnet 5.5 would be my first choice for teams looking to balance cost and review quality.

That said, I wouldn’t choose a model based solely on a benchmark. I’d use these results as a starting point and test the shortlisted models on my own team’s pull requests.

The programming languages you use, your project’s context, the size of your changes, and the types of issues you typically encounter can all make a big difference in which model works best for your team.

If you want to explore how other models performed or compare different review strategies, all the data is publicly available on Code Review Bench.