Open Code Review: Alibaba's open-source AI tool for reviewing code from the command line
Open Code Review is an AI-powered code review CLI tool from Alibaba Group. It began as the company's internal code review assistant, served tens of thousands of developers over two years, and helped identify millions of code defects before it was released as an open source project. To start using it, you configure a model endpoint.
The tool reads Git diffs and sends changed files to a configurable LLM[1] through an agent that can call tools. The agent can read full file contents, search the codebase, and inspect other changed files, and it produces review comments with line-level precision. The `ocr scan` command reviews entire files, for example in unfamiliar codebases. Built-in rules cover NPE[2], thread safety, XSS[3], and SQL injection, and the tool is compatible with OpenAI and Anthropic APIs.
The project combines deterministic pipelines with an LLM agent. In the AACR-Bench test, built from 50 open-source repositories, 200 pull requests, and 10 programming languages, it achieved higher Precision and F1[4] than Claude Code with the same model. It used about 1/9 of the tokens and finished faster, but its Recall was lower. It requires Git 2.41 or later and installs with `npm install -g @alibaba-group/open-code-review`.
Sources
-
GitHub Trending
alibaba/open-code-review





