经 AI Skill Hub 精选评估,开源代码审查 获评「强烈推荐」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
开源代码审查 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
开源代码审查 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:go install(推荐) go install github.com/alibaba/open-code-review@latest # 方式二:从源码编译 git clone https://github.com/alibaba/open-code-review cd open-code-review go build -o open-code-review . # 方式三:下载预编译二进制 # 访问 Releases 页面下载对应平台二进制文件 # https://github.com/alibaba/open-code-review/releases
# 查看帮助 open-code-review --help # 基本运行 open-code-review [options] <input> # 详细使用说明请查阅文档 # https://github.com/alibaba/open-code-review
# open-code-review 配置说明 # 查看配置选项 open-code-review --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export OPEN_CODE_REVIEW_CONFIG="/path/to/config.yml"
<p align="center"> <a href="https://alibaba.github.io/open-code-review/"> <img src="imgs/logo.svg" alt="OpenCodeReview logo" width="240" height="240"> </a> </p> <p align="center">The open source AI code review agent.</p> <p align="center"> <a href="https://www.npmjs.com/package/@alibaba-group/open-code-review"><img alt="npm" src="https://img.shields.io/npm/v/@alibaba-group/open-code-review?style=flat-square" /></a> <a href="https://github.com/alibaba/open-code-review/actions/workflows/release.yml"><img alt="Build status" src="https://img.shields.io/github/actions/workflow/status/alibaba/open-code-review/release.yml?style=flat-square" /></a> <a href="https://github.com/alibaba/open-code-review/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/alibaba/open-code-review?style=flat-square" /></a> </p> <p align="center"> English | <a href="README.zh-CN.md">简体中文</a> </p>
---
AI-powered code review CLI that reads Git diffs, sends changed files to a configurable LLM via an agent with tool-use capabilities, and generates structured review comments with line-level precision.
The agent can read full file contents, search the codebase, inspect other changed files for context, and produce deep reviews — not just surface-level diff feedback.

```bash
You must configure an LLM before reviewing code.
```bash
ocr config set llm.url https://api.anthropic.com/v1/messages ocr config set llm.auth_token your-api-key-here ocr config set llm.model claude-opus-4-6 ocr config set llm.use_anthropic true
export OCR_LLM_URL=https://api.anthropic.com/v1/messages export OCR_LLM_TOKEN=your-api-key-here export OCR_LLM_MODEL=claude-opus-4-6 export OCR_USE_ANTHROPIC=true ```
Config is stored in ~/.opencodereview/config.json.
The tool also falls back to Claude Code environment variables (ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, ANTHROPIC_MODEL) and parses ~/.zshrc / ~/.bashrc for those exports.
ocr review
Config file: ~/.opencodereview/config.json
| Key | Type | Example | |
|---|---|---|---|
llm.url | string | https://api.openai.com/v1/chat/completions | |
llm.auth_token | string | sk-xxxxxxx | |
llm.model | string | claude-opus-4-6 | |
llm.use_anthropic | boolean | true \ | false |
language | string | English \ | Chinese (default: Chinese) |
telemetry.enabled | boolean | true \ | false |
telemetry.exporter | string | console \ | otlp |
telemetry.otlp_endpoint | string | OTLP collector address | |
telemetry.content_logging | boolean | Include prompts in telemetry |
Environment variables take precedence over the config file.
| Variable | Purpose |
|---|---|
OCR_LLM_URL | LLM API endpoint URL |
OCR_LLM_TOKEN | API key / auth token |
OCR_LLM_MODEL | Model name |
OCR_USE_ANTHROPIC | true = Anthropic, false = OpenAI |
ocr review --from main --to feature-branch
高质量的开源代码审查工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:开源代码审查 的核心功能完整,质量优秀。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | open-code-review |
| Topics | 代码审查工作流Go |
| GitHub | https://github.com/alibaba/open-code-review |
| License | Apache-2.0 |
| 语言 | Go |
收录时间:2026-05-28 · 更新时间:2026-05-28 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端