Open Code Review

open-codereview.ai

Alibaba's open-source AI code review CLI that combines deterministic file selection with an LLM agent for line-level review comments.

GitHub stars
56,037
License
Apache-2.0
Language
Go
Pricing
Open source
Published
Oct 31, 2026

Next steps

What it does

Open Code Review (OCR) is an AI-powered code review command-line tool open-sourced by Alibaba under Apache 2.0. According to the project, it began as Alibaba Group's internal AI code review assistant, used by tens of thousands of developers over two years. It reads Git diffs and sends changed files to a configurable LLM endpoint through an agent that can read full files, search the codebase and inspect other changed files, then outputs structured review comments with line-level positions. Its design mixes deterministic engineering with the agent: precise file selection and filtering, smart bundling of related files (each bundle reviewed by an isolated sub-agent, which also enables concurrent review), and hard constraints that keep reported issues anchored to the right lines. Besides diff review, the ocr scan command reviews whole files or directories, useful for auditing unfamiliar code. The team publishes AACR-Bench, a benchmark of 200 real pull requests from 50 repositories in 10 languages, and reports higher precision and F1 than a general-purpose agent with the same model while using about one ninth of the tokens.

Use cases

  • Add AI review comments to pull requests in CI with your own model endpoint
  • Audit an unfamiliar codebase with ocr scan
  • Reduce token cost compared with reviewing diffs through a general coding agent

Frequently asked questions

Which models does Open Code Review support?
You configure a model endpoint yourself; it is not tied to a single provider.
Can it review code without a diff?
Yes, ocr scan reviews whole files or directories.
What license is it under?
Apache License 2.0.
Log in to join the discussion