Open Code Review (ocr) is a command-line tool that reviews Git diffs or whole files using a configurable LLM agent. It started as Alibaba's internal code review assistant and was later open-sourced. It's built for developers and teams who want automated code review in their local workflow or CI pipeline without relying solely on a general-purpose coding agent.
The tool works by reading Git diffs, bundling related changed files, and sending them to an LLM through an agent that can read full files, search the codebase, and inspect related changes for context. It also supports ocr scan, which reviews entire files or directories rather than diffs, useful for auditing code that has no meaningful diff history.