OpenCodeReview is an AI code review CLI that started as Alibaba Group's internal review assistant. It reads Git diffs, sends the changed files to a configurable LLM through an agent with tool use, and returns structured review comments anchored to exact lines. The agent can read full files, search the codebase, and inspect other changed files for context. A full-file scan mode reviews whole files or directories that have no meaningful diff, for auditing unfamiliar code.
The design splits the review between deterministic code and the agent. Deterministic code selects which files need review, bundles related files into review units that each run as a subagent with isolated context, matches review rules to each file through a template engine, and runs separate modules that check comment position and content. The agent handles dynamic decisions and context retrieval, using prompts and a toolset tuned on tool-call traces from production review data.
On AACR-Bench, a benchmark of 200 real pull requests from 50 open-source repositories in 10 languages with 1,505 annotated issues, the project reports higher precision and F1 than Claude Code with the same underlying model, at about one ninth of the tokens and with shorter review times. Recall is lower, a trade-off chosen in favor of fewer false alarms.
Reviews run with an LLM that OpenCodeReview manages, or in delegation mode, where OpenCodeReview handles file selection and rule resolution and your coding agent performs the review with its own model.
Features
- Review targets: workspace changes, branch ranges, single commits, and full-file scans, with resumable sessions
- Line-level comments: structured findings mapped to exact file and line positions, exportable as JSON
- File bundling: related files are reviewed together as one unit by a subagent with isolated context, which also runs bundles concurrently
- Review rules: customizable rules with path filtering and targeting, matched to each file's characteristics
- Delegation mode: your coding agent runs the review with its own LLM, so no separate API key is needed
- Coding-agent plugins: Claude Code, Codex, Cursor, Kimi Code, OpenCode, QCA Forward, and any skill-compatible agent
- MCP server support: extend the review agent with external tools
- CI/CD integration: GitHub Actions, GitLab CI, GitFlic CI, and Gerrit
- Session viewer: browse and replay review sessions in a browser and mark comments as fixed or ignored
- Telemetry: OpenTelemetry integration for observability
