Originally published at https://tekmag.thsite.top/alibabas-open-code-review-the-same-claude-model-47x-better-precision-than-claude-code/
Alibaba's open-code-review (OCR) is an open-source AI code review tool with 38.1k GitHub stars that beats Claude Code on its own benchmark: the same Claude 4.6 Opus model scores 33.9% precision inside OCR's deterministic harness versus 7.23% inside Claude Code, at roughly a tenth of the tokens. Install it with one npm command, point it at any OpenAI- or Anthropic-compatible endpoint, and let rules do the catching while the model does the explaining.
I verified the star count, release dates, and benchmark figures directly against Alibaba's open-code-review repository and the AACR-Bench paper on arXiv, and cross-referenced both with Flowtivity's hands-on install test. The numbers hold up: 38.1k stars, Apache 2.0 licensing, three releases in three days, and a precision table that matches across all three sources.
Key Takeaways
- open-code-review is Alibaba's Apache 2.0 code review tool. It runs as the
ocrCLI, sits at 38.1k GitHub stars as of September 20, 2026, and has handled 1M+ review tasks internally at Alibaba. - The hybrid design pairs deterministic language rulesets (NPE, XSS, SQL injection, thread safety) with an LLM agent that adds precise line-level explanations. No model choice required: any OpenAI- or Anthropic-compatible endpoint works.
- On AACR-Bench with the same Claude 4.6 Opus model, OCR posts 33.9% precision versus Claude Code's 7.23%, in 1m 23s versus 13m 6s, using 385K tokens versus 5.66M.
- Claude Code wins on recall (28.9% versus 20%), so the trade is noise versus coverage, not capability.
- Plugins for Claude Code, Codex, Cursor, and Kimi make OCR agent-agnostic. Install:
npm i -g @alibaba-group/open-code-review.
What is open-code-review?
Open-code-review (OCR) is an AI code review tool published by Alibaba under the Apache 2.0 license. Instead of opening a raw chat window on your diff, it runs a deterministic pipeline of language-specific rules first, then hands the surviving findings to an LLM agent that writes precise line-level comments. The repository's own description calls it "secure, fast, efficient, battle-tested at Alibaba's scale," and the internal numbers back that up: tens of thousands of developers inside the company, over 30% adoption among internal engineers, and more than 1 million review tasks executed across two years.
For teams that already rely on editor-native assistants, OCR is the open, self-hosted counterpoint. If you need a baseline for what the commercial side offers today, our complete guide to GitHub Copilot maps out that workflow, and OCR extends the same idea with rules you can audit.
How the hybrid architecture works
The design splits the job in two. A deterministic layer ships with built-in multi-language rulesets covering 10+ languages, including Java, TypeScript, Go, Python, Kotlin, Rust, C/C++, Swift, Solidity, and Verilog. Four rule families get named explicitly in the project docs: null pointer exceptions, thread-safety violations, XSS, and SQL injection. Flowtivity's deep dive inspected the Go ruleset and found the checks are concrete pattern detectors, not vague heuristics.
The LLM layer reads only what the rules surface. It comments at line level rather than pasting file-wide suggestions, which is why token consumption stays low. OCR speaks three wire formats out of the box: the Anthropic Messages API plus OpenAI's Chat Completions and Responses APIs, so you can point it at Anthropic, OpenAI, a local server, or anything in between. The repo also carries an OpenSSF Gold badge, the security and supply-chain review mark many high-traffic projects chase.
"OCR's edge over Claude Code is not a model gap. It is an architecture gap." That framing matters, because the benchmark (below) keeps the model constant and changes only the harness.
The benchmark: same model, 4.7x better precision
AACR-Bench is the project's published evaluation: 200 real pull requests from 50 repositories across 10 languages, carrying 1,505 expert-verified ground-truth issues and cross-validated by 80+ senior engineers. The methodology paper is on arXiv and the dataset is on Hugging Face. The headline row, both reviewers running Claude 4.6 Opus:
| Reviewer | Model | F1 | Precision | Recall | Avg time | Avg tokens |
|---|---|---|---|---|---|---|
| Open-code-review | Claude 4.6 Opus | 25.10% | 33.90% | 20.00% | 1m 23s | 385K |
| Claude Code | Claude 4.6 Opus | 11.57% | 7.23% | 28.90% | 13m 6s | 5,664K |
Same model, 4.7x the precision, roughly a tenth of the time, and about fifteen times fewer tokens. The recall column is the honest counterweight: Claude Code found more real issues (28.9% versus 20%). The benchmark's ground truth is 1,505 expert-verified issues cross-checked by 80+ senior engineers, which keeps the table from being a vanity metric. In practice, a reviewer that is wrong 93% of the time when it speaks (Claude Code's 7.23% precision means 92.77% of its comments are noise) burns reviewer trust fast, while one that misses more but mostly lands is a filter you can tighten with rules.
Security rulesets and multi-agent support
OCR is agent-agnostic. The repository ships a .agents/plugins/ directory with integrations for Claude Code, OpenAI's Codex, Cursor, and Kimi. Kimi support landed in v1.12.5, and the project also registers as plugins in the relevant agent marketplaces. If your team lives in the terminal rather than the IDE, our guide to GitHub Copilot CLI covers the opposite corner of the same workflow, and OCR slots into it as the review stage after the agent writes the code.
GitHub's own stack has moved in the same multi-vendor direction, as our look at Copilot shipping xAI Grok models shows. OCR just makes the model layer pluggable from day one: swap endpoints, keep the rulesets.
Installing and running open-code-review
Installation is one line, and the CLI command is ocr:
npm i -g @alibaba-group/open-code-review
From there you configure an endpoint (Anthropic, OpenAI, or any compatible server), run it against a diff or repository, and read line-level comments. The quick-start (open-codereview.ai) walks through first-run configuration in under five minutes; the GitHub repository carries the same onboarding notes and lists every supported model endpoint. The site also lists every supported model endpoint. Costs are whatever your model endpoint charges, and a cheap or local endpoint is enough for the rules-heavy parts of the pipeline.
How it reached 38,000 GitHub stars in under four months
The growth curve is a useful case study in how dev tools go viral. Flowtivity's September 12 article logged 22,389 stars; by September 20 the count read 38.1k. That is roughly 16,000 stars in eight days, and the trigger is traceable: Chris Short promoted the project in his DevOps'ish newsletter on September 11, 2026. Sustained interest, not a single spike, shows up in the release cadence: 745 commits in the repo and three releases inside three days. v1.12.5 shipped September 17, v1.12.6 on September 18, and v1.12.7 on September 19, 2026, per the releases page.
Conclusion
"The harness beats the model." That is the whole lesson: wrap a frontier model in deterministic pre-filters and you buy an order of magnitude in precision without changing a single weight. OCR's recall gap is the price of that design, and every new ruleset update closes it. The project's next releases will most likely keep landing on the deterministic layer, where the roadmap has run so far: three fixes in three days. If your pain point is not that the model cannot see bugs, but that it files a hundred false positives per PR, this is the tool to try on your next release branch. Have you run OCR on a real codebase? Drop your results in the comments.
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is open-code-review?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Open-code-review (OCR) is Alibaba's open-source, Apache 2.0 code review tool. It combines deterministic security and bug rulesets with an LLM agent that produces line-level comments. It runs as the ocr CLI and works with any OpenAI- or Anthropic-compatible model endpoint."
}
},
{
"@type": "Question",
"name": "How does open-code-review compare to Claude Code?",
"acceptedAnswer": {
"@type": "Answer",
"text": "On AACR-Bench with the same Claude 4.6 Opus model, OCR reaches 33.9% precision versus 7.23% for Claude Code, in about a tenth of the time and fifteen times fewer tokens. Claude Code has higher recall (28.9% versus 20%), so it catches more real issues but most of its comments are noise."
}
},
{
"@type": "Question",
"name": "How do I install open-code-review?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Run npm i -g @alibaba-group/open-code-review, then launch the ocr command. Configure an Anthropic or OpenAI-compatible endpoint, and point it at a diff or repository. The official quick-start is on open-codereview.ai."
}
},
{
"@type": "Question",
"name": "Does open-code-review work with models other than Claude?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Yes. It supports the Anthropic Messages API, OpenAI Chat Completions API, and OpenAI Responses API, so any compatible model or self-hosted server works. Agent integrations exist for Claude Code, OpenAI Codex, Cursor, and Kimi."
}
}
]
}
Frequently asked questions
What is open-code-review?
Open-code-review (OCR) is Alibaba's open-source, Apache 2.0 code review tool. It combines deterministic security and bug rulesets with an LLM agent that produces line-level comments. It runs as the ocr CLI and works with any OpenAI- or Anthropic-compatible model endpoint.
How does open-code-review compare to Claude Code?
On AACR-Bench with the same Claude 4.6 Opus model, OCR reaches 33.9% precision versus 7.23% for Claude Code, in about a tenth of the time and fifteen times fewer tokens. Claude Code has higher recall (28.9% versus 20%), so it catches more real issues but most of its comments are noise.
How do I install open-code-review?
Run npm i -g @alibaba-group/open-code-review, then launch the ocr command. Configure an Anthropic or OpenAI-compatible endpoint, and point it at a diff or repository. The official quick-start is on open-codereview.ai.
Does open-code-review work with models other than Claude?
Yes. It supports the Anthropic Messages API, OpenAI Chat Completions API, and OpenAI Responses API, so any compatible model or self-hosted server works. Agent integrations exist for Claude Code, OpenAI Codex, Cursor, and Kimi.
References
- Release history (v1.12.5 September 17, v1.12.6 September 18, v1.12.7 September 19, 2026)
- Official site & quick-start (open-codereview.ai, GitHub repository)
- AACR-Bench methodology paper (arXiv)
- Flowtivity's install test and Go ruleset inspection
- Chris Short's DevOps'ish promotion, September 11, 2026
Top comments (0)