// Agent profile
Open Code Review (alibaba/open-code-review) is an open-source code review tool battle-tested at Alibaba's scale over two years, where it served tens of thousands of developers and identified millions of code defects. It uses a hybrid architecture: deterministic rule pipelines for known bug patterns (NPE, thread-safety, XSS, SQL injection) combined with an LLM agent that reads diffs, searches the codebase, and generates precise line-level comments. The agent can inspect full file contents and other changed files for cross-file context. Supports OpenAI and Anthropic-compatible models. Works as both a CI-integrated diff reviewer and a whole-file auditing tool for scanning unfamiliar codebases. Apache 2.0 licensed.
Open Code Review is Alibaba’s internal code review assistant, open-sourced after two years of production use across tens of thousands of developers. Unlike pure-LLM code reviewers that send diffs to a model and hope for useful feedback, Open Code Review uses a hybrid architecture: a deterministic pipeline catches known bug patterns with fine-tuned rules, while an LLM agent handles the nuanced, context-dependent review work that rules can’t cover.
The deterministic layer runs first, flagging well-understood defect classes — null pointer exceptions, thread-safety violations, XSS vulnerabilities, and SQL injection patterns — with high precision and zero LLM cost. The agent layer then reviews the remaining changes with full codebase context, reading related files, searching for usage patterns, and generating structured comments that attach to specific lines in the diff.
Line-level precision: Every review comment maps to an exact line in the diff. This is not “your code might have issues” — it is “line 42: this field can be null after the refactor on line 38, but the dereference here has no null check.” The precision comes from the agent’s ability to read full file contents and cross-reference other changed files in the same PR.
Full-file audit mode: Beyond reviewing diffs, Open Code Review can scan entire files or directories. This mode is designed for auditing unfamiliar codebases, onboarding to a new project, or reviewing code that predates your team’s involvement.
Built-in rule engine: The fine-tuned ruleset covers common Java and general-purpose defect patterns out of the box. Rules run deterministically — no model variability, no token cost, sub-second execution — and catch the categories of bugs that LLMs sometimes miss due to attention patterns.
CI/CD integration for automated review on every pull request. Security auditing for codebases that haven’t had systematic review. Onboarding tool for teams inheriting legacy code. Training data source for teams building custom code review models — the structured output format makes it straightforward to collect labeled examples.
The built-in ruleset is strongest for Java — other languages get LLM coverage but fewer deterministic rules. The tool requires API keys for the LLM provider of your choice. The agent mode’s review depth scales with context window and model capability — larger context windows produce better cross-file analysis.
Builder.io's open-source framework for building agent-native applications — shared actions, SQL-backed state, identity, tools, skills, jobs, observability, and UI surfaces that all work together.
CLI orchestration tool that installs and configures platform connectors for 16+ social and web sources — Twitter/X, Reddit, YouTube, GitHub, Bilibili, and more. Zero API fees.
Persistent memory layer for AI coding agents — benchmark-backed (95.2% on LongMemEval-S), 92% fewer tokens per session vs full-context pasting, zero manual memory.add() calls.