The original alibaba/open-code-review repository has 55427 stars, is written in Go, and ships under Apache-2.0. A Chinese translation of its README was published on 2026-11-21 at yangshun2005/open-code-review-cn. That translation is the subject here, not a rewrite of the tool.
What the tool actually does
Open Code Review is a CLI named ocr. It reads a Git diff, sends changed files to a configurable LLM, and an agent with tool-calling ability produces structured review comments with line-level precision. The agent can read whole files, search the codebase, and look at other changed files for context. That last part matters: a diff-only reviewer sees a removed line and guesses; an agent that can open the surrounding function sees why the line was there.
There is a second mode. ocr scan reviews entire files rather than diffs, aimed at auditing unfamiliar codebases or directories where no meaningful diff exists.
The project comes from an internal Alibaba AI review assistant used for two years. The README states it served tens of thousands of developers and found millions of code defects before being open-sourced.
The benchmark numbers, as published
The README describes AACR-Bench: 50 popular open-source repositories, 200 real pull requests, 10 programming languages, cross-validated by 80+ senior engineers, yielding 1505 annotated real issues. The dataset is on Hugging Face.
Against a general-purpose agent (Claude Code) running the same underlying model, the README claims higher precision and F1 at roughly one-ninth the token cost, with faster reviews. It also states plainly that recall is lower than the general agent. That is a deliberate trade: fewer false positives, more missed issues. Anyone evaluating this for CI should read that sentence twice, because it changes how you'd deploy it. A reviewer tuned for precision is a filter, not a safety net.
Why the Chinese version exists
The original README is in English. For a Chinese-speaking developer evaluating a CLI, the friction is not the install command — it's the configuration section, the environment requirements, the platform caveats. Those are exactly the parts where a machine translation leaves you guessing and where a maintained translation earns its place.
The Chinese repo does something more useful than a straight translation. It adds a "中文快速上手" (Chinese quick start) section at the top, explicitly marked as supplementary material not present in the original. That section covers:
- What problem the tool solves, in one paragraph
- The shortest install path for macOS, Linux, and Windows
- Environment requirements: OS, CPU architecture, dependencies, Go version for source builds
- A "common pitfalls" list
The pitfalls list is the part worth reading. It says the tool ships without a model — you must configure an LLM endpoint yourself. It notes install.sh defaults to /usr/local/bin, which ordinary users often cannot write to, and that OCR_INSTALL_DIR overrides it. It flags that install.sh does not support Windows at all; Windows needs install.ps1. And it repeats the benchmark caveat about recall.
None of that is hidden in the English README, but it is scattered. Collecting it in one place for Chinese readers is the actual contribution.
Install paths
macOS and Linux:
curl -fsSL https://open-codereview.ai/install.sh | sh The README suggests downloading and inspecting first, which is reasonable for a pipe-to-shell script:
curl -fsSL https://open-codereview.ai/install.sh -o install.sh less install.sh && sh install.sh Windows, via PowerShell:
irm https://open-codereview.ai/install.ps1 | iex Or npm, package @alibaba-group/open-code-review, which provides the ocr command:
npm install @alibaba-group/open-code-review Architecture support differs by channel. install.sh handles x86_64/amd64 and arm64/aarch64 and exits with an error on anything else. The npm optional dependencies cover darwin-arm64, darwin-x64, linux-arm64, and linux-x64. Building from source needs Go 1.26.10 per go.mod, with ./cmd/opencodereview as the entry point and make build as the target.
For networks where GitHub is slow, install.sh accepts OCR_GITHUB_MIRROR to point binary downloads at a mirror domain. The Chinese quick start mentions this; it is the kind of detail that saves twenty minutes of confused retrying.
What the translation does not cover
The quick start is honest about gaps. It says the original README only states "simply configure a model endpoint to get started" without spelling out the configuration command or parameters, and it defers to the translated README body rather than inventing syntax. Same for ocr subcommands beyond ocr scan. That restraint is correct — a translation that fills blanks with plausible-looking flags is worse than one that points you at the source.
So expect to read the full README body for endpoint configuration. The Chinese version translates it; it does not extend it.
Who this is for
If you already read English documentation comfortably, the Chinese repo offers little beyond a condensed pitfalls list. If you are evaluating the tool with a team that reads Chinese, the translated README plus the quick start lowers the cost of the first hour considerably — particularly around the model endpoint requirement, which is the single most common reason a first run fails.
One caveat on my end: I have not run the tool against my own repositories, so I cannot speak to comment quality beyond the published benchmark. The precision-over-recall tradeoff is documented, and the numbers are the project's own.
Repository: https://github.com/yangshun2005/open-code-review-cn
Original: https://github.com/alibaba/open-code-review
Chinese documentation: https://github.com/yangshun2005/open-code-review-cn
I'm an independent enterprise AI delivery consultant — private LLM deployment, RAG, agent workflows, AIOps. If your team is stuck somewhere in that stack, my inbox is open.