alibaba / open-code-review
git clone https://github.com/alibaba/open-code-review.git
v1.13.2 · 3d ago
🔥 on GitHub Trending today
Go-based AI code review CLI that runs deterministic pipelines alongside an LLM agent to leave line-level review comments on Git diffs.
Why you might care
Aimed at teams wanting automated PR review from any OpenAI- or Anthropic-compatible model endpoint, with a built-in multi-language ruleset covering NPE, thread-safety, XSS and SQL injection. Its `ocr scan` mode also audits whole files or directories without a diff. The README claims higher precision than Claude Code at about 1/9 the tokens, at the cost of lower recall.
+135
stars, 24h · #285
+~896
stars, 7 days · #235
+~3.8k
stars, 30 days · #214
48k
★ total · +2% this week
3.5k
forks · 342 open issues
Star history (as recorded here)
LanguageGo
LicenseApache-2.0
Created2026-05-18 (5mo ago)
Last push1d ago
Watchers142
OwnerOrganization
Seen on GitHub Trending
- 2026-10-23 — #2 daily in go · +226 ★
GitHub topics
Links
- GitHub: github.com/alibaba/open-code-review
- Homepage: https://open-codereview.ai
- Releases · Issues · Hacker News mentions
README excerpt
OpenCodeReview English | 简体中文 | 日本語 | 한국어 | Русский --- ## What is Open Code Review? Open Code Review is an AI-powered code review CLI tool. It originated as Alibaba Group's internal official AI code review assistant — over the past two years, it has served tens of thousands of developers and identified millions of code defects. After thorough validation at massive scale, we incubated it into an open source project for the community. Simply configure a model endpoint to get started. 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. Beyond diff review, `ocr scan` reviews entire files for auditing unfamiliar codebases or directories that have no meaningful diff. Visit the official website for more details. ## Benchmark > Compared to general-purpose agents (Claude Code), Open Code Review achieves significantly higher **Precision** and **F1** with the same underlying model, while consuming only **~1/9 of the tokens** and completing reviews faster. Note that its Recall is lower than general-purpose agents — a deliberate trade-off favoring precision over noise. A real-world code review benchmark built from **50** popular open-source repositories, **200** real Pull Requests, and **10** programming languages — cross-validated by 80+ senior engineers (**1,505** annotated ground-truth issues). Explore the AACR-Bench dataset on Hugging Face . | Metric | What it measures | Why it matters | |--------|-----------------|----------------| | **F1** | Harmonic mean of precision and recall | Best single number for overall review quality | | **Precision** | Proportion of reported issues that are real defects | Higher = fewer false alarms to triage | | **Recall** | Proportion of real defects that are found | Higher = fewer issues slip through review | | **Avg Time** | Wall-clock time per review | Matters for CI pipeline latency | | **Avg Token** | Total tokens consumed per review | Directly impacts API cost | ## Why Open Code Review? ### The Problem with General-Purpose Agents If you've used general-purpose agents like Claude Code with Skills for code review, you've likely encountered these pain points: - **Incomplete coverage** — On larger changesets, agents tend to "cut corners," selectively reviewing only some files and missing others. - **Position drift** — Reported issues frequently don't match the actual code location, with line numbers or file references drifting off target. - **Unstable quality** — Natural-language-driven Skills are hard to debug, and review quality fluctuates significantly with minor prompt variations. The root cause: a purely language-driven architecture lacks hard constraints on the review process. ### Core Design: Deterministic Engineering × Agent Hybri
Blurb generated by claude-haiku-5-5 today. Star deltas marked ~ are extrapolated from partial history.