BuildTube Preview About
Back to the feed

open-code-review: Get line-by-line review comments on your code changes

Added · Updated

Get AI review comments pinned to specific lines of your Git changes before a colleague looks at them.

For developers working in Git, Open Code Review is a CLI (a program you run in a terminal) that reads your diff, sends the changed files to an AI model you configure, and lets that model open other files and search the codebase for context. A scan mode reviews whole files when there is nothing recent to compare against. Alibaba says it began as its internal code review assistant and served tens of thousands of developers over two years.

What it does

It reads the difference between your work and the rest of the project, then sends the changed files to an AI model that can also open other files and search the codebase for context. The result is a set of structured comments attached to particular lines, rather than one general opinion. There is also a scan mode that reviews whole files, which is meant for looking through an unfamiliar codebase where there is nothing recently changed to compare against.

How to use it

Install it with npm install -g @alibaba-group/open-code-review, which adds the ocr command. Run ocr config provider and ocr config model to choose an AI provider, enter its key and test the connection. Then, inside your project, run ocr review to check uncommitted changes, or ocr review --from main --to your-branch for a branch. It writes line-level comments, and --format json --output result.json saves them to a file.

Common use cases

  • Run ocr review in a project with unsaved edits and get structured comments tied to file names and line numbers before you open a pull request.
  • Run ocr scan --path on a folder of an unfamiliar codebase and get a review of the whole files, with no Git history needed.
  • Install the plugin for Claude Code, Codex, Cursor or Kimi Code, or use ocr delegate, so your coding agent does the review while ocr picks the files and rules.

You could use it to…

  • Run it over your branch before asking a colleague to review
  • Get review comments pinned to the exact line that needs fixing
  • Scan an unfamiliar codebase for issues in one pass

Can I use this?

Terminal, needs a model key

Requirements Git 2.41 or newer, and npm for the main install; the project lists Windows, macOS and Linux as supported. Unless you use delegation mode, you configure an AI model provider first, and the setup asks for that provider’s API key. The source does not list hardware requirements.

Caveat The benchmark figures are the project’s own, and it says its recall is lower than general-purpose agents: fewer false alarms, but more missed issues. Each review sends your changed code to whichever model provider you configure.

Worth knowing You supply the AI model it talks to, and the project notes that the tokens each review uses affect API cost. The project publishes its own benchmark saying it raises precision and lowers recall compared with general coding agents – in plain terms, fewer false alarms but more missed issues. Those figures are the project’s own. Licensed under Apache License 2.0.

Why it's here

Not trending this week

Last seen on the GitHub trending list on 22 October 2026. It stays on BuildTube so you can still find it.

  • 49,646 people have starred it on GitHub.

Numbers checked on 8 November 2026; not refreshed since.

Behind it

View setup guide

BuildTube has not run or verified this project. Everything above is written from what the creator published.

Made this?

Quick questions

What is open-code-review?
It reads the difference between your work and the rest of the project, then sends the changed files to an AI model that can also open other files and search the codebase for context.
What can I use open-code-review for?
Run ocr review in a project with unsaved edits and get structured comments tied to file names and line numbers before you open a pull request; Run ocr scan --path on a folder of an unfamiliar codebase and get a review of the whole files, with no Git history needed; Install the plugin for Claude Code, Codex, Cursor or Kimi Code, or use ocr delegate, so your coding agent does the review while ocr picks the files and rules
Can I run open-code-review on my computer?
It runs from a terminal on your own computer. Git 2.41 or newer, and npm for the main install; the project lists Windows, macOS and Linux as supported. The source does not list hardware requirements.
What do I need to use open-code-review?
A terminal, a Git repository, and access to an AI model endpoint. The project says it works with OpenAI-compatible and Anthropic-compatible endpoints, and that you configure the endpoint before the first run.
What license does open-code-review use?
Licensed under Apache License 2.0.

More from this week

Explore by topic

Post this

A ready-made picture of this card for X, LinkedIn or a group chat. Link to this page alongside it.

Share image for open-code-reviewDownload share image

For makers

Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.

Featured on BuildTube

README badge (Markdown)

[![Featured on BuildTube](https://buildtube.app/badge/gh-alibaba-open-code-review.svg)](https://buildtube.app/p/gh-alibaba-open-code-review/)

Embed card (HTML)

<iframe src="https://buildtube.app/embed/gh-alibaba-open-code-review/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="open-code-review on BuildTube"></iframe>

Back to the feed