AI product Open source

OpenCodeReview

Open Code Review is an open-source, AI-powered command-line code-review tool developed from Alibaba Group’s internal review assistant. It reads Git diffs and sends changed files to a configurable LLM through an agent with tool-use capabilities; the agent can read complete files, search the repository, and inspect other changed files for context before producing structured comments tied to source lines. Its hybrid architecture combines deterministic engineering with dynamic agent decisions: deterministic stages select and bundle files, match rules to file characteristics, and apply independent comment-positioning and reflection modules, while scenario-specific prompts and tools guide context retrieval and review. The `ocr scan` command audits complete files or directories without requiring a meaningful diff, and the project provides multilingual rules for issues including null-pointer exceptions, thread safety, cross-site scripting, and SQL injection. It supports configurable model endpoints, including OpenAI- and Anthropic-compatible endpoints, and requires Git 2.41 or newer.

View repository Visit site Mentioned in 4 videos ↓

What OpenCodeReview is used for

4 uses taken from transcripts — each links to the moment in the video.

  • An open-source command-line AI code review agent for Git diffs. It analyzes full files and codebase context, then produces structured comments pinned to exact lines.

  • Provides hybrid AI code review with line-level precision. It combines deterministic engineering for file selection and comment positioning with an agent for context and judgment, aiming to produce accurate feedback with fewer tokens.

  • Reviews large code changes using deterministic file selection and rule matching together with a reasoning agent. It is designed to cover every changed file and place comments on the correct lines.

  • An open-source AI-powered code review CLI from Alibaba. It combines deterministic checks with an LLM agent that examines diffs and codebases, produces line-level comments, detects issues, and can apply fixes.

Videos mentioning OpenCodeReview

4 in the library.