# AI Code Review & PR Review Tools (2026)

> Compare AI code review tools, static code analysis, and PR review agents for AI-written code: GitHub Copilot, Claude Code, Cursor, PR-Agent, and Critique.sh.

By Founder2 Editorial, The Founder2 journal. Published 2026-11-19, updated 2026-11-23. Topic: Developer tools. Canonical: https://tryfounder2.com/blog/ai-code-review-tools-agent-written-code

## Key takeaways

- Writing code is no longer the slow step. Deciding whether a change is sound is, and a coding agent that grades its own work has told you what it believes, not what is true.
- Check agent-written code in four layers: tests and builds, static analysis and secret scanning, an independent AI review, and a human decision where code leaves your machine.
- GitHub Copilot, Claude Code, Cursor, PR-Agent and Critique.sh all review code, with different homes: inside a platform, on a pull request, or on your working tree before you commit.
- Critique.sh and Born2-9B come from Leemer Group, which publishes this journal. Born2-9B's benchmark numbers are the lab's own and preliminary, and they are not a controlled comparison.
- Founder2 does not review code itself. It holds a pull request behind an approval card that shows the diff and test summary, and the write is made by the control plane, not by the agent's machine.

The way to check what a coding agent wrote is to put several independent checks between the agent and your main branch: tests and builds, static analysis and secret scanning, a review by a different model or tool in a fresh context, and a person's decision at the point where code leaves your machine. No single layer is enough, and the agent that wrote the change should not be the only one to judge it.

Agents have made writing code the fast part. A change that once took an afternoon arrives in minutes, and the bottleneck moves to the question of whether it is sound. This guide covers the layers, the AI reviewers you can use, and how Founder2 gates a pull request. Two of the tools covered, Critique.sh and Born2-9B, come from Leemer Group, which also publishes this journal. We mark them as ours, and we state where their claims are the lab's own.

## The short answer

Run the cheap checks first. Tests, type checks and a build catch most breakage and cost almost nothing. Add static analysis and secret scanning, because agents sometimes paste a credential into a file and tests will never notice.

Then add an independent reviewer, ideally a different model from the one that wrote the change, with a fresh context rather than the author's own summary. Finally, keep a human decision where the change leaves your machine: the push, the pull request, the merge. You can [run our free AI PR review checklist](/tools/pr-review) on any public GitHub pull request or [compare Founder2 against Devin](/vs/devin) before picking an approval workflow. Review tools reduce the reading you have to do. They do not remove the decision.

## Why agent-written code needs a second reader

An agent's explanation of its own change is a summary written by the thing being judged. It is usually sincere and often right, but it describes intent. Review needs evidence of behaviour.

Three failure patterns recur in agent-written changes:

- **Plausible but wrong.** The change reads well, passes the tests it ran and misses a case no one tested, such as a retry that charges a customer twice.
- **Tests that bend to fit.** An agent under pressure to make a failing test pass can edit the test instead of fixing the code.
- **Quiet scope creep.** A small request becomes a wide diff that touches files you did not expect, which is harder to review than a focused one.

None of these means agents are untrustworthy. They mean the volume of code has outrun the volume of careful reading, and the answer is a process rather than a better prompt.

## The four layers of checking

**Four layers, what each catches and what it lets through.**

|  | Catches | Lets through |
| --- | --- | --- |
| Tests, types, build | Broken behaviour you have encoded, type errors, failing builds. | Behaviour nobody wrote a test for, and tests the agent edited to pass. |
| Static analysis, secret scanning | Known risky patterns, leaked keys, vulnerable dependencies. | Logic errors that are valid code, and anything outside the rules. |
| Independent AI review | Intent mismatches, missed edge cases, a second reader with fresh context. | Anything the reviewer shares a blind spot on, and confident false alarms. |
| Human approval | Whether the change should exist, and whether it is safe to publish. | Fatigue. A person approving a huge diff without reading it is a rubber stamp. |

_No layer is enough alone. The layers are cheap at the top and expensive at the bottom, so run them in this order._

Think of the layers as a funnel. Each is cheaper to run and less thorough than the one below it, so run them in order and let each remove what it can before a person looks.

## Tests, types and builds

This layer is yours, not the agent's. Keep a test command that runs the project's real tests and fails loudly. Give the agent that command so it can run it, but review any change to the tests themselves as carefully as a change to the code, because that is where an agent can quietly weaken the check.

Treat a green run as necessary rather than sufficient. It proves the cases you wrote still pass.

## Static analysis and secret scanning

Open-source tools do this well and cost no licence fee. Semgrep (LGPL-2.1) is lightweight static analysis for many languages. Gitleaks (MIT) finds secrets. Trivy (Apache-2.0) looks for vulnerabilities, misconfigurations, secrets and software bills of materials. Run them in CI and, for secrets, before the commit as well.

They are deterministic where they can be and independent of the agent, which is their value. See [the best open-source AI coding tools in 2026](/blog/best-open-source-ai-coding-tools-2026) for how these sit beside the open-source agents.

## AI reviewers compared

**AI reviewers you can use on agent-written code, by where they live.**

|  | Where it works | What the vendor says | Source |
| --- | --- | --- | --- |
| Critique CLI | Your working tree, before you commit | Reconstructs the change, attaches a reproduction and limits, returns exit codes | MIT repository, hosted service |
| GitHub Copilot | Local changes and pull requests on GitHub | Finds code quality and security issues; code review is in the Pro plan | Commercial |
| Claude Code | Pull requests, for Team and Enterprise | Code Review generally available since 15 Oct 2026 | Commercial |
| Cursor | Pull requests in GitHub | Lists Review as a product and says it reviews PRs in GitHub | Commercial |
| PR-Agent | Pull requests, self-run | The open-source PR reviewer | MIT |

_Vendor statements from their own pages on 19 November 2026. We did not benchmark review quality. Confirm current plans and data handling on each vendor's page._

AI reviewers read the change the way a colleague would, and they can flag intent mismatches that rules cannot express. They differ mainly in where they live.

**GitHub Copilot** reviews local changes for code quality and security issues and reviews pull requests alongside team feedback, and GitHub lists code review in its Pro plan at $10 per user per month. **Claude Code** has a Code Review feature that Anthropic says became generally available for Team and Enterprise on 15 October 2026. **Cursor** lists Review as a product and says it reviews PRs in GitHub. **PR-Agent** is the open-source option, MIT-licensed, which you run yourself.

**Critique.sh**, covered next, works on your local working tree before a commit exists. That is a different position in the workflow from the pull-request reviewers: it checks before the change is ever pushed.

We did not benchmark these tools against each other. Review quality depends on the codebase, the model and the settings, and no published ranking we are aware of is controlled. Try two on a real change from your own repository and compare what each caught and what it falsely flagged.

## Critique.sh and independent review

Critique.sh is a Leemer Group product. Its premise is that an agent should not get to declare its own work correct, and it applies that to the agent you already use.

How it works, from its site and repository: the Critique CLI reviews staged, unstaged and deleted changes and safe untracked files in disposable workspaces. A quick command is a tool-free, read-only inspection of the captured diff that normally finishes in under 30 seconds. A fuller finish command reconstructs the change in a separate workspace, runs useful checks, and returns an outcome, the evidence behind it, the limits of that evidence, and a repair package where warranted, with exit codes so a calling agent or script can act. There are separate modes for security-sensitive changes and for edge cases, retries and interruption.

On cost and data flow, the repository says local stages are included, and that explicitly selected cloud stages cost 15 cents plus managed model usage. The site says cloud runs upload a protected snapshot of the full working tree, uncommitted changes included, so if you work under European data rules, ask where cloud stages are processed and decide whether the local mode is enough.

Its site lists compatibility with agents including Cursor, Claude Code, Codex, opencode, Cline and Copilot, and a single command connects them. The CLI is on npm as @critiquedotsh/cli at version 0.1.1, and the site labels it early access.

Where it stops: it is a checker, not a replacement for tests, and it does not decide whether to merge. It is young, its repository is small, and we have a stake in it. Judge it on your own diffs.

## Born2-9B, a small model for review

- **9B** dense parameters (Taught by three larger models, per Leemer Labs.)
- **$0.20** per million output tokens (Input $0.08, cached $0.01. API preview, served from Europe.)
- **62.1%** SWE-bench Verified (Preliminary, reported by Leemer Labs.)

**SWE-bench Pro scores as reported by Leemer Labs for Born2-9B and three open models.**

| model | SWE-bench Pro, percent |
| --- | --- |
| Born2-9B | 45.5% |
| Granite 4.2 30B | 33.3% |
| Qwen3.5-9B | 32% |
| Granite 4.2 8B | 19.1% |

_Source: Leemer Labs' announcement. External scores are developer-reported and use different harnesses, so this is not a controlled ranking. Run your own test on your own code._

Leemer Labs, the research arm of Leemer Group, built Born2-9B as a code-review specialist. It is a nine-billion-parameter dense model that Leemer Labs says was taught by three much larger models, MiMo-V2.6, GLM-5.3 and Qwen3.8-2.4T. Each acted as a teacher and also cross-examined the others, and only findings that survived that challenge became training signal.

It is in API preview, served from Europe, at $0.08 per million input tokens, $0.01 for cached input and $0.20 per million output tokens. Leemer Labs says open weights, a model card and its evaluation methods will follow the preview. As of 19 November 2026 the weights are not published.

