ScriptsJul 25, 2026·3 min read

Open Code Review — AI-Augmented Code Review at Scale

Alibaba's open-source hybrid code review tool combining deterministic rule pipelines with LLM agents for precise, line-level review comments with built-in security rulesets.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Established
Entrypoint
Open Code Review
Direct install command
npx -y tokrepo@latest install 33d9e42a-8823-11f1-9bc6-00163e2b0d79 --target codex

Run after dry-run confirms the install plan.

Introduction

Open Code Review is an open-source, hybrid-architecture code review tool developed by Alibaba. It combines deterministic analysis pipelines with LLM-powered agents to deliver precise, line-level review comments. The tool comes with fine-tuned rulesets for common vulnerabilities like null-pointer exceptions, thread-safety issues, XSS, and SQL injection.

What Open Code Review Does

  • Performs automated code reviews with line-level precision on pull requests and diffs
  • Combines static analysis rules with LLM agents for contextual understanding
  • Ships with built-in rulesets for NPE, thread-safety, XSS, SQL injection, and more
  • Integrates with GitHub, GitLab, and other Git hosting platforms via webhooks
  • Supports OpenAI and Anthropic compatible LLM providers for the agent layer

Architecture Overview

Open Code Review runs a two-stage pipeline. The first stage applies deterministic rules written in Go that scan for known code patterns and anti-patterns. The second stage sends flagged code sections to an LLM agent for contextual analysis and natural-language comment generation. Results are deduplicated and ranked by severity before being posted as inline review comments. The architecture is designed for horizontal scaling to handle enterprise review volumes.

Self-Hosting & Configuration

  • Build from source with Go or use the provided Docker image
  • Configure your Git platform integration via webhook URLs and access tokens
  • Set LLM provider credentials for the agent-powered review stage
  • Customize rulesets by enabling or disabling individual checks in the config
  • Deploy as a service that listens for pull request events from your Git platform

Key Features

  • Hybrid architecture combining static rules with LLM contextual understanding
  • Line-level precision for review comments rather than file-level summaries
  • Built-in fine-tuned rulesets battle-tested at Alibaba scale
  • Compatible with OpenAI and Anthropic APIs for the LLM layer
  • Open-source and self-hostable for data-sensitive environments

Comparison with Similar Tools

  • PR-Agent — LLM-first code review; Open Code Review adds deterministic rule pipelines for precision
  • SonarQube — static analysis platform; Open Code Review adds LLM-powered contextual reasoning
  • Semgrep — pattern-based static analysis; Open Code Review combines patterns with natural-language review
  • CodeRabbit — commercial AI review; Open Code Review is fully open-source and self-hosted
  • GitHub Copilot Code Review — cloud-based; Open Code Review can run entirely on-premises

FAQ

Q: Does it support languages beyond Java? A: The deterministic rules target Java primarily, but the LLM agent layer works across any language the model understands.

Q: Can I add custom rules? A: Yes. The rule engine supports custom pattern definitions that you can add alongside the built-in rulesets.

Q: How does it handle false positives? A: The hybrid architecture reduces false positives by requiring both the rule engine and LLM agent to agree before posting high-severity comments.

Q: Does it work with private repositories? A: Yes. It runs self-hosted so all code stays within your infrastructure.

Sources

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets