We Tested 4 AI Code Review Tools on 24 Infrastructure Bugs. Here's What Happened.
Can AI code reviewers understand an entire system, or do they just detect suspicious lines of code? we've been exploring this question through an ongoing AI code review benchmark. For the 16th round, I decided to change the challenge. Instead of reviewing application logic, Python functions, or SQL

Can AI code reviewers understand an entire system, or do they just detect suspicious lines of code?
we've been exploring this question through an ongoing AI code review benchmark.
For the 16th round, I decided to change the challenge.
Instead of reviewing application logic, Python functions, or SQL queries, I gave four AI code review tools something different:
A Dockerfile, a Docker Compose stack, and a deployment configuration.
But hidden inside those files were 24 deliberately introduced defects.
The results were interesting. One tool detected 23 of them. Another detected only 6 of the planted defects but discovered three additional issues that could prevent the entire deployment from working.
All four reviewed the same pull request: PR #17.
Dockerfile docker-compose.yml deploy/config.yaml Enter fullscreen mode Exit fullscreen mode I prepared an answer key containing 24 defects before pushing the branch.
The defects covered security, configuration, container permissions, networking, persistence, and interactions between infrastructure and existing application code.
I also included six deliberately correct settings to evaluate whether the tools would generate false positives.
The goal wasn't simply to see which tool produced the most comments.
I wanted to understand whether these tools could identify meaningful engineering problems.
It detected 23 of the 24 planted defects.
But the overall score doesn't tell the entire story. The more interesting differences appeared when I examined each file separately.
The Dockerfile contained eight planted defects.
However, it missed the missing.dockerignore.
This is worth remembering because the problem wasn't an incorrect line. It was the absence of a file that should have existed.
The Compose configuration contained six planted defects.
privileged: true Enter fullscreen mode Exit fullscreen mode combined with a mounted Docker socket.
A compromised container with access to the Docker daemon may be able to control other containers and potentially compromise the host.
Imagine an attacker achieving remote code execution inside a public-facing API container.
If that container has privileged access and Docker socket access, the consequences can extend beyond the application itself.
CodeRabbit also performed strongly, detecting five out of six defects.
deploy/config.yaml Enter fullscreen mode Exit fullscreen mode It contained eight planted defects, including:
Codzee detected every planted defect in this file.
However, something unexpected was happening with Greptile.
It had detected zero of the eight planted configuration defects.
But it had discovered something the other tools hadn't.
This is where the experiment became particularly interesting.
Greptile detected six planted defects, but it also discovered three real defects that weren't included in my original answer key.
I verified these against the repository and recorded them separately.
booking.api:app Enter fullscreen mode Exit fullscreen mode But the referenced module did not exist in the repository.
The API wrote exports to a container-local path.
Only Nginx mounted the corresponding host directory.
The two services were effectively looking at different locations.
The API could generate files, but Nginx couldn't access them through the expected shared path.
deploy/config.yaml Enter fullscreen mode Exit fullscreen mode was not loaded by any application code.
This was particularly interesting because the file contained several dangerous settings, including a committed payment key, wildcard CORS, and disabled TLS verification.
The other tools analysed the configuration values.
Greptile checked whether the application actually read the file.
This doesn't make those settings safe. They could become active when someone wires the configuration into the application later.
One reviewer examined what the configuration said. Another checked whether the configuration actually affected the application.
Codzee performed consistently across all three files.
Its strongest areas were security configuration, Docker Compose, and cross-file reasoning.
It also explained the potential host-compromise risk associated with privileged containers and Docker socket access.
Its main miss was the missing.dockerignore, along with the broader system-level issues discovered by Greptile.
CodeRabbit stood out for its security classification and risk communication.
It used CWE classifications, reachability, and exploitability to explain findings.
It also detected five of the six Docker Compose defects.
CodeAnt performed best in the deployment configuration category, detecting six of eight defects.
Its weakest category was Docker Compose.
Greptile finished last on the predefined benchmark score.
However, its three additional findings revealed problems that could prevent the deployment from functioning.
This is why I wouldn't judge its performance using the leaderboard alone.
I also included six deliberately correct settings.
logging: destination: stdout Enter fullscreen mode Exit fullscreen mode Writing logs to standard output is a common and appropriate approach for containerized applications.
ENV PYTHONUNBUFFERED = 1 Enter fullscreen mode Exit fullscreen mode This helps Python emit logs without unnecessary buffering.
Neither should automatically be treated as a defect.
All four tools avoided flagging the six deliberately correct settings.
This was the third consecutive round in which the benchmark recorded zero false positives.
Looking at all the findings, I noticed two different review approaches.
Codzee, CodeRabbit, and CodeAnt were generally strongest at answering:
Greptile's unexpected discoveries focused on another question:
These questions are not interchangeable.
A Dockerfile can contain dangerous settings.
A deployment configuration can contain insecure values.
But even if a reviewer identifies all those issues, the application may still fail to start because its entrypoint points to a nonexistent module.
This is the difference between reviewing individual components and understanding the complete system.
Round 16 is part of an ongoing benchmark covering 16 rounds of different engineering scenarios.
Codzee has led or tied in 11 rounds and recorded ten consecutive wins.
However, every round has revealed different strengths and weaknesses.
One recurring issue is the difficulty of detecting things that are missing rather than things that are incorrectly implemented.
In earlier rounds, this included deleted tests and missing transaction handling.
In Round 16, it was the missing.dockerignore.
Sometimes the biggest problem isn't the code you wrote.
After this round, I would add three checks to any AI-assisted infrastructure review workflow.
Check whether application entrypoints exist, configuration files are actually loaded, and shared volumes point to the same locations.
For Docker infrastructure, consider.dockerignore, non-root execution, health checks, resource limits, image pinning, and persistent volumes.
3. Don't depend on one score or one reviewer.
Different tools identified different categories of problems. A strong security review and a strong functional review are not necessarily the same thing.
Codzee won Round 16 with 23 out of 24 planted defects detected.
But Greptile reminded me why I keep running these experiments.
A tool can finish last on a predefined benchmark and still discover something that changes the entire engineering outcome.
The best AI code reviewer shouldn't just identify suspicious lines.
It should understand what those lines mean, how the components interact, and what happens when the application actually runs.
Because finding bugs is important. Understanding the system is even more important.
This is Round 16 of my ongoing AI code review benchmark. Scores reflect one controlled pull request and should not be interpreted as universal performance rankings.
What's your approach to AI code reviews?
Would you trust one tool with your pull requests, or would you combine multiple reviewers with different strengths?
I'd love to hear how other developers are approaching this.