Install
via Positronick CLI
Official
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.