Your AI reviewer says "looks good." Your tests say otherwise. CodeGuard AI believes the tests.
A self-hosted GitHub pull-request reviewer for Java and Spring Boot. It runs your project's tests on the PR, compares them with the base branch, and when it cannot prove something it says UNVERIFIED instead of showing a green tick.
Get the full source on Gumroad · Personal $19 · Developer $39 · Team (up to 8 developers) $99 · 14-day refund · by IsabiTech
This repository is the public preview: documentation, screenshots and one real, runnable Java module with its tests. The complete application (Spring Boot source, Docker Compose, the 15-PR test lab and the docs) is the paid package. It is not a free edition.
- Read real reviews: CodeGuard's own comments on public pull requests, nothing to install: codeguard-demo-prs.
- Watch the demo: a review finds a failing test, Apply Fix commits the change after developer approval, and a fresh review passes. ▶ Watch the CodeGuard AI demo
- Look at the screenshots below: a real review, a verified test failure, a suggested fix and the review after it.
- Run the Java sample yourself (JDK 21 + Maven, two commands, see Run the sample tests).
These are results from our test repository, with deliberately planted problems. They show how the rules behave, not real-world accuracy.
| Pull request | What CodeGuard reported |
|---|---|
| A test that fails about 1 run in 3, added by the PR | "Intermittent failure introduced by this PR", with run counts for the PR and the base branch |
| The same test already flaky on the base branch | "Already flaky", not blamed on the PR |
| A test that always fails | Do Not Merge (failed in 3 of 3 runs) |
| A test run that executes zero tests | UNVERIFIED, never "Safe to Merge", even when the AI said merge |
| A PR that deletes most of the tests | UNVERIFIED: "only 3 ran, against 7" |
| A "fix" that only emptied the test | Rejected by the sandbox |
| A PR whose tests all pass but never check a boundary (optional mutation check) | > changed to >=, tests still pass: reported as "tests did not detect a deliberate change" (warns, adds about 2 minutes) |
A PR that adds a .env file |
Not sent to the AI; the local secret check still flags it |
| SQL injection by string concatenation | SEC-SQLI, High, verified: blocks the merge |
| The same feature with a PreparedStatement | No finding (false-alarm check) |
The full package includes the 15 prepared pull requests, the expected result for each, and a script that pushes them to a test repository, so you can check these claims before you rely on the tool.
CodeGuard runs on your machine or server. There is no IsabiTech server in the path, and the source contains no telemetry.
- GitHub (
api.github.com): reads the PR's files and posts the review comment, with your own token. - Your AI provider, which you choose: Ollama on your own machine (nothing leaves your network), or OpenAI (
api.openai.com), Gemini (generativelanguage.googleapis.com) or Groq (api.groq.com). With a hosted provider, the changed files' diffs and a short repository context go to that provider under your own API key and its terms. - GitHub sign-in (
github.com), only if you turn on GitHub login. - Never sent to the AI: files such as
.env,*.pem,*.key,*.p12,*.jksandcredentials.json, plus any paths you list (for exampleconfig/). A secret in the PR title or description is still sent.
Tests run in a Docker container on your own machine. The Compose sandbox gives the CodeGuard container access to your Docker daemon, so use it on a machine you dedicate to CodeGuard and on repositories you trust. The shipped configuration lets test containers reach the network so projects can download dependencies; turn that off for forks and outside contributors. Details are in the security guide that ships with the package.
- Every finding says how it was found. An unverified AI claim cannot score above 60/100 (see Evidence labels).
- The merge verdict comes from a policy you set, not from the model's confidence. A finding blocks only if its severity, confidence, verification status and category pass your thresholds. Advisory mode shows what would have been blocked before you let it block anything.
- Real test evidence. PASSED needs exit code 0, at least one test counted and zero failures. "Exit 0 with no tests" is never a pass, and a pass that ran under half the tests of the last trusted run is UNVERIFIED.
- Flaky tests judged by evidence. When a PR fails a test the base branch did not, CodeGuard reruns both sides and compares failure counts.
- Suggestions that get run, not trusted. Apply Fix records applied, built and tested separately, and rejects a patch that breaks the build or the tests.
- Every review ends with "What CodeGuard did not verify".
| Component | Public repository | Complete product |
|---|---|---|
| Product overview and documentation | Yes | Yes |
| Application screenshots | Yes | Yes |
| Runnable Java sample and its unit tests | Yes | Yes |
| Complete Spring Boot application | No | Yes |
| Full AI review engine | No | Yes |
| Complete GitHub integration | No | Yes |
| Full dashboard, sign-in and roles | No | Yes |
| Team rules and policy engine | No | Yes |
| 15-PR test lab, benchmark suite and docs | No | Yes |
| Complete application source code | No | Yes |
CodeGuard AI connects GitHub pull requests to an AI provider of your choice (Groq, OpenAI, Gemini or local Ollama), reviews code changes, runs your tests in a sandbox, and explains what it verified and what it only inferred. You run it on your own infrastructure. Technology: Java 21, Spring Boot 3.
How a review works:
- A PR number is entered in the dashboard, or a webhook delivers it.
- CodeGuard fetches the PR's files and runs deterministic checks (test quality, security flow, secrets, impact analysis).
- The AI reviews the changes; every quoted snippet is looked up in the file at the reviewed commit.
- Your project's tests run in a Docker sandbox, and failures are compared with the base branch.
- Your merge policy decides the verdict, and the review lists what was not verified.
- Optionally the review is posted to the PR as a comment, tied to the exact commit it analysed.
Every finding carries one of four evidence labels:
| Label | Meaning |
|---|---|
| Verified by rule | A deterministic check observed the issue directly (for example, a test method with zero assertions). |
| Rule-based heuristic | A deterministic pattern or name-based scan detected a potential issue that should be confirmed by a human. |
| AI finding, code located | The AI reported an issue, and CodeGuard located the quoted snippet in the file at the reviewed commit. |
| AI inference, unverified | The AI reported an issue, but the quoted snippet could not be located in the source. |
Confidence is capped by evidence: an unverified AI claim cannot score above 60/100. The merge verdict comes from a configurable policy, not from the model's confidence score.
The following screenshots are from the running CodeGuard AI application.
- GitHub webhook and API integration, and multi-provider AI support (Groq, OpenAI, Gemini, Ollama).
- Evidence labels and configurable merge policies, with advisory mode.
- Stale-review protection: each review is tied to the exact commit it analysed.
- Test-quality analysis: empty tests, trivially true or commented-out assertions, tests that assert what they stubbed, unseeded random values in assertions.
- Security flow analysis (SQL injection, command injection, path traversal, SSRF, XXE) and deterministic checks on added lines (committed secrets, disabled TLS verification, weak hashes and more).
- Docker test execution with explicit statuses: PASSED, FAILED, ERROR, TIMED_OUT, NO_TESTS_EXECUTED and NOT_RUN, base-branch comparison and flaky-test reruns.
- Suggested fixes with an explicit Apply Fix step.
- Sign-in (email and password, optional GitHub OAuth) with four roles: Owner, Admin, Developer, Viewer.
- Team rules and dismissal learning, review history, Markdown and PDF export.
- A 15-PR test lab with expected results, and a frozen benchmark suite (73 cases) with a regression gate.
- Installation guide, testing guide, security and data-flow documentation, API documentation with a Postman collection, database schema.
This repository includes a real sample module from CodeGuard AI: the Test Outcome Engine. It classifies test execution results without reporting an unverified run as successful.
What it demonstrates:
- Honest test classification: a run is PASSED only when the command exits successfully, readable results confirm execution, at least one test ran, and no failures or errors occurred.
- Zero-test detection: a successful build with zero executed tests is not a passing test run.
- Failure and timeout handling: failed tests, execution errors and timeouts are reported separately.
- Changed test mapping: changed JVM test files are matched against executed JUnit suites.
- Console output parsing: JUnit-related, Python unittest and pytest console output.
- Failure comparison: tests fixed and newly broken after a patch.
Requirements: JDK 21 and Maven.
git clone https://github.com/ISabiTech16/CodeGuard-AI.git
cd CodeGuard-AI/sample/test-outcome
mvn clean test
Verified output on Java 21 and Maven:
| Tests executed | Failures | Errors | Skipped | Build |
|---|---|---|---|---|
| 10 | 0 | 0 | 0 | BUILD SUCCESS |
These results describe the included sample module. They are not a claim about the full application's test coverage.
| Area | What you can evaluate |
|---|---|
| Test outcome classification | How test execution results are classified |
| Test-report parsing | How test reports are interpreted |
| Unit tests | How the sample's behaviour is tested |
| Evidence classification | How verified and inferred findings are told apart |
| Screenshots | How the application presents review results |
CodeGuard-AI/
├── README.md
├── docs/images/ screenshots
└── sample/test-outcome/ runnable Java sample (pom.xml, src/main, src/test)
└── src/main/java/com/codeguard/
├── analysis/ TestOutcome, TestReportParser, Code, Lang
└── dto/ TestExecutionEvidence, PullRequestFile
- AI findings and suggested fixes are advisory. Review proposed changes before merging.
- It is a source-code purchase: you configure, run and maintain it. Run it behind HTTPS (reverse proxy or VPN), as you would any internal tool.
- Analysis is static and name-based, so it can miss indirect coverage and callers the change never touched. The benchmark uses planted cases: it shows the rules behave as designed, not real-world accuracy.
- Test execution needs Docker. Without it, reviews still work and the test verdict reads "Verify Before Merge". With network access inside the test container disabled, dependencies may be unavailable and the run ends as ERROR, never as a pass.
- Flaky-test reruns need the sandbox and make a review take about 4 to 6 minutes instead of about 1. With 3 runs per side, a test that fails only rarely on the base branch can be mistaken for one the PR made flaky; that case warns and does not block.
- Built for self-hosted, single-team use, not as a public multi-tenant service.
Is CodeGuard AI open source? No. This repository contains selected preview material and a runnable Java sample. The complete application source code is distributed through the commercial product.
Is it hosted? No. You run it yourself.
Can I use local AI models? Yes, through Ollama, depending on your hardware. External providers may charge their own API fees.
Does it have sign-in and roles? Yes: email and password, optional GitHub OAuth, and four roles. Run it behind HTTPS.
Can I try it without blocking my team's merges? Yes. Advisory mode reports what would have been blocked and blocks nothing.
Does it guarantee bug-free code? No. Findings and fixes are advisory. Inspect the evidence and validate changes before merging.
Can I inspect the implementation before buying? Yes. The sample module's source and tests are in this repository.
Where can I buy it? On Gumroad.
The sample module and documentation in this repository are provided for review only. They may not be copied, redistributed or used commercially without permission. The complete CodeGuard AI product is licensed under the terms provided with your purchase on Gumroad.
Ready to evaluate? Run the sample, read the lab results above, then get the complete source code.




