Jorge Turbica / blog · Blog ← All articles ES · Leer en español
Technologies

Repo of the day: Open Code Review, Alibaba's AI code reviewer, now open source

A Go CLI that pairs deterministic rules with an LLM agent to comment on every line of your diff. 56,650 stars and 223,808 downloads in a week.

Six releases in eight days and 223,808 npm downloads between November 19 and 25, 2026: Open Code Review, the AI code review tool Alibaba used internally, now has 56,650 GitHub stars and 4,685 forks since going public in May, and its README carries Trendshift's repository-of-the-week badges. The latest version, 1.14.4, shipped on November 26.

What it is

It's a Go CLI, licensed Apache-2.0, that reads the Git diff, sends the changed files to a configurable LLM and returns review comments pinned to the exact line. According to the README, it started as Alibaba's official internal code review assistant and has been used by tens of thousands of developers over two years. It works with OpenAI- and Anthropic-compatible providers.

The interesting part is the architecture. Rather than leaving everything to the model, it separates what must not go wrong from what needs judgment:

  • Deterministic side: it decides which files get reviewed and which are filtered out, bundles files that belong together (say, message_en.properties and message_zh.properties) into units that a sub-agent reviews with its own context, matches rules to each file through a template engine, and uses separate modules to place each comment on the right line and check its content.
  • Agent side: prompts and tools tuned for review, which decide what context to pull in (the full file, a repo search, other files in the change).

It ships rules for several languages covering things like NPEs, thread safety, XSS and SQL injection, and beyond diffs it can review whole files with ocr scan, which helps when auditing code you don't know.

How to use it

It needs Git 2.41 or later. The direct route is the npm CLI:

bash
npm install -g @alibaba-group/open-code-review

ocr config provider     # pick a provider and enter the API key
ocr config model        # pick the model

cd your-project
ocr review --from main                        # changes on the current branch
ocr review --format json --output result.json # output for another tool
ocr scan --path internal/agent                # whole-file review

It also installs as a skill in Claude Code, Codex, Cursor or Kimi Code with npx skills add alibaba/open-code-review. There it offers two modes: native, where OCR's own agent reviews using its configured provider, and delegation, where your agent does the review with its own model and subscription while OCR tells it which files to cover, which rules apply and how to report. The docs also cover GitHub Actions, GitLab CI and Gerrit integration, an MCP server for external tools, OpenTelemetry telemetry and a web session viewer.

One warning before you try it: in native mode, every review sends the changed files to whichever provider you configure. If your code can't leave your network, point it at your own endpoint or use delegation mode with the agent you already have approved.

What I like and what I don't

I like that it goes after the three failures anyone has seen when asking a general-purpose agent for a review: skipped files on large changes, comments landing on the wrong line, and quality that shifts with a comma in the prompt. The README backs this with its own benchmark of 200 real PRs from 50 repositories in 10 languages, with 1,505 issues annotated by more than 80 engineers, and the dataset is public on Hugging Face. Against Claude Code on the same model, it claims higher precision and F1 at roughly a ninth of the tokens. It's also upfront about the cost of that choice: recall is lower, because it favours less noise over catching everything.

What gives me pause: the benchmark was designed by the same team that builds the tool, so it's a starting point, not a verdict. And the release pace (145 versions on npm since May) is a good sign of maintenance, but also a sign the CLI is still moving; pin the version in CI.

Open Code Review vs PR-Agent

The open source reference for AI pull request review is PR-Agent, the project that started at Qodo and is now community-maintained.

Open Code ReviewPR-Agent
ApproachDeterministic pipeline plus agent, line-level commentsAgent that comments on the PR, with commands such as review
Where it runsLocal CLI, agent skill, CI (GitHub Actions, GitLab CI, Gerrit)GitHub Action, CLI, GitLab, Bitbucket, Azure DevOps
Language and installGo, npm install -gPython, pip install "pr-agent[github]" or Docker
LicenseApache-2.0MIT
MaturityPublic since May 2026, 56,650 stars, v1.14.4Since July 2023, 16,697 stars, v0.50.0

When to use which. PR-Agent fits if you want a reviewer that lives on the PR platform and comments on every pull request in GitHub, GitLab, Bitbucket or Azure DevOps from a few lines of workflow. Open Code Review fits better if you review before opening the PR, from your terminal or your agent, if you care about comments landing on the right line in large changes, or if you want to use your agent's subscription without another API key.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