The benchmark numbers are the lab's own. Leemer Labs reports preliminary results of 62.1% on SWE-bench Verified, 45.5% on SWE-bench Pro and 37.9% on Terminal-Bench 2.1, and states that the external scores it compares against are developer-reported and use different harnesses, so the comparison is not a controlled ranking. Benchmarks also measure fixing issues, not necessarily the quality of a code review. Treat them as a reason to test it, not as proof.

## Human approval where code leaves your machine

The last layer is a person, and the most useful place for it is the boundary: the push, the pull request, the merge. Everything before that point is reversible and local. After it, the change touches a shared repository and other people.

A good approval step shows the exact diff, names the destination and base, and does not proceed on a stale view. Our guide to [AI agent approvals](/blog/ai-agent-approvals) goes through what you should see before an agent acts. Fatigue is the failure mode: an approval you click without reading is a rubber stamp, so keep diffs small and let the earlier layers filter out what they can.

## How Founder2 handles a coding job

> **Who writes to GitHub** The machine that runs the coding agent never holds your GitHub token. When you approve a pull request, Founder2's control plane creates the branch, commit and pull request itself, and it fails closed if the base branch has moved since the agent started.

Founder2 does not review code itself, and it is not integrated with Critique.sh. What it provides is the approval boundary around a coding job. This is how it works on the Plus and Pro plans, from our own implementation notes.

1. **Attach a repository.** You attach a GitHub repository already connected to the workspace. Founder2 records the exact commit and gives the workspace machine a short-lived, single-use download link. The machine never holds your GitHub token.
2. **Run the job in isolation.** The coding agent works in its own working copy for that job, so a later job never sees an earlier job's uncommitted changes. Its shell is limited: pushes, remotes, the GitHub CLI, network tools, sudo and Docker are denied.
3. **Capture the evidence.** The job stores a unified diff, bounded to 200 KB, and a summary of the tests it ran.
4. **Review on a card.** The Agent page shows the diff and the test summary and offers to propose a pull request.
5. **Approve.** Approval carries the diff, its hash, the base commit, the branch name, the title and the body. Founder2's control plane, not the machine, creates the branch, commit and pull request. It fails closed if the base branch no longer points where it did when the job started, and a network failure after the request has left is recorded as an unknown outcome instead of being retried.

Founder2 can also hand a job to an external agent, including Cursor, Codex, Devin, GitHub Copilot or Jules, using your own credentials. Those jobs run on the vendor's side, not on the workspace machine.

Where it stops, and we would rather say so: the coding path is new, and our own notes say end-to-end validation against the hosted machine provider and the pull-request approval is still outstanding. The machine is a convenience for running the agent and not a hardened boundary against a hostile one, so keep production secrets out of any repository you attach. Founder2 will not tell you whether the diff is good. That is what the layers above, and you, are for.

## A pre-merge checklist for agent-written code

Run this before you approve a pull request that an agent wrote, or score your PR blast radius with the free [AI Code Review & PR Approval Checklist](/tools/pr-review).

- **Is the diff small and on topic?** If it touches files you did not expect, ask why before anything else.
- **Did the tests change?** Read any edit to a test as carefully as the code it covers.
- **Do the real tests pass?** Run the project's own test command yourself, not only the agent's summary of it.
- **Did a secret leak?** Run Gitleaks or an equivalent on the diff.
- **Did the dependencies change?** New packages deserve a look at what they are and who maintains them.
- **Did an independent reviewer read it?** A different model or tool, with fresh context.
- **Do you understand the change?** If you cannot explain what it does, do not approve it.
- **Is the destination right?** Check the repository, the base branch and the branch name.
- **Is it reversible?** Prefer changes you can revert with one pull request.

## What review cannot do

> Producing a change and establishing that it is sound are different jobs.
>
> — Repath Khan, Leemer Group, in Five products, one set of habits

Review cannot tell you that you are building the right thing. It cannot find a missing requirement nobody wrote down, and it cannot protect you from a decision you made badly in the first place. An AI reviewer can also be confidently wrong, flagging a correct line or passing a subtle bug, so its output is input to your judgement and not a verdict.

It cannot make a huge diff safe either. The best review practice remains small changes, a clear description of intent, tests that mean something, and a person who reads what they approve.

## A short glossary

**Code review.** Examining a change for bugs, security problems and design drift before it is merged.

**Independent review.** A check done by a different model or tool, with fresh context, rather than by the agent that wrote the change.

**Static analysis.** Examining code without running it, to find bugs and risky patterns.

**Secret scanning.** Searching code and history for credentials such as API keys.

**Working tree.** The files in your repository as they are on disk, including changes you have not committed.

**Harness.** The program around a model that gives it tools, loops and permissions.

**Fail closed.** To refuse to proceed when a condition cannot be confirmed, rather than proceeding on a guess.

