talira

Open Code Review

AI code review CLI combining deterministic pipelines with an LLM agent for line-level comments

open sourceApache-2.0self-hostablefree

Open Code Review (ocr) is an AI code review CLI that began as Alibaba Group's internal review assistant. It reads Git diffs, selects and bundles the changed files with deterministic rules, matches review rules to each file, and runs an LLM agent with code-review tools that reads files and searches the codebase before writing line-level comments. ocr scan reviews whole files without a diff. It works with OpenAI- and Anthropic-compatible model endpoints, or in delegation mode lets a coding agent such as Claude Code or Codex do the review under its pipeline, through agent skills and plugins.

Ways to install

Problems it solves

  • AI agents reviewing big pull requests skip files and miss changes
  • line numbers in AI review comments don't match where the problem actually is
  • review quality from my prompt-based code review skill changes every run
  • I want automated code review that flags null pointer, thread-safety, XSS and SQL injection bugs
  • run an AI code review on my branch from the terminal before I open a PR
  • get line-level review comments on a diff using my own OpenAI or Anthropic API key
  • use my existing Claude Code or Codex subscription to do structured code reviews without another API key
  • audit an unfamiliar codebase file by file when there is no diff to review
  • AI code review in CI that costs fewer tokens than a general-purpose agent
  • self-hosted AI code reviewer for GitHub Actions or GitLab CI with a model we choose
  • give the code reviewer access to our tickets and internal docs through MCP
  • custom review rules targeted to specific paths in the repo

Features

  • Reviews Git diffs: workspace changes, branch ranges or single commits
  • Full-file scan mode (ocr scan) for code without a meaningful diff
  • Deterministic file selection and bundling, with each bundle reviewed by an isolated sub-agent
  • Template-based review rules matched to each file, customisable with path filtering
  • Built-in multi-language ruleset covering NPE, thread-safety, XSS and SQL injection
  • Separate comment-positioning and reflection modules for line-level accuracy
  • OpenAI- and Anthropic-compatible providers, configured interactively
  • Delegation mode: the host coding agent performs the review within OCR's pipeline
  • Agent skills and plugins for Claude Code, Codex, Cursor, Kimi Code and OpenCode
  • Connects to external MCP servers to give the review agent extra tools
View 3 more
  • CI integrations for GitHub Actions, GitLab CI, GitFlic CI and Gerrit
  • JSON output, resumable sessions and a browser session viewer
  • OpenTelemetry telemetry

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Open Code Review does.

  1. CodeRabbit Trust everything you ship with CodeRabbit
  2. CodeRabbit CLI AI code reviews for your local Git changes
  3. Greptile The AI Code Reviewer
  4. DeepSource AI code review platform that combines static analysis with AI review agents
  5. PR-Agent An open-source AI agent that describes, reviews and improves pull requests.
  6. Qodo Code review for agents. Governance for humans.

Compare Open Code Review with the top 3