# alibaba/open-code-review

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/alibaba-open-code-review).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

49,616 stars · 3,644 forks · Go · Apache-2.0

## Links

- GitHub: https://github.com/alibaba/open-code-review
- Homepage: https://open-codereview.ai
- awesome-repositories: https://awesome-repositories.com/repository/alibaba-open-code-review.md

## Topics

`agent` `agent-skills` `code-review` `code-review-assistant` `harness` `repository-level-context`

## Description

Open Code Review is a command-line tool, written in Go, that uses a language model agent to review code. It reads Git diffs or full files and returns line-level comments on defects, security issues, and rule violations. After generating comments, it runs separate positioning and reflection steps that re-check each comment's line location and content, correcting drifted references and dropping inaccurate findings.

Reviews can cover working changes, a commit range, or a feature branch compared against its merge base, so only the changes introduced by that work are examined. For code with no useful history, whole files or directories can be scanned. The review agent can read full files, search the codebase, and inspect other changed files, and large changesets are split into bundles of related files that are each reviewed in an isolated sub-agent. A rule engine selects security and quality checks per file type and path, covering issues such as null pointers, thread safety, XSS, and SQL injection. Teams can add project-specific rules targeted by file path.

The reviewer also runs inside GitHub Actions, GitLab CI, and Gerrit pipelines, posting line comments and a single updating summary on each change. Plugins, slash commands, and portable skills let a developer trigger a review from inside an existing coding agent and use that agent's own model, so no separate model API key is needed. Otherwise, a guided setup configures a built-in or custom model provider.

Supporting features include JSON export of findings, resuming interrupted review sessions, a browser view to replay past sessions and mark comments as fixed or ignored, external tool connections through a tool-server protocol, and telemetry export as standard observability data.

## Tags

### Artificial Intelligence & ML

- [AI Code Reviewers](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-code-reviewers.md) — Command-line tool where a language model agent reads Git diffs and files and returns line-level comments on defects, security issues, and rule violations.
- [Model-Driven Diff Comments](https://awesome-repositories.com/f/artificial-intelligence-ml/model-driven-diff-comments.md) — Reads Git diffs, sends changed files to a configurable language model agent, and returns structured comments pinned to exact code lines. ([source](https://github.com/alibaba/open-code-review#readme))
- [Coding Agent Plugins](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-code-reviewers/coding-agent-plugins.md) — Ships plugins, slash commands, and portable skills that run a review inside an existing coding agent using that agent's own model.
- [Host Agent Review Delegation](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-code-reviewers/host-agent-review-delegation.md) — Hands the review to an existing coding agent so it runs on that agent's own model without a separate API key. ([source](https://github.com/alibaba/open-code-review#readme))
- [Organizational Standard Enforcement](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-code-reviewers/organizational-standard-enforcement.md) — Lets teams define project-specific review rules targeted by file path so AI reviews enforce their own conventions alongside built-in checks.
- [Review Customization](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-code-reviewers/review-customization.md) — Lets teams define project-specific review rules targeted by file path to control which standards each review applies. ([source](https://github.com/alibaba/open-code-review#readme))
- [Whole-File Defect Scans](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-code-reviewers/whole-file-defect-scans.md) — Reviews whole files or directories without a diff, helping audit unfamiliar or inherited code that has no useful history. ([source](https://github.com/alibaba/open-code-review#readme))
- [Rule Template Matching](https://awesome-repositories.com/f/artificial-intelligence-ml/rule-template-matching.md) — Matches each file's characteristics against rule templates so only relevant security and quality checks are applied to it. ([source](https://github.com/alibaba/open-code-review#readme))

### DevOps & Infrastructure

- [Pull Request Review Gates](https://awesome-repositories.com/f/devops-infrastructure/continuous-integration/quality-gates/pull-request-review-gates.md) — Runs in GitHub Actions, GitLab CI, and Gerrit, posting line comments and a single updating summary on each change.
- [CI Review Automations](https://awesome-repositories.com/f/devops-infrastructure/ci-review-automations.md) — Runs automated code review in GitHub Actions, GitLab CI, and Gerrit pipelines, posting line comments and a single updating summary per change.

### Testing & Quality Assurance

- [Agentic Code Reviews](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/agentic-code-reviews.md) — Sends changed code to a language model agent, then re-checks each comment's line location and content to fix drifted references and drop inaccurate findings.
- [Branch Range Reviews](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/agentic-code-reviews/branch-range-reviews.md) — Reviews a feature branch against its merge base or a commit range so only the changes introduced by that work are examined. ([source](https://github.com/alibaba/open-code-review#readme))
- [Bundled Sub-Agent Reviews](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/agentic-code-reviews/bundled-sub-agent-reviews.md) — Splits large changesets into bundles of related files and reviews each bundle in an isolated sub-agent concurrently. ([source](https://github.com/alibaba/open-code-review#readme))
- [Codebase Context Exploration](https://awesome-repositories.com/f/testing-quality-assurance/code-quality-review/agentic-code-reviews/codebase-context-exploration.md) — Lets the review agent read full files, search the codebase, and inspect other changed files for deeper findings than diff-only feedback. ([source](https://github.com/alibaba/open-code-review#readme))

### Part of an Awesome List

- [Comment Accuracy Passes](https://awesome-repositories.com/f/awesome-lists/devtools/code-review-and-metrics/comment-accuracy-passes.md) — Runs separate positioning and reflection steps that correct each comment's line location and drop inaccurate findings. ([source](https://github.com/alibaba/open-code-review#readme))

### Software Engineering & Architecture

- [Codebase Audits](https://awesome-repositories.com/f/software-engineering-architecture/codebase-audits.md) — Scans whole files or directories with no diff or history needed to find defects and security risks in unfamiliar or inherited code.
- [Static Analysis Rule Engines](https://awesome-repositories.com/f/software-engineering-architecture/static-analysis-rule-engines.md) — Includes a rule engine that selects security and quality checks per file type and path, covering null pointers, thread safety, XSS, and SQL injection, with custom rules.
