Purpose
ReviewCerberus is used to perform AI-driven code review on Git branch diffs and generate structured review reports. It can automatically analyze logic, security, performance, and code quality issues in code changes, making it suitable as an automated review method in the merge request (PR) process.
Main Capabilities
- GitHub Action: Automated PR review, providing inline comments and summary comments.
- Comprehensive Review: Detailed analysis of logic and correctness, security, performance, code quality, side effects, tests, documentation, and other aspects.
- Structured Output: Each review includes a change overview, risk areas, an issue summary table (marked by severity: 🔴 CRITICAL, 🟠 HIGH, 🟡 MEDIUM, 🟢 LOW), as well as a description, location, and fix suggestion for each issue.
- Multi-Provider Support: AWS Bedrock, Anthropic API, Ollama, or Moonshot.
- Intelligent Analysis: Provides complete context in advance and improves token efficiency through prompt caching.
- Git Integration: Works with any repository and supports commit hash.
- Verification Mode (Experimental): Enables Chain-of-Verification through --verify, generating falsification questions for each issue, answering them with code context, and providing a confidence score from 1-10 with rationale to reduce false positives.
- SAST Integration (Experimental): Enabled through --sast, it runs an OpenGrep (Semgrep branch) pre-scan before the AI review, scanning only new findings introduced by the current branch and providing the results as supplementary context for the AI to independently verify, combining static analysis precision with AI contextual understanding.
Usage
- Docker Run (Recommended): After running, the review results will be saved to the
review.mdfile in the current directory. - GitHub Action: Add to
.github/workflows/review.yml, and the action will directly publish review comments on the PR. - Local Installation: Local development requires Poetry (not required for non-Docker use).
- Configuration: All configuration is done through environment variables (the
.envfile). - Custom Prompts: Can be customized in
src/agent/prompts/, includingfull_review.md(main review prompt) andcontext_summary.md(context compression for large PRs). - Integration Testing: Uses act with simulated Ollama and GitHub API servers for end-to-end testing, requiring Docker and act to be installed in advance.
Applicable Scenarios
- Automated PR review processes, obtaining summaries and inline comments.
- Use as a Quality Gate.
- Perform structured code review of branch diffs locally or in CI.
Limitations and Requirements
- Requires one of the following credentials: AWS Bedrock access with Claude models, or an Anthropic API key.
- Some features are marked as experimental: Verification Mode, SAST Integration.
- The diff in the code context is truncated to 10,000 characters per file.
- Local development requires Poetry.
- Information such as pricing, cost, platform support, and effectiveness is not currently provided in the materials.