Self-hosted GitHub pull-request reviewer for Java and Spring Boot that shows its evidence.
This repository is a public preview containing documentation, screenshots, and one real, independently runnable Java module with its tests. Explore the implementation and evaluate the code quality before purchasing the full application.
Get the full CodeGuard AI source code: Purchase on Gumroad
Want to evaluate before purchasing? Clone the public repository, inspect the Java implementation, run the included tests, and review the screenshots. The complete application source code is distributed separately.
Explore the runnable Java sample
Get the complete CodeGuard AI source code
This repository is designed to help developers evaluate the engineering approach behind CodeGuard AI before purchasing.
| Component | Public Repository | Complete Product |
|---|---|---|
| Product overview and documentation | Yes | Yes |
| Application screenshots | Yes | Yes |
| Runnable Java sample | Yes | Yes |
| Sample unit tests | Yes | Yes |
| Complete Spring Boot application | No | Yes |
| Full AI review engine | No | Yes |
| Complete GitHub integration | No | Yes |
| Full dashboard | No | Yes |
| Team rules and policy engine | No | Yes |
| Complete application source code | No | Yes |
The public repository is a technical preview. It is not a free edition or a complete alternative to the commercial product.
You can inspect the included implementation and run its tests independently before deciding whether to purchase.
Get the complete application source code
CodeGuard AI connects GitHub pull requests to an AI provider of your choice (Groq, OpenAI, Gemini, or local Ollama), reviews code changes, and explains what it verified and what it only inferred.
You run it on your own infrastructure.
Technology stack: Java 21, Spring Boot 3.
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.
Watch CodeGuard AI review a GitHub pull request, identify a test failure, suggest a fix, apply it with developer approval, and run a fresh review to validate the result.
codeguard-ai-demo.mp4
The complete CodeGuard AI application includes:
- GitHub webhook and API integration.
- Multi-provider AI support (Groq, OpenAI, Gemini, and Ollama).
- Evidence labels and configurable merge policies.
- Stale-review protection: each review is tied to the exact commit it analyzed.
- Test-quality analysis (empty tests, trivially true or commented-out assertions, and more).
- Deterministic checks on added lines (committed secrets, disabled TLS verification, SQL built by concatenation, and more).
- Opt-in Docker test execution with explicit statuses:
PASSED,FAILED,ERROR,TIMED_OUT,NO_TESTS_EXECUTED, andNOT_RUN. - Suggested fixes with an explicit Apply Fix step.
- Team rules and dismissal learning.
- Review history.
- Markdown and PDF export.
- Installation guide and testing guide.
- Security and data-flow documentation.
- API documentation and Postman collection.
- Database schema.
Note: These are full-product capabilities. This public repository does not contain the complete application source code.
The full CodeGuard AI application is designed to run on your own infrastructure.
A typical setup involves:
- Installing JDK 21 and Maven.
- Choosing a database (H2 for a quick trial or MySQL for a longer-running setup).
- Creating a GitHub personal access token with the minimum required repository permissions.
- Configuring an AI provider using an API key or a local Ollama model.
- Running the Spring Boot application and opening the dashboard.
- Connecting a repository and providing a pull request number to start a review.
A webhook is optional.
The complete installation instructions are provided with the full application.
CodeGuard runs on your infrastructure.
With Ollama, your code can remain within your own environment. If you choose OpenAI, Gemini, or Groq, the changed files and the context required for the review are sent to the selected provider, subject to that provider's terms and your configuration.
At a high level, CodeGuard AI follows this pull-request review workflow:
flowchart TD
A[GitHub Pull Request] --> B[CodeGuard AI]
B --> C[Repository Context Analysis]
C --> D[Deterministic Checks]
C --> E[AI Analysis]
D --> F[Evidence Classification]
E --> F
F --> G[Configurable Merge Policy]
G --> H[Review Report]
H --> I[GitHub Review]
H --> J[Review Dashboard]
B -. Optional .-> K[Docker Test Validation]
K --> H
The diagram is a high-level conceptual overview of the review workflow, not a complete internal implementation diagram.
If you are evaluating CodeGuard AI as a developer or engineering team, these are useful starting points:
| 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 public sample's behavior is tested |
| Evidence classification | How the product distinguishes verified and inferred findings |
| Product screenshots | How the application presents review results |
| Documentation | Product scope, deployment model and limitations |
The runnable Java sample is particularly useful if you want to inspect the implementation rather than relying only on screenshots or marketing descriptions.
The full application produces review findings and test-validation results as part of its review workflow.
When evaluating a review, pay attention to:
- The finding and its evidence classification.
- Whether the relevant code was located.
- The severity and confidence assigned.
- The configured merge-policy decision.
- The actual test execution status.
- What CodeGuard did not verify.
A finding marked as AI inference is not the same as a verified defect. Similarly, a test result should only be considered successful when the execution evidence supports that conclusion.
The public repository does not claim that the sample test results establish the real-world accuracy of the complete application.
CodeGuard-AI/
│
├── README.md
│
├── docs/
│ └── images/
│ ├── 01-review-overview.png
│ ├── 02-verified-test-failure.png
│ ├── 03-suggested-apply-fix.png
│ ├── 04-after-apply-fix.png
│ └── 05-test-quality-detection.png
│
└── sample/
└── test-outcome/
├── pom.xml
└── src/
├── main/
│ └── java/
│ └── com/
│ └── codeguard/
│ ├── analysis/
│ │ ├── TestOutcome.java
│ │ ├── TestReportParser.java
│ │ ├── Code.java
│ │ └── Lang.java
│ │
│ └── dto/
│ ├── TestExecutionEvidence.java
│ └── PullRequestFile.java
│
└── test/
└── java/
└── com/
└── codeguard/
└── analysis/
└── TestOutcomeTest.java
This repository includes a real sample module from CodeGuard AI.
The Test Outcome Engine demonstrates how CodeGuard classifies test execution results without incorrectly reporting an unverified test run as successful.
- Honest test classification: A test run is marked
PASSEDonly when the command exits successfully, readable results confirm execution, at least one test ran, and no failures or errors occurred. - Zero-test detection: Distinguishes a successful build with zero executed tests from a genuine passing test run.
- Failure detection: Identifies failed tests and execution errors.
- Timeout handling: Reports timed-out test execution separately.
- Changed test mapping: Matches changed JVM test files against executed JUnit suites.
- Console output parsing: Demonstrates parsing of JUnit-related, Python unittest, and pytest console output.
- Failure comparison: Identifies tests fixed and newly broken after a patch.
Requirements:
- JDK 21
- Maven
Clone the repository:
git clone https://github.com/ISabiTech16/CodeGuard-AI.gitNavigate to the sample module:
cd CodeGuard-AI/sample/test-outcomeRun the tests:
mvn clean testThe sample was successfully compiled and tested using Java 21 and Maven.
| Test result | Verified output |
|---|---|
| Tests executed | 10 |
| Failures | 0 |
| Errors | 0 |
| Skipped | 0 |
| Build status | BUILD SUCCESS |
The test results demonstrate the behavior of the included sample module. They are not a claim about the full application's overall test coverage.
- AI findings and suggested fixes are advisory. Always review proposed changes before merging.
- Test-quality and impact analysis use static and name-based techniques and may miss indirect coverage.
- Docker test execution is opt-in. With network access disabled (the default), dependencies may be unavailable, resulting in an
ERRORrather than a passing result. - The full application has no built-in authentication. Run it behind a VPN, reverse proxy, or private network.
- CodeGuard is intended for self-hosted, single-team, private use, not as a public multi-tenant service.
- The public repository contains only the documented preview and runnable sample, not the complete application.
CodeGuard AI is designed to run on infrastructure controlled by the user.
Before deploying the full application, consider:
- Restricting dashboard access through a VPN, reverse proxy or private network.
- Using GitHub tokens with the minimum permissions required.
- Keeping webhook secrets and AI-provider credentials out of source control.
- Understanding which changed files and repository context are sent to an external AI provider.
- Using Ollama when local model processing is preferred.
- Reviewing Docker execution settings before testing untrusted pull-request code.
- Understanding that enabling network access inside a test container is a security decision.
The full application has no built-in authentication. Deployment security must be configured by the operator.
No. This repository contains selected public preview materials and a runnable Java sample. The complete application source code is distributed separately through the commercial product.
Yes. You can clone the repository and run the included Test Outcome Engine tests using JDK 21 and Maven.
No. CodeGuard AI is self-hosted software that you run on your own infrastructure.
Yes. The full product supports Ollama, subject to your local hardware and model configuration.
Not if you configure a supported local Ollama model. External AI providers may charge their own API fees.
No. AI findings and suggested fixes are advisory. Developers should inspect evidence and validate changes before merging.
No. It should be deployed behind a VPN, reverse proxy or private network.
Yes. The public repository includes a real Java sample module with its source code and tests, along with documentation and screenshots.
You can purchase the complete application through Gumroad:
- Technology: Java 21 and Spring Boot 3.
- Public repository: Documentation, screenshots, and the Test Outcome Engine sample.
- Sample test status: 10 tests passed, 0 failures, 0 errors.
- Full application: Available through the purchase link above.
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.
You can inspect the public Java implementation, run its tests, and review the product screenshots before purchasing.
If the self-hosted approach, evidence-based review workflow and customization capabilities match your requirements, get the complete application source code.




