repowiserepowise

Command-line tool

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 comments, built-in multi-language ruleset (NPE, thread-safety, XSS, SQL injection), OpenAI & Anthropic compatible.

★ 55,177stars on GitHubGoApache-2.0

This connects Repowise to alibaba/open-code-review's code. It does not install open-code-review.

Repowise maps public repos from their source. Not affiliated with alibaba. What is Repowise?

github.com/alibaba/open-code-reviewIndexed at 39515dc

What is open-code-review?

open-code-review is an AI-powered code review command-line tool for Git repositories. It reads Git diffs and sends the changed files to a language model you configure, using an agent that can read full file contents and search the codebase. It produces structured review comments with line-level precision, and its core code is written in Go, with TypeScript and Kotlin extensions for VS Code and IntelliJ. To install it, run npm install -g @alibaba-group/open-code-review. Its code health is 6.9 out of 10 (Fair), ranked #154 of 4,000+ indexed repos. The last commit to open-code-review was on Nov 21, 2026, and 180 people have contributed.

As of commit 39515dc, indexed Nov 22, 2026. What it is comes from a model reading the README; the rest is measured from the source and git history, not from the maintainer.

For agentsopen-code-review.md

Repo facts: type, license, health, rank, contributors
open-code-review facts
TypeCommand-line tool
LicenseApache-2.0
Code health6.9 / 10 (Fair)
Health rank#154 of 4,000+ indexed repos
Last commitNov 21, 2026
Contributors180
Bus factor3
Size1,161 files, 169,380 lines

Install open-code-review

Commands copied from the README

  1. 1Install the ocr command globally with npm.
    npm install -g @alibaba-group/open-code-review

Releases on GitHub (latest v1.14.0, Nov 21, 2026)

Full install notes on GitHub

Explore open-code-review

Ask about this code in your agent

This connects Repowise to open-code-review's code. It does not install open-code-review. To install open-code-review, use the install steps.

Useful if you want to change or fork open-code-review: your agent can ask how it is put together and get answers that cite its files.

How to use open-code-review

  1. 1Select a built-in model provider or add a custom one.
    ocr config provider
  2. 2Pick a model for the active provider.
    ocr config model

Ask about open-code-review

Answers come from open-code-review's README and source, with the files they cite. Two free answers a day without an account.

Featured answer

open-code-review is an AI-powered command-line tool for Git repositories that reads diffs and sends the changed files to a language model you configure, using an agent that can read full file contents and search the codebase. Its core is written in Go, with TypeScript and Kotlin extensions for VS Code and IntelliJ. Commands enter through cmd/opencodereview/main.go, and bin/ocr.js launches the packaged Go binary with the arguments you typed. The internal directory holds the review and scan engine, which chooses changed files, asks the model, and keeps findings, with internal/agent/agent.go driving the agent, internal/llm/client.go handling model communication, and internal/llmloop/loop.go as another hotspot in the review code. The extensions directory brings the same review into the editor, and the layers by file count are CLI, UI, Application, Config, Utility, Service, and Docs & Tooling, with Service the largest at 184 files. To start reading, begin with cmd/opencodereview/main.go and then internal/agent/agent.go.

Files per layer in open-code-review7 layers.

Basis: Inferred · knowledge graph· as of 39515dc

Want this for your own codebase? Map your repo free

About this page

Get a page like this for your own codebase

Repowise built this map of alibaba/open-code-review from its source and git history. It parses every symbol, draws the dependency graph, scores each file's health from complexity, duplication, coverage and churn, finds hotspots and owners in the history, and writes documentation for every module. Your coding agent reads the same index over MCP, so its answers cite real files.

Free for 2 public repos, with a page like this one. No card. See how Repowise works

Prefer local? pip install repowise && repowise init indexes your own checkout, no account needed. Star Repowise on GitHub

alibaba/open-code-review FAQ

What is open-code-review?

open-code-review is an AI-powered code review command-line tool. It reads Git diffs and sends changed files to a language model you configure, then returns review comments with line-level precision.

How does open-code-review work?

open-code-review reads Git diffs and passes changed files to an agent that can read full file contents and search the codebase. The agent produces structured review comments tied to specific lines.

How do I install open-code-review?

You can install open-code-review with npm install -g @alibaba-group/open-code-review, which makes the ocr command available globally. Then run ocr config provider and ocr config model to set up a model. See the install steps

What language is open-code-review written in?

open-code-review is written mainly in Go, with TypeScript and Kotlin used for its VS Code and IntelliJ extensions.

How is the open-code-review code organized?

open-code-review keeps its command entry point in cmd/opencodereview and its review engine in internal. The extensions directory holds the VS Code and IntelliJ integrations, and bin holds the ocr launcher.

When should I use open-code-review?

open-code-review is for reviewing changes in Git repositories, such as in developer workflows and CI jobs. Its ocr scan command also audits whole files in codebases or directories that have no meaningful diff.

What license does open-code-review use?

open-code-review is released under the Apache-2.0 license.

Code health

6.8out of 10Fair

Hotspots average 4.6, the place fixes pay off most.

On the leaderboards:#14 of 28 Go repos

Key features of open-code-review

  • Reads Git diffs and sends changed files to a configurable language model through an agent with tool-use capabilities.
  • Generates structured review comments with line-level precision.
  • Lets the agent read full file contents, search the codebase, and inspect other changed files for context.
  • Runs ocr scan to review entire files, for auditing unfamiliar codebases or directories that have no meaningful diff.
  • Groups related files into a single review unit, such as message_en.properties and message_zh.properties, so they are reviewed together.

How alibaba/open-code-review works

Commands enter through cmd/opencodereview/main.go, and bin/ocr.js is a launcher that starts the packaged Go binary with the arguments you typed. The internal directory holds the engine behind the review and scan commands, which decides which changed files get reviewed, asks the model about them, and keeps the findings. internal/agent/agent.go is one of the hotspot files that drives the agent, and internal/llm/client.go handles communication with the configured model. internal/llmloop/loop.go is another hotspot file in the review code. The extensions directory brings the same review into VS Code and IntelliJ, so a developer can start a review and act on each comment in the editor.

The codebase has 1,161 files and 9,604 symbols in 10 modules, led by Go, TypeScript and Kotlin. Code health is 6.8 out of 10, rated fair.