Alibaba's Code Review CLI
Alibaba has open sourced their AI-powered code review CLI tool that they’ve been using internally for years.
It reads Git diffs, sends changed files to a configurable LLM via an agent with tool-use capabilities, and generates structured review comments with line-level precision. The agent can read full file contents, search the codebase, inspect other changed files for context, and produce deep reviews — not just surface-level diff feedback.
How to get started?
Install the cli
npm install -g @alibaba-group/open-code-review
then configure the provider & model
ocr config provider # Select a built-in provider or add a custom one
ocr config model # Pick a model for the active provider
Then in your project, in your project you can ask it to review
ocr review