What do you want to do?
3 use cases
-
Review your branch with ocr before opening a pull request
Install the ocr CLI, pick a model and get line-level review comments on your uncommitted or branch changes.
View prompt
Install alibaba/open-code-review with `npm install -g @alibaba-group/open-code-review`, then run `ocr review` in this repository and summarize every comment it produces, grouped by file. Do not change any code until I choose which comments to fix.
-
Audit an unfamiliar codebase with ocr scan
Review whole files or a directory when there is no diff to look at.
View prompt
Using alibaba/open-code-review, run `ocr scan --path <directory>` on this repository and list the most serious findings first, with file and line. Resume with `ocr scan --resume` if it is interrupted.
-
Use delegation mode so your coding agent does the review
Let ocr pick the files and rules while your own agent supplies the model, with no separate API key.
View prompt
Install alibaba/open-code-review, run `ocr delegate preview`, then run `ocr delegate rule <files>` for the files it lists and review them yourself against the rules it returns. Report findings by file and line.
Quick start with Open Code Review
- Check you have what it needs: Git 2.41 or newer; Node.js and npm to install the CLI; An API key for an LLM provider, unless you use Delegation Mode.
- Open alibaba/open-code-review on GitHub and read the README and license.
- Run
npm install -g @alibaba-group/open-code-review - Run
ocr config providerto select a provider and enter your API key - Run
ocr config modelto pick a model for the active provider - In your project, run
ocr reviewto review all staged, unstaged and untracked changes
These steps come from our top use case, Review your branch with ocr before opening a pull request, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for alibaba/open-code-review
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDevelopers and teams who want automated pull request reviews with fewer false alarms and lower token cost than a general-purpose agent.
- Why it is hot49k stars, talked about in 2 AI sources we track
- LanguageGo
- Sourcegithub.com/alibaba/open-code-review ยท Back to Hot repos
Requirements
- Git 2.41 or newer
- Node.js and npm to install the CLI
- An API key for an LLM provider, unless you use Delegation Mode
Add this badge to your README
Maintain Open Code Review? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/alibaba-open-code-review/?utm_source=github&utm_medium=badge&utm_campaign=alibaba-open-code-review)
HTML
<a href="https://dedupedai.com/use-cases/alibaba-open-code-review/?utm_source=github&utm_medium=badge&utm_campaign=alibaba-open-code-review"><img src="https://dedupedai.com/badge/alibaba/open-code-review.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Open Code Review
What is Open Code Review?
Open Code Review is an AI-powered code review CLI that began as Alibaba's internal code review assistant. It reads Git diffs, sends changed files to a configurable LLM through an agent that can read files and search the codebase, and writes structured review comments with line-level precision. Its ocr scan command reviews whole files, and Delegation Mode lets your own coding agent do the review. It is an open-source project on GitHub: https://github.com/alibaba/open-code-review.
How do I use Open Code Review?
Run npm install -g @alibaba-group/open-code-review; then run ocr config provider to select a provider and enter your API key; run ocr config model to pick a model for the active provider. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Open Code Review for?
Developers and teams who want automated pull request reviews with fewer false alarms and lower token cost than a general-purpose agent.
What can I do with Open Code Review?
3 use cases so far, for example: Review your branch with ocr before opening a pull request; Audit an unfamiliar codebase with ocr scan; Use delegation mode so your coding agent does the review. Each has steps and a copy-paste agent prompt.
What do I need to run Open Code Review?
Git 2.41 or newer; Node.js and npm to install the CLI; An API key for an LLM provider, unless you use Delegation Mode.
What are alternatives to Open Code Review?
Other hot AI repos in Software and DevOps: ECC, Thinkrail, Superpowers, Deep Infer, Instructor.
Is Open Code Review safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.