alibaba/open-code-review

Secure, fast, efficient, battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic pipelines + LLM Agent, precise line-level...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 1 hour ago
Added to GitGenius on August 2nd, 2026
Created on May 18th, 2026
Open Issues & Pull Requests: 229 (+2)
GitHub issues: Enabled
Number of forks: 2,804
Total Stargazers: 39,184 (+25)
Total Subscribers: 121 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.8 hours
Mean response time: 38.9 hours
90th percentile: 3.3 days
Tracked items: 434

How this project is maintained

About 8% of issues opened in the past year have never received a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Almost all tracked open issues have seen activity in the last three months. 77% of issues opened in the past year have been closed, leaving a working backlog. Three people close 92% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 101
New in 7 days: 83
Closed in 7 days: 63
Avg open age: 10 days
Stale 30+ days: 33
Stale 90+ days: 0

Recent activity

Opened in 7 days: 72
Closed in 7 days: 51
Comments in 7 days: 127
Events in 7 days: 456

Top labels

  • enhancement (167)
  • good first issue (123)
  • bug (111)
  • documentation (39)
  • help wanted (37)
  • go (9)
  • i18n (6)
  • javascript (6)

Most active issues this week

Sign in to see which issues are moving.

Detailed Description

Open Code Review is an AI-powered code review CLI tool developed by Alibaba Group and released as open source. The tool originated as Alibaba's internal code review assistant and has been battle-tested over two years serving tens of thousands of developers while identifying millions of code defects before being incubated into a community project. Written in Go, it combines deterministic engineering pipelines with LLM agent capabilities to deliver precise, line-level code review comments.

The tool operates by reading Git diffs and sending changed files to a configurable language model through an agent equipped with tool-use capabilities. Beyond surface-level diff analysis, the agent can read full file contents, search the codebase, inspect other changed files for context, and generate deep reviews. The system also supports a scan mode that reviews entire files for auditing unfamiliar codebases or directories without meaningful diffs. The tool supports multiple LLM providers including OpenAI and Anthropic, and is available across Windows, macOS, and Linux platforms.

A core distinguishing feature is Open Code Review's hybrid architecture that pairs deterministic engineering with agent-based decision-making. The deterministic layer handles critical review steps that must not fail, including precise file selection to ensure no important changes are missed, smart file bundling that groups related files into single review units for divide-and-conquer processing on large changesets, fine-grained rule matching that focuses the model's attention on relevant rules, and external positioning and reflection modules that systematically improve both location accuracy and content accuracy of AI feedback. The agent layer concentrates on dynamic decision-making and context retrieval through scenario-tuned prompts optimized for code review and a distilled toolset derived from production data analysis.

The tool includes a built-in multi-language ruleset covering common security and reliability issues including null pointer exceptions, thread-safety problems, cross-site scripting vulnerabilities, and SQL injection risks. This represents a deliberate trade-off favoring precision over recall to minimize false alarms.

The project addresses specific pain points with general-purpose agents including incomplete coverage on larger changesets where agents selectively review only some files, position drift where reported issues frequently don't match actual code locations, and unstable quality from natural-language-driven approaches. The deterministic engineering layer solves these problems by enforcing hard constraints on the review process rather than relying purely on language model outputs.

Installation requires Git version 2.41 or later, as Open Code Review depends on Git for diff generation, code search, and repository operations. The tool provides an interactive UI for configuring LLM providers, API keys, and model settings with automatic connectivity testing. The project maintains comprehensive documentation at open-codereview.ai/docs and is distributed via npm as the @alibaba-group/open-code-review package. The project has achieved OpenSSF Best Practices Silver level certification and is available under an open-source license.