经 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://trendshift.io/repositories/41087" target="_blank"> <img src="https://trendshift.io/api/badge/trendshift/repositories/41087/weekly?language=Go" alt="alibaba%2Fopen-code-review | Trendshift" style="width: 320px; height: 70px;" width="320" height="70" /> </a> </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://goreportcard.com/report/github.com/alibaba/open-code-review"><img alt="Go Report Card" src="https://goreportcard.com/badge/github.com/alibaba/open-code-review?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> <a href="https://deepwiki.com/alibaba/open-code-review"><img alt="Ask DeepWiki" src="https://deepwiki.com/badge.svg" /></a> <a href="https://www.bestpractices.dev/projects/13328"><img alt="OpenSSF Best Practices" src="https://img.shields.io/badge/OpenSSF-Silver-4C566A?style=flat-square" /></a> </p> <p align="center"> <a href="#supported-platforms"><img alt="Windows" src="https://img.shields.io/badge/Windows-supported-blue.svg" /></a> <a href="#supported-platforms"><img alt="macOS" src="https://img.shields.io/badge/macOS-supported-blue.svg" /></a> <a href="#supported-platforms"><img alt="Linux" src="https://img.shields.io/badge/Linux-supported-blue.svg" /></a> <a href="#supported-agents"><img alt="Claude Code" src="https://img.shields.io/badge/Claude_Code-supported-blueviolet.svg" /></a> <a href="#supported-agents"><img alt="Codex" src="https://img.shields.io/badge/Codex-supported-blueviolet.svg" /></a> <a href="#supported-agents"><img alt="Cursor" src="https://img.shields.io/badge/Cursor-supported-blueviolet.svg" /></a> </p> <p align="center"> English | <a href="README.zh-CN.md">简体中文</a> | <a href="README.ja-JP.md">日本語</a> | <a href="README.ko-KR.md">한국어</a> | <a href="README.ru-RU.md">Русский</a> </p>
---
ocr review --background "Adding rate limiting to the login API"
ocr config provider ocr config model ocr llm providers
```bash
ocr review
Config file: ~/.opencodereview/config.json
| Key | Type | Example | ||||
|---|---|---|---|---|---|---|
provider | string | anthropic \ | openai \ | dashscope \ | deepseek \ | z-ai |
providers.<name>.api_key | string | Provider-specific API key | ||||
providers.<name>.url | string | Provider base URL override | ||||
providers.<name>.protocol | string | anthropic \ | openai | |||
providers.<name>.model | string | Model name for the provider | ||||
providers.<name>.models | array | Optional provider model list for interactive selection | ||||
providers.<name>.auth_header | string | x-api-key \ | authorization | |||
providers.<name>.extra_body | object | JSON object merged into every request body | ||||
providers.<name>.timeout_sec | integer | Per-request HTTP timeout in seconds (default: 300) | ||||
providers.<name>.extra_headers | string | Comma-separated key=value HTTP headers | ||||
custom_providers.<name>.* | — | Same fields as providers.<name>.*, including optional models | ||||
llm.url | string | https://api.openai.com/v1/chat/completions | ||||
llm.auth_token | string | sk-xxxxxxx | ||||
llm.auth_header | string | Anthropic only: x-api-key \ | authorization | |||
llm.extra_body | object | JSON object merged into every request body | ||||
llm.timeout_sec | integer | Per-request HTTP timeout in seconds (default: 300) | ||||
llm.extra_headers | string | Comma-separated key=value HTTP headers | ||||
llm.model | string | claude-opus-4-6 | ||||
llm.use_anthropic | boolean | true \ | false | |||
language | string | Any language name, e.g. English, Chinese (default: English) | ||||
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_AUTH_HEADER | Anthropic auth header (x-api-key or authorization) |
OCR_LLM_EXTRA_HEADERS | Comma-separated key=value HTTP headers |
OCR_LLM_MODEL | Model name |
OCR_LLM_TIMEOUT | Per-request HTTP timeout in seconds (overrides config file timeout_sec) |
OCR_USE_ANTHROPIC | true = Anthropic, false = OpenAI |
OCR can be integrated into CI/CD pipelines to automate code review on Merge Requests / Pull Requests.
The core command for CI integration:
ocr review \
--from "origin/main" \
--to "<commit_sha>" \
--format json
The --from flag accepts a branch ref (e.g., origin/main) or commit SHA as the base, while --to accepts a commit SHA or branch ref as the head. In CI environments, using commit SHA for --to is recommended to correctly handle fork PRs/MRs where the source branch doesn't exist on the origin remote.
The --format json flag outputs machine-readable results suitable for parsing in CI scripts.
See the examples/ directory for integration examples:
github_actions/ — GitHub Actions integration examplegitlab_ci/ — GitLab CI integration exampleocr review --from main --to feature-branch
高质量的开源代码审查工具
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:开源代码审查 的核心功能完整,质量优秀。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | open-code-review |
| 原始描述 | 开源AI工作流:Battle-tested at Alibaba's scale. Hybrid architecture code review tool: determin。⭐149 · Go |
| Topics | 代码审查工作流Go |
| GitHub | https://github.com/alibaba/open-code-review |
| License | Apache-2.0 |
| 语言 | Go |
收录时间:2026-05-28 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端