← Registry
CLI Official

Open Code Review

AI code-review CLI battle-tested at Alibaba scale — a deterministic-engineering × agent hybrid giving precise line-level comments at ~1/9 the tokens of a general agent.

Install

via Positronick CLI

$positronick cli install open-code-review --run

Official

$npm install -g @alibaba-group/open-code-review

Open Code Review (`ocr`) is an AI-powered code-review CLI incubated from Alibaba Group's internal reviewer, which served tens of thousands of developers and flagged millions of defects before being open-sourced. It reads Git diffs, sends changed files to a configurable OpenAI- or Anthropic-compatible model via a tool-using agent, and returns structured, line-level comments; `ocr scan` reviews whole files with no diff. Its hybrid design pairs deterministic engineering (precise file selection, smart bundling into isolated sub-agent units, template rule-matching, external positioning/reflection) with agent decision-making, plus a fine-tuned ruleset for NPE, thread-safety, XSS, and SQL injection. On a 200-PR benchmark it reaches higher precision and F1 than a general agent at roughly 1/9 the tokens — a deliberate precision-over-recall trade-off.