**SWE-bench.** A family of benchmarks that test whether a model can resolve real software issues in existing repositories.

## Questions people ask

### What is AI code review?

AI code review uses a model or code review agent to read a code change and flag bugs, security problems, missed edge cases and mismatches with the stated intent, much as a colleague would. It supplements deterministic code analysis, tests and human PR review. It does not replace them.

### What is a code review agent and how does it differ from static code analysis?

Static source code review tools like Semgrep, Gitleaks and Trivy run deterministic rules to catch leaked secrets, known vulnerabilities and syntax anti-patterns. A code review agent uses an LLM in a fresh context to check semantic intent, missing edge cases and cross-file logic bugs that rule-based analysis misses.

### What are the best PR review tools for AI-generated code?

The right PR review tool depends on where you inspect diffs. GitHub Copilot, Claude Code and Cursor review pull requests inside their own platforms, PR-Agent is an MIT-licensed open-source PR reviewer, and Critique.sh checks your local working tree before a commit. Pair any of them with deterministic tests and an explicit [human approval gate](/agent#rules).

### Can an AI agent review its own code?

It can, but the result is weaker than an independent review. An agent's account of its own change describes what it intended. A different model or tool reading the change in a fresh context is more likely to catch what the author missed.

### Is AI code review enough on its own?

No. It can miss bugs and flag correct code, so it works best as one layer alongside tests, static analysis, secret scanning and a human decision at the point where code is merged or published.

### What are the best AI code review tools?

It depends on where you want the review. GitHub Copilot, Claude Code and Cursor review pull requests inside their own products, PR-Agent is an open-source pull request reviewer, and Critique.sh reviews your local working tree before you commit. We did not benchmark them, so test two on a real change before you choose.

### Is there an open-source AI code reviewer?

Yes. PR-Agent is an MIT-licensed, open-source pull request reviewer. Critique's repository on GitHub is also MIT-licensed, though Critique is a hosted service as well. Semgrep, Gitleaks and Trivy are open-source checkers that are not AI reviewers but belong in the same pipeline.

### What is Critique.sh?

Critique.sh is a Leemer Group product: an independent review CLI that checks a code change on your machine and returns an outcome, evidence and limits, plus a separate agentic coding harness called Critique Code. The CLI is early access at version 0.1.1. Local stages are included, and selected cloud stages cost 15 cents plus model usage, according to its repository.

### What is Born2-9B?

Born2-9B is a nine-billion-parameter code-review model from Leemer Labs, in API preview and served from Europe at $0.08 per million input tokens and $0.20 per million output tokens. Leemer Labs says open weights will follow, but they are not published yet, and its benchmark numbers are preliminary.

### How does Founder2 handle code an agent writes?

On Plus and Pro, a coding job runs in an isolated working copy on the workspace machine and returns a diff and a test summary on a review card. A pull request is only created after you approve it, and Founder2's control plane, not the machine, makes the write. It does not review the code for you.

### Does Founder2 use Critique.sh?

No, there is no integration today. Both are made by Leemer Group, but Founder2 gates the pull request and Critique reviews the change, and you can run Critique on the working tree yourself.

### How do I stop an AI agent leaking secrets into code?

Keep secrets out of the repository and the agent's environment where you can, scan diffs with a tool such as Gitleaks before they are committed and in CI, and review any change that touches configuration files. An agent cannot leak what it never received.

## Sources

Checked 2026-11-19.

- [Critique.sh](https://www.critique.sh)
- [Critique repository on GitHub](https://github.com/repath500/critique)
- [Leemer Group: Critique.sh](https://leemergroup.com/companies/critique)
- [Leemer Labs: Born2-9B announcement](https://leemergroup.com/journal/born2-9b-review-specialist)
- [GitHub Copilot: features and plans](https://github.com/features/copilot)
- [Claude Code (Anthropic)](https://www.anthropic.com/claude-code)
- [Cursor](https://cursor.com)
- [PR-Agent on GitHub](https://github.com/The-PR-Agent/pr-agent)
- [Semgrep on GitHub](https://github.com/semgrep/semgrep)
- [Gitleaks on GitHub](https://github.com/gitleaks/gitleaks)
- [Trivy on GitHub](https://github.com/aquasecurity/trivy)
- [Five products, one set of habits (Leemer Group)](https://tryfounder2.com/blog/five-products-one-set-of-habits)
- [The 10 best AI dev tools in 2026, by the job they do](https://tryfounder2.com/blog/best-ai-dev-tools-2026)
- [Best open-source AI coding tools in 2026](https://tryfounder2.com/blog/best-open-source-ai-coding-tools-2026)
- [AI agent approvals: what you should see before an agent acts](https://tryfounder2.com/blog/ai-agent-approvals)
- [Free AI Code Review & PR Approval Checklist tool](https://tryfounder2.com/tools/pr-review)
