
What happens when AI reviews infrastructure configuration instead of application code? We ran an experiment with Codzee, Greptile, CodeRabbit, and CodeAnt. One result revealed a surprising blind spot.
AI code review tools are getting better at finding bugs, security vulnerabilities, and suspicious code changes.
But there is one question we wanted to explore:
Can an AI code reviewer understand whether an entire application will actually work, or does it only identify problems in the code it can see?
To find out, we ran our 16th AI code review benchmark.
This time, we moved away from application logic and focused on infrastructure configuration.
We tested four tools against the same GitHub pull request:
- Codzee
- Greptile
- CodeRabbit
- CodeAnt
We introduced 24 deliberate defects across three files and compared the findings.
Codzee came close to a perfect score.
But the most interesting discovery came from the tool that finished last.
Let's look at what happened.
1. Setting up the experiment
For this round, we used GitHub pull request #17.
The pull request contained 113 changed lines across three files:
Dockerfile
docker-compose.yml
deploy/config.yaml
We deliberately introduced 24 defects covering different infrastructure and security problems.
Some examples included:
- Hardcoded credentials in Docker image layers.
- Containers running with excessive privileges.
- Docker socket exposure.
- PostgreSQL exposed on
0.0.0.0:5432. - Wildcard CORS with credentials.
- Disabled TLS verification.
- Missing persistent storage.
- Unauthenticated access to guest information.
- Insecure cookie configuration.
- Unredacted request-body logging.
We also included two cross-artifact defects that required understanding application code merged in our previous benchmark round.
The answer key was prepared before the branch was pushed.
All four tools reviewed the same pull request, and we evaluated their findings against the same criteria.
Our evaluation recorded:
| Metric | Result |
|---|---|
| Planted defects | 24 |
| Changed lines | 113 |
| Files | 3 |
| Inline findings | 39 |
| False positives | 0 |
| Additional genuine defects | 3 |
The three additional defects were not part of our original answer key, so we recorded them separately.
2. The leaderboard
Here are the results:
| Tool | Findings | Detection rate |
|---|---|---|
| Codzee | 23/24 | 95.8% |
| CodeRabbit | 14/24 | 58.3% |
| CodeAnt | 12/24 | 50% |
| Greptile | 6/24 | 25% |
Codzee finished first, identifying 23 of the 24 planted defects.
Its category-level performance was:
| Category | Codzee |
|---|---|
| Dockerfile | 7/8 |
| Docker Compose | 6/6 |
| Deployment configuration | 8/8 |
| Cross-artifact | 2/2 |
This was an encouraging result, especially because infrastructure configuration was a new evaluation domain for our benchmark.
Codzee also demonstrated useful cross-file reasoning.
For example, it identified the same password appearing in three different files and connected an exposed export endpoint with the configuration that allowed guest contact information to be included in exports.
However, the leaderboard was only part of the story.
3. The unexpected result: Greptile found three problems outside our answer key
Greptile finished fourth with six scored findings.
Initially, this looked like a straightforward result.
But while examining the review comments, we noticed three additional findings.
All three were genuine repository issues, and none of the other tools identified them.
Problem 1: The API entry point did not exist
The deployment configuration referenced:
booking.api:app
But the corresponding module did not exist in the repository.
This meant the API container would fail during startup.
Problem 2: The export directory was not actually shared
The API wrote exported files to a container-local directory.
However, only the Nginx container mounted the host directory.
As a result, the API and Nginx were not accessing the same files.
The API could generate exports, but the service responsible for serving them could not access them through the intended shared location.
Problem 3: The deployment configuration was never loaded
This was probably the most interesting discovery.
The file deploy/config.yaml contained important settings, including:
- A payment gateway API key.
- A session secret.
- Wildcard CORS.
- Disabled TLS verification.
Other tools reported several of these values as security risks.
Greptile discovered that no code in the repository actually loaded this configuration file.
This meant the file was not currently connected to the application's configuration-loading path.
The values were still unsafe and could become active if someone implemented the loader later.
But the discovery revealed something the other reviews had missed: the configuration itself was not being used.
This was an important distinction.
Reviewing configuration values is not the same as understanding how an application uses those values.
4. Two different approaches to AI code review
After examining the findings, we noticed an interesting difference.
Codzee, CodeRabbit, and CodeAnt were particularly strong at identifying unsafe configuration settings.
They focused on questions such as:
- Are credentials exposed?
- Are containers running with excessive permissions?
- Are services unnecessarily exposed?
- Is sensitive information accessible without authentication?
Greptile's additional findings focused on a different set of questions:
- Does the referenced application module exist?
- Are the services actually sharing the required files?
- Is the deployment configuration loaded anywhere?
Both approaches are important.
A configuration can contain dangerous settings, but an application can also be fundamentally broken even when its individual configuration values look reasonable.
This is one of the biggest lessons from this experiment.
AI code review should not stop at identifying suspicious lines. It should also consider how the entire system fits together.
5. What each tool did well
Codzee
Codzee delivered the strongest overall result with 23/24 findings.
Its strongest areas were Docker Compose and deployment configuration, where it identified every planted defect.
It also demonstrated cross-file reasoning and strong severity classification.
It identified eight Critical findings and explained the potential impact of the Docker socket exposure.
Its only missed planted defect was the absence of a .dockerignore file.
CodeRabbit
CodeRabbit finished second with 14/24.
One of its strengths was security reporting.
It included CWE identifiers, reachability, and exploitability information.
For example, it associated hardcoded credentials with CWE-798 and cleartext communication with CWE-319.
It also performed well on Docker Compose, identifying five out of six defects.
CodeAnt
CodeAnt finished third with 12/24.
Its strongest category was deployment configuration, where it identified six of eight defects.
It correctly identified problems involving cookie configuration, disabled TLS verification, unredacted request logging, and CORS.
Greptile
Greptile finished fourth with 6/24.
Its score does not fully represent the value of its review in this particular experiment.
Its three additional findings revealed fundamental deployment problems that were not included in the original scoring system.
However, it also missed several important security issues in the deployment configuration.
This is why we think benchmark scores should always be considered alongside the actual findings.
6. Another observation: Larger pull requests can affect review depth
We also compared finding density across previous benchmark rounds.
| Round | Review type | Findings per 100 lines |
|---|---|---|
| Round 11 | Code | 38.8 |
| Round 14 | Code | 39.2 |
| Round 15 | Large code diff | 16.1 |
| Round 16 | Infrastructure | 34.5 |
Round 16 produced 34.5 findings per 100 changed lines.
This was close to our earlier code-review baseline and more than twice the density observed in round 15, which involved 435 changed lines.
Our observation is that review depth appears to be affected by the size of the change more than by whether the review involves application code or infrastructure.
This is a pattern from our benchmark, not a universal rule, but it is something we want to investigate further.
7. What we learned
This experiment gave us three practical takeaways.
1. Check whether the system actually works.
A review should verify that application entry points exist, configuration files are loaded, and services share the directories they are expected to access.
2. Look for things that are missing.
Codzee missed the missing .dockerignore file.
We have seen similar patterns in previous rounds involving deleted tests and missing transaction wrappers.
AI reviewers should consider missing components, not just incorrect existing lines.
3. Don't judge a review only by its score.
Codzee was the clear winner on our predefined answer key.
But Greptile's additional discoveries showed why a leaderboard cannot communicate the full value of a code review.
The quality of the findings matters just as much as the quantity.
8. What comes next for Codzee?
This was our sixteenth benchmark round.
Across our running evaluation, Codzee has led or tied in 11 rounds, Greptile in six, CodeRabbit in one, and CodeAnt in one.
Codzee has now recorded ten consecutive wins in the benchmark.
We are encouraged by these results, but we also see opportunities to improve.
For example, the missing .dockerignore finding highlights the importance of checking for absent files.
We also observed that the inline review interface displayed only 10 of Codzee's 26 findings directly, with the rest collapsed.
Making important findings easier to discover is another area worth improving.
Our focus remains on making AI-assisted code review more useful for real development workflows.
Final thoughts
We started this experiment with a simple question: Which AI code review tool would identify the most infrastructure defects?
Codzee delivered the highest score with 23 out of 24.
But the most unexpected discovery came from Greptile, which identified three additional problems that could prevent the infrastructure stack from working correctly.
That changed the way we looked at the results.
Finding a security vulnerability is important.
Understanding why an application cannot start is equally important.
And connecting those findings to the bigger picture is what makes a review genuinely useful.
The goal of AI code review should not simply be to find more bugs. It should be to help developers understand what can go wrong before their code reaches production.
That is what we want to keep exploring in our upcoming experiments.
Top comments (0)