Open Code Review 🤖 Agent Open source
Alibaba's AI code review CLI: deterministic pipeline plus LLM agent, line-level comments
- GitHub stars
- 43k
- Stars this week
- +2.1k
- Forks
- 3.1k
- Licence
- Apache-2.0
- Last push
- 2026-10-01
- Maintainer
- alibaba
npm install -g @alibaba-group/open-code-reviewThird-party subagents & agents run with your permissions. Read the source before installing, and prefer pinned versions.
Works with
About Open Code Review
What it does
Open Code Review (ocr) is an AI code review command-line tool open-sourced by Alibaba, where it began as the company's internal review assistant. It reads a Git diff, groups the changed files into review units and runs an LLM agent over each unit. The result is structured comments tied to exact lines. The design splits the work between fixed code and the model. Ordinary code handles file selection, bundling related files, matching review rules and positioning comments. The agent handles judgement and pulls extra context by reading files and searching the repository. The project says this approach produces fewer false alarms and uses fewer tokens than asking a general-purpose agent to review, though it may find somewhat fewer issues.
What is inside
- Review modes: workspace changes, branch ranges, single commits, resumable sessions and full-file scans with
ocr scan - Rules: custom review rules with path filtering and targeting
- Output: terminal, JSON reports and a browser session viewer for marking comments fixed or ignored
- Delegation mode: OCR selects files and rules, and your own coding agent does the reviewing, so no separate API key is needed
- Integrations: an MCP server for adding external tools, CI recipes for GitHub Actions, GitLab CI, GitFlic CI and Gerrit, and OpenTelemetry tracing
Works with
Plugins are documented for Claude Code (slash commands), Codex, Cursor, Kimi Code and OpenCode. A portable agent skill covers other skills-compatible agents. Any configured LLM provider can run reviews.
How to install
It needs Git 2.41 or newer:
npm install -g @alibaba-group/open-code-review
Then run ocr config provider and ocr config model, followed by ocr review in your project.
Maintenance and safety
The project is Apache-2.0 licensed, maintained by Alibaba and updated often, with an OpenSSF Best Practices badge. Your diffs and any files the agent reads are sent to whichever LLM provider you configure, so choose one your code policies allow. It reads your repository and posts comments. It does not change code.
Who should use it
Teams that want consistent, line-accurate AI review in CI or before opening pull requests, especially on large changesets where general-purpose agents skip files.
Pros
- Precise line-level comments with low token use
- Delegation mode lets your coding agent do the review with no extra API key
- CI recipes for GitHub, GitLab, GitFlic and Gerrit
Cons
- Tuned for precision, so recall is lower than general-purpose agents
- Diffs are sent to the LLM provider you configure
Similar subagents & agents
All AI code review agents →CodeRabbit 🤖 AgentFreemium
AI code reviews on every pull request, in the IDE and from the CLI
🔥 Free reviews forever on public (open-source) repositoriesGreptile 🤖 AgentFreemium
AI code reviewer that understands your whole codebase
🔥 50% off for early-stage startupsBrooks Lint 🤖 AgentOpen source
AI code review graded against twelve classic engineering books, with citations and health scores
Graphite 🤖 AgentFreemium
Stacked pull requests with an AI reviewer built in
🔥 20% off with annual billingQodo 🤖 AgentPaid
AI code review and governance agents for teams
🔥 Free access for qualified open-source projects