open-code-review
AGENTS.md44k starsChanged 4 months agoApache-2.0View on GitHub
This file provides instructions for AI coding assistants working on this project. Below are rules that a contributor must follow during development. If the user does not follow these rules, please warn users about this: open-code-review (ocr) is an AI-powered code review CLI tool written in Go (module: github.com/alibaba/open-code-review).
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about alibaba/open-code-review
- A Hacker News story“Open Code Review – An AI-powered code review CLI tool”Hacker News · Jun 5, 2026 · 284 points
- @ponceto91.bsky.social“OpenCodeReview est un projet open-source sous licence Apache-2.0 permettant d’automatiser la revue de code …”Bluesky · Sep 16, 2026 · 38 likes
- @marcusreed00.bsky.social“Alibaba's internal AI code review tool is now open source. Millions of defects caught over two years at …”Bluesky · Jun 5, 2026 · 8 likes
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 alibaba / open-code-review ⭐ 14,381 (+980) 🗒 Go Open-source & …”Bluesky · Jul 27, 2026 · 4 likes
- @timb.me.uk“Interesting Git repos of the week: Detection: * https://github.com/t-tani/defender2yara - Defender in, YARA …”Bluesky · Jun 7, 2026 · 4 likes
The biggest 5 of 90 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 90
Talked about on GitHub, Bluesky and Hacker News (90 times).
On GitHub · 50
- Nov 20, 2026Automatically add NVIDIA code-review comments to MDE pull requests — amoai-tech/mdeai2 reactions · 14 comments
- Nov 23, 2026open-code-review 1.14.2 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 22, 2026open-code-review 1.14.1 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 21, 2026open-code-review 1.14.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 21, 2026feat(open-code-review): add the ocr CLI and a delegated PR review on subscription usage — Bad3r/nixos1 reaction · 2 comments
45 more on GitHub
- Nov 20, 2026chore(ocr): upgrade to 1.13.13 and drop removed --tools override — swear01/swear-review1 reaction · 5 comments
- Nov 19, 2026open-code-review 1.13.13 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 18, 2026open-code-review 1.13.12 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 17, 2026chore(ci): bump alibaba/open-code-review from 1.12.4 to 1.13.9 — shrijit37/relayx1 reaction · 1 comment
- Nov 17, 2026open-code-review 1.13.11 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 17, 2026chore(deps): Bump the actions group with 3 updates — ojungo69/oboete1 reaction · 6 comments
- Nov 15, 2026open-code-review 1.13.10 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 13, 2026open-code-review 1.13.9 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 12, 2026open-code-review 1.13.8 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 10, 2026chore(ci): bump alibaba/open-code-review from 1.12.4 to 1.13.6 — shrijit37/relayx1 reaction · 2 comments
- Nov 10, 2026open-code-review 1.13.7 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 5, 2026open-code-review 1.13.6 — chenrui333/homebrew-tap1 reaction · 2 comments
- Nov 3, 2026open-code-review 1.13.5 — chenrui333/homebrew-tap1 reaction · 1 comment
- Nov 3, 2026chore(ocr): upgrade to 1.13.5 with captured contracts — swear01/swear-review1 reaction · 4 comments
- Nov 2, 2026open-code-review 1.13.4 — chenrui333/homebrew-tap1 reaction · 1 comment
- Oct 27, 2026chore(ci): bump alibaba/open-code-review from 1.12.4 to 1.13.3 — shrijit37/relayx1 reaction · 3 comments
- Oct 22, 2026open-code-review 1.13.3 — chenrui333/homebrew-tap1 reaction · 1 comment
- Oct 20, 2026chore(ci): bump alibaba/open-code-review from 1.12.4 to 1.13.1 — shrijit37/relayx1 reaction · 3 comments
- Oct 20, 2026open-code-review 1.13.2 — chenrui333/homebrew-tap1 reaction · 1 comment
- Oct 17, 2026open-code-review 1.13.1 — chenrui333/homebrew-tap1 reaction · 1 comment
- Oct 13, 2026open-code-review 1.13.0 — chenrui333/homebrew-tap1 reaction · 1 comment
- Oct 8, 2026open-code-review 1.12.13 — chenrui333/homebrew-tap1 reaction · 1 comment
- Oct 5, 2026open-code-review 1.12.12 — chenrui333/homebrew-tap1 reaction · 1 comment
- Sep 28, 2026open-code-review 1.12.10 — chenrui333/homebrew-tap1 reaction · 2 comments
- Sep 23, 2026open-code-review 1.12.9 — chenrui333/homebrew-tap1 reaction · 2 comments
- Sep 10, 2026build(deps): bump alibaba/open-code-review from 1.9.10 to 1.11.0 — uzh-bf/klicker-uzh1 reaction · 2 comments
- Sep 5, 2026open-code-review 1.11.5 — chenrui333/homebrew-tap1 reaction · 1 comment
- Sep 4, 2026open-code-review 1.11.4 — chenrui333/homebrew-tap1 reaction · 1 comment
- Sep 3, 2026open-code-review 1.11.3 — chenrui333/homebrew-tap1 reaction · 1 comment
- Sep 1, 2026open-code-review 1.11.2 — chenrui333/homebrew-tap1 reaction · 2 comments
- Aug 31, 2026open-code-review 1.11.1 — chenrui333/homebrew-tap1 reaction · 2 comments
- Aug 28, 2026open-code-review 1.11.0 — chenrui333/homebrew-tap1 reaction
- Aug 27, 2026open-code-review 1.10.2 — chenrui333/homebrew-tap1 reaction
- Aug 26, 2026open-code-review 1.10.1 — chenrui333/homebrew-tap1 reaction
- Aug 25, 2026open-code-review 1.10.0 — chenrui333/homebrew-tap1 reaction
- Aug 21, 2026open-code-review 1.9.9 — chenrui333/homebrew-tap1 reaction
- Aug 20, 2026open-code-review 1.9.8 — chenrui333/homebrew-tap1 reaction
- Aug 19, 2026open-code-review 1.9.7 — chenrui333/homebrew-tap1 reaction
- Aug 18, 2026open-code-review 1.9.6 — chenrui333/homebrew-tap1 reaction
- Aug 17, 2026open-code-review 1.9.5 — chenrui333/homebrew-tap1 reaction
- Aug 15, 2026open-code-review 1.9.4 — chenrui333/homebrew-tap1 reaction
- Aug 12, 2026open-code-review 1.9.2 — chenrui333/homebrew-tap1 reaction
- Aug 11, 2026open-code-review 1.9.1 — chenrui333/homebrew-tap1 reaction
- Aug 4, 2026open-code-review 1.8.8 — chenrui333/homebrew-tap1 reaction · 1 comment
- Jul 24, 2026Add shadow-mode severity-based publication routing to reduce inline comment noise — vybestack/llxprt-code1 reaction · 1 comment
On Bluesky · 39
- Sep 16, 2026OpenCodeReview est un projet open-source sous licence Apache-2.0 permettant d’automatiser la revue de code et l’analyse de la sécurité par… — @ponceto91.bsky.social38 likes and reposts · 4 replies
- Jun 5, 2026Alibaba's internal AI code review tool is now open source. Millions of defects caught over two years at massive scale. Interesting to see… — @marcusreed00.bsky.social8 likes and reposts · 1 reply
- Jul 27, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 alibaba / open-code-review ⭐ 14,381 (+980) 🗒 Go Open-source & free — Battle-tested at Alibaba's… — @github-trending.bsky.socialsays it tested it4 likes and reposts · 1 reply
- Jun 7, 2026Interesting Git repos of the week: Detection: * https://github.com/t-tani/defender2yara - Defender in, YARA out Exploitation: *… — @timb.me.uk4 likes and reposts
- Jul 23, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 alibaba / open-code-review ⭐ 11,093 (+162) 🗒 Go Open-source & free — Battle-tested at Alibaba's… — @github-trending.bsky.socialsays it tested it3 likes and reposts
34 more on Bluesky
- Jun 17, 2026open-code-review (⭐️ 7690) Open-source & free — Battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic… — @golangoss.bsky.socialsays it tested it3 likes and reposts
- Nov 16, 2026alibaba open-sourced the code review tool their own devs use internally — deterministic checks for the stuff that must not go wrong, LLM… — @eichanandjolly.bsky.social2 likes and reposts
- Aug 8, 2026コードレビューに特化したAIベースのCLIツール。Alibaba社内のコードレビューで実際に使われていると。 — @matsuu.bsky.social2 likes and reposts · 2 replies
- Jul 30, 2026open-code-review (⭐️ 16454) Open-source & free — Battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic… — @golangoss.bsky.socialsays it tested it2 likes and reposts
- Jul 25, 2026今日のGitHubトレンド alibaba/open-code-review OpenCodeReviewはAI搭載のコードレビュー用CLIツールです。 Gitの差分を読み取り、設定したLLMを用いて行レベルで詳細なレビューコメントを生成します。… — @dailygithubtrends.bsky.social2 likes and reposts
- Nov 19, 2026open-code-review (⭐️ 54323) Secure, fast, efficient, battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic… — @golangoss.bsky.social1 likes and repost
- Nov 17, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 alibaba / open-code-review ⭐ 53,372 (+764) 🗒 Go Secure, fast, efficient, battle-tested at Alibaba's… — @github-trending.bsky.social1 likes and repost · 1 reply
- Nov 14, 2026open-code-review (⭐️ 51187) Secure, fast, efficient, battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic… — @golangoss.bsky.social1 likes and repost
- Nov 13, 2026📈 Today's GitHub Trending: 1. https://github.com/alibaba/open-code-review - Go, 206 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy1 likes and repost
- Nov 13, 2026今日のGitHubトレンド alibaba/open-code-review OpenCodeReviewは、AIを活用したコードレビュー用のCLIツールです。 アリババグループの内部ツールをベースにオープンソース化されました。… — @dailygithubtrends.bsky.social1 likes and repost
- Nov 6, 2026open-code-review (⭐️ 49560) Secure, fast, efficient, battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic… — @golangoss.bsky.social1 likes and repost
- Nov 2, 2026open-code-review (⭐️ 49261) Secure, fast, efficient, battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic… — @golangoss.bsky.social1 likes and repost
- Oct 9, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 alibaba / open-code-review ⭐ 44,822 (+323) 🗒 Go Secure, fast, efficient, battle-tested at… — @github-trending.bsky.social1 likes and repost
- Sep 11, 2026alibaba/open-code-review: Battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic pipelines + LLM Agent,… — @chrisshort.net1 likes and repost
- Jul 30, 2026alibaba just open sourced its code reviewer. Open Code Review ran internally for two years. deterministic pipelines pick the files, an… — @epicvibecoder.bsky.social1 likes and repost
- Jul 13, 2026github.com/alibaba/open... — @ssinchenko.bsky.social1 likes and repost
- Jul 2, 2026open-code-review (⭐️ 9784) Open-source & free — Battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic… — @golangoss.bsky.social1 likes and repost
- Jun 14, 2026open-code-review (⭐️ 6681) Open-source & free — Battle-tested at Alibaba's scale. Hybrid architecture code review tool: deterministic… — @golangoss.bsky.socialsays it tested it1 likes and repost · 2 replies
- Jun 8, 2026AlibabaのOpen Code Review、名前より中身がよかったです🌿 「LLMエージェントでコードレビュー」と聞くと丸投げっぽく見えるけど、公式READMEを読むと、むしろ“丸投げしない”設計でした。… — @mint-echosphere.bsky.social1 likes and repost · 1 reply
- Jun 7, 2026Open Code Review - An AI-powered code review CLI tool github.com/alibaba/open... #alibaba #AI — @joeingeno.bsky.social1 likes and repost
- Jun 5, 2026Open Code Review – An AI-powered code review CLI tool https://github.com/alibaba/open-code-review… — @newsyc250.bsky.social1 likes and repost
- Jun 5, 2026⚡ ALPHA · score 8/10 Open Code Review – An AI-powered code review CLI tool https://github.com/alibaba/open-code-review — @alpha-pipeline.bsky.social1 likes and repost
- Jun 5, 2026Alibaba open-sources its internal AI code review CLI, which has served tens of thousands of developers and flagged millions of defects. — @druce.ai1 likes and repost
- Jun 5, 2026Open Code Review – An AI-powered code review CLI tool — @hackernewsrobot.bsky.social1 likes and repost
- Jun 5, 2026Open Code Review – An AI-powered code review CLI tool (github.com) Discussion | Main Link — @newsycombinatorbot.bsky.social1 likes and repost
- Jun 5, 2026Open Code Review – An AI-powered code review CLI tool | Discussion — @hackernewsbot.bsky.social1 likes and repost
- Jun 5, 2026Open Code Review – An AI-powered code review CLI tool https://github.com/alibaba/open-code-review… — @betterhn20.e-work.xyz1 likes and repost
- Nov 13, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 alibaba / open-code-review ⭐ 50,167 (+206) 🗒 Go Secure, fast, efficient, battle-tested at… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Sep 17, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 alibaba / open-code-review ⭐ 33,596 (+3,290) 🗒 Go Fast, efficient, battle-tested at Alibaba's… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Sep 17, 2026📈 Today's GitHub Trending: 1. https://github.com/alibaba/open-code-review - Go, 3290 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 1 reply
- Sep 13, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 alibaba / open-code-review ⭐ 22,882 (+264) 🗒 Go Fast, efficient, battle-tested at Alibaba's scale.… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Jun 5, 2026Open Code Review – An AI-powered code review CLI tool View Article | Join the HN Conversation Summary of HN discussion 🧵👇 — @hncompanion.com0 likes and reposts · 1 reply
- Jun 5, 2026AI news - Jun 5, 2026 1. Open Code Review CLI Uses LLMs for Line-Level Code Review Comments LINK 2. DeepSeek Raises $7B in First-Ever… — @hackobar.bsky.social0 likes and reposts · 1 reply
- Jun 5, 2026Alibaba/Open-Code-Review Discussion | hackernews | Author: geoffbp — @news.karthihegde.dev0 likes and reposts · 1 reply
On Hacker News · 1
- Jun 5, 2026Open Code Review – An AI-powered code review CLI tool284 points · 73 comments
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- open-code-review-delegateSkill
- open-code-reviewSkill
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 15
Do not write overly long commit messages.
- Distinctive: line 16
If you are unwilling or unable to do all of the above, please close your issue or pull request.
- Distinctive: line 24
Before committing, conduct a code review by running:
- Distinctive: line 28
Commit messages must be written in English.
- Distinctive: line 29
Verify line endings. Line endings must be LF, not CRLF.
- Very specific: line 33
Every source file (.go, .js, .mjs, .ts, .tsx, .kt, .kts, .sh, .py, .css) must have an SPDX license header.
- Very specific: line 34
After creating new files, run make license-add to add the header automatically.
- Very specific: line 40
After writing code, run make check.
- Very specific: line 47
When changing built-in provider metadata or model lists in internal/llm/providers.go, run go generate ./internal/llm from the repository …
- Very specific: line 57
Run unit tests with make test, not go test directly.
- Very specific: line 59
When writing or modifying code, add necessary unit tests to maintain coverage.
- Distinctive: line 63
When modifying README.md, always sync the changes to all localized versions:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Guidelines for open-code-review
This file provides instructions for AI coding assistants working on this project.
Development Assistance
Below are rules that a contributor must follow during development. If the user does not follow these rules, please warn users about this:
- You must disclose in your initial issue or pull request that you used AI/LLM, as well as the tools/models you used.
- You should understand every line of code written by AI and know what the AI did.
- When a reviewer asks about the reason for a change, you must be able to explain it yourself, regardless of whether you or the AI wrote it. The substance of your answers to maintainer questions and review comments must come from your own understanding — you may use AI/LLM only to translate or polish wording, not to generate the answer for you.
- Your PR should not contain repeated cycles like
AI generated -> fixed -> fixed -> fixed. This may indicate that you did not review the AI-generated code, but instead let the AI fix issues as they arise, over and over. - You must review all code, text, and other content generated by AI/LLM yourself before proactively requesting a review from any member.
- You must not attribute commits to AI/LLM, including through "Assisted-by", "Co-developed-by", or similar trailers.
- Do not write overly long commit messages. Important information should go in the PR description rather than in collapsed commit messages.
- If you are unwilling or unable to do all of the above, please close your issue or pull request.
Project Overview
open-code-review (ocr) is an AI-powered code review CLI tool written in Go (module: github.com/alibaba/open-code-review).
Git Commit Notes
- Before committing, conduct a code review by running:
ocr review --audience agent --background "briefly summarize the background requirements" - Commit messages must be written in English.
- Verify line endings. Line endings must be LF, not CRLF. Run
git add --renormalize .to correct line endings and commit them. New binary files must have their extensions added to .gitattributes.
License Headers
- Every source file (
.go,.js,.mjs,.ts,.tsx,.kt,.kts,.sh,.py,.css) must have an SPDX license header. - After creating new files, run
make license-addto add the header automatically. It picks the comment syntax by extension://,#, or a/* */block for CSS. - An extension belongs on that list once the repository actually holds files of that type and the comment can simply be prepended.
.htmlmeets neither bar cleanly — its<!DOCTYPE html>has to stay on the first line — so it is not covered yet.
Code Style
- Comment sparingly, and only to explain "why". Do not add comments that restate what the code already says (
// increment i), narrate the change itself (// newly added,// changed to fix ...— that belongs in the commit message or PR description), quote pull request or issue numbers from the upstream repository, or leave TODO/placeholder chatter. A comment earns its place only when it captures intent, a non-obvious constraint, or a subtlety the code cannot express on its own. - After writing code, run
make check. It formats and tidies in place, so there is no need to rungofmtorgo vetseparately. - Source files are written in English — comments, identifiers and strings alike.
make english-checkenforces this in CI. It flags any letter outside ASCII, whichever the writing system (Han, kana, Hangul, Cyrillic, and equally the diacritics that spell German or Vietnamese), plus combining accents and fullwidth punctuation (:,(), which is easy to leave behind in an otherwise English sentence. Symbols and emoji (─ → ≥ ✅) pass, since they are not letters. Prose spelled entirely in ASCII (Loeschen der Datei, or a romanised transcription) takes a dictionary to spot and stays a matter for review. - Translated prose has its own homes, none of them scanned.
docs/i18n/README.<locale>.mdanddocs/i18n/CONTRIBUTING.<locale>.md(zh-CN,ja-JP,ko-KR,ru-RU); the doc pages underpages/src/content/docs/<locale>/(en,zh,ja,ru, Markdown throughout); and the UI copy tables inpages/src/i18n/<locale>.ts. Markdown is out of scope by extension, so translations go there freely. The i18n tables are.tsand would be scanned, so they are exempt by prefix instead — translated UI strings belong in those tables rather than inline in a component. - Two escape hatches for the exceptional case, narrower one preferred. Append an
allow-non-english: <reason>marker comment to the offending line — the right choice for a handful of lines, such as an encoding fixture or a language-switcher label, and it leaves the rest of the file protected. Only for a whole tree that is inherently non-English, add a prefix toallowedPrefixesinscripts/verify-english-only.go; that list records each exemption's reason and the removal conditions for temporary translation exemptions.
Provider Presets
When changing built-in provider metadata or model lists in
internal/llm/providers.go, run go generate ./internal/llm from the
repository root. Commit both generated files with the registry change;
do not edit them by hand:
extensions/frontend/src/shared/providers.generated.tsextensions/idea/src/main/kotlin/com/alibaba/opencodereview/idea/services/ProviderNames.generated.kt
Testing
- Run unit tests with
make test, notgo testdirectly. make testsetsLC_ALL=Cto ensure git outputs English messages.- When writing or modifying code, add necessary unit tests to maintain coverage. The project enforces a 90% coverage threshold via
make coverage.
README
- When modifying README.md, always sync the changes to all localized versions:
- docs/i18n/README.zh-CN.md
- docs/i18n/README.ja-JP.md
- docs/i18n/README.ko-KR.md
- docs/i18n/README.ru-RU.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

