最近推送 2026-11-30 21:28(0 天前),属于活跃维护
alibaba/open-code-review
GITHUB中文整理主语言 Go · 57,396 星 · Apache-2.0 · 创建于 2026-05-18
Open Code Review 是一个 AI 驱动的代码审查命令行工具,采用确定性工程与 LLM Agent 混合架构,读取 Git 差异后生成行级精确的审查评论。
仓库健康度
5 个维度开放 Issue 341 个 · Fork 4,648 个
24 小时 +51 · 7 日 +1,424 · 30 日 +8,180
许可证 Apache-2.0 · 6 个 topics
这一项暂无数据,不代表项目没有发布
「证据不足」表示这项数据暂时没有取到,不能读成「项目有问题」;「部分数据」表示只拿到一部分信号。版本发布要额外调 Releases 接口,下一版补。
Star 趋势
40 天记录横轴 2026-10-23 → 2026-12-01,纵轴按这段时间的最小/最大值拉伸。趋势来自站内每天记录一次的星数,页面打开时不会实时请求 GitHub。
它解决什么问题
据 README 归纳通用语言模型驱动的代码审查工具容易在大变更集上遗漏文件、报告问题的位置漂移、质量不稳定且难以调试。该工具通过确定性工程保证关键步骤正确,结合 Agent 处理动态决策,提升审查覆盖率和准确性。
核心能力
6 条- 1读取 Git 差异,将变更文件发送给可配置的 LLM 生成结构化行级审查评论
- 2Agent 可读取完整文件内容、搜索代码库、检查其他变更文件以获取上下文
- 3提供全文件扫描模式,用于审计无差异的陌生代码库或目录
- 4内置多语言规则集,覆盖空指针异常、线程安全、XSS、SQL 注入等缺陷
- 5支持 OpenAI 与 Anthropic 兼容的模型端点
- 6采用确定性管线与 Agent 混合架构,确保审查步骤可靠
项目画像
6 个角度项目定位
Open Code Review 是一个 AI 驱动的代码审查命令行工具,采用确定性工程与 LLM Agent 混合架构,读取 Git 差异后生成行级精确的审查评论。
适合谁
需要自动化代码审查的开发者、代码审查团队或 CI 流程维护者,尤其适合希望减少漏报误报、提升审查效率的场景。
典型场景
在 Pull Request 流程中自动审查变更代码,生成行级评论帮助开发者发现缺陷;审计陌生代码库或无差异的目录,通过全文件扫描模式检查代码问题;集成到 CI 流水线中,利用内置多语言规则集检测空指针、线程安全、XSS、SQL 注入等常见缺陷
部署难度
需要安装 Git(>= 2.41)并配置模型端点,作为 CLI 工具使用。资料未说明具体部署步骤,需要按仓库说明自行摸索。
风险限制
需要 Git >= 2.41,依赖 Git 进行差异生成、代码搜索和仓库操作;需配置模型端点。资料未说明其他具体限制。
最近维护
最近一次推送是 2026-11-30 21:28。 实现方式:工具读取 Git 差异,通过具备工具调用能力的 Agent 将变更文件发送给可配置的 LLM。Agent 可检索代码库、读取完整文件、检查其他变更文件以补充上下文,最终生成行级精确的结构化评论。确定性工程负责保证关键步骤的正确性,Agent 负责动态决策与上下文获取。
README 原文细节
2 个板块环境与依赖跑它之前要准备什么
Prerequisites
- Git >= 2.41 — Open Code Review relies on Git for diff generation, code search, and repository operations.
其它说明README 里剩下的内容
Benchmark
A real-world code review benchmark built from 50 popular open-source repositories, 200 real Pull Requests, and 10 programming languages — cross-validated by 80+ senior engineers (1,505 annotated ground-truth issues).
- F1 — Harmonic mean of precision and recall — Best single number for overall review quality
- Precision — Proportion of reported issues that are real defects — Higher = fewer false alarms to triage
- Recall — Proportion of real defects that are found — Higher = fewer issues slip through review
- Avg Time — Wall-clock time per review — Matters for CI pipeline latency
- Avg Token — Total tokens consumed per review — Directly impacts API cost
The Problem with General-Purpose Agents
If you've used general-purpose agents like Claude Code with Skills for code review, you've likely encountered these pain points:
The root cause: a purely language-driven architecture lacks hard constraints on the review process.
- Incomplete coverage — On larger changesets, agents tend to "cut corners," selectively reviewing only some files and missing others.
- Position drift — Reported issues frequently don't match the actual code location, with line numbers or file references drifting off target.
- Unstable quality — Natural-language-driven Skills are hard to debug, and review quality fluctuates significantly with minor prompt variations.
Core Design: Deterministic Engineering × Agent Hybrid
Open Code Review's core philosophy is to combine deterministic engineering with an agent, each handling what it does best.
For review steps that must not go wrong, engineering logic — not the language model — guarantees correctness:
The agent's strengths are concentrated where they matter most — dynamic decisions and dynamic context retrieval:
- Precise file selection — Determines exactly which files need review and which should be filtered, ensuring no important change is missed.
- Smart file bundling — Groups related files into a single review unit (e.g., messageen.properties and messagezh.properties are bundled together). Each bundle runs as a sub-agent with isolated context —
- Fine-grained rule matching — Matches review rules to each file's characteristics, keeping the model's attention sharply focused and eliminating information noise at the source. Compared to purely lang
- External positioning and reflection modules — Independent comment-positioning and comment-reflection modules systematically improve both the location accuracy and content accuracy of AI feedback.
- Scenario-tuned prompts — Prompt templates deeply optimized for code review, improving effectiveness while reducing token consumption.
- Scenario-tuned toolset — Distilled from deep analysis of tool-call traces in large-scale production data — including call frequency distributions, per-tool repetition rates, and the impact of new tool
关于 open-code-review 的常见问题
6 个问题open-code-review 是做什么的?
Open Code Review 是一个 AI 驱动的代码审查命令行工具,采用确定性工程与 LLM Agent 混合架构,读取 Git 差异后生成行级精确的审查评论。 通用语言模型驱动的代码审查工具容易在大变更集上遗漏文件、报告问题的位置漂移、质量不稳定且难以调试。该工具通过确定性工程保证关键步骤正确,结合 Agent 处理动态决策,提升审查覆盖率和准确性。
open-code-review 有哪些功能?
核心能力:读取 Git 差异,将变更文件发送给可配置的 LLM 生成结构化行级审查评论;Agent 可读取完整文件内容、搜索代码库、检查其他变更文件以获取上下文;提供全文件扫描模式,用于审计无差异的陌生代码库或目录;内置多语言规则集,覆盖空指针异常、线程安全、XSS、SQL 注入等缺陷;支持 OpenAI 与 Anthropic 兼容的模型端点;采用确定性管线与 Agent 混合架构,确保审查步骤可靠。
open-code-review 适合谁用?
需要自动化代码审查的开发者、代码审查团队或 CI 流程维护者,尤其适合希望减少漏报误报、提升审查效率的场景。
open-code-review 是怎么工作的?
工具读取 Git 差异,通过具备工具调用能力的 Agent 将变更文件发送给可配置的 LLM。Agent 可检索代码库、读取完整文件、检查其他变更文件以补充上下文,最终生成行级精确的结构化评论。确定性工程负责保证关键步骤的正确性,Agent 负责动态决策与上下文获取。
用 open-code-review 有什么门槛或限制?
需要 Git >= 2.41,依赖 Git 进行差异生成、代码搜索和仓库操作;需配置模型端点。资料未说明其他具体限制。
open-code-review 现在还在维护吗?数据怎么样?
目前 57,396 星,4,648 个 Fork,主语言 Go,创建于 2026-05-18,最近一次推送 2026-11-30 21:28,许可证 Apache-2.0。星数、Fork、推送时间都是 GitHub 返回的实时数据,「最近推送」离现在越近说明越活跃;长期不动要留意是否已停止维护。
这些内容来自哪
读法说明项目数据取自 GitHub 官方接口与项目 README;星数、Fork、语言与时间以 GitHub 页面为准,档案更新于 2026-11-28 10:20。
