Deep Dive · Agent Tooling

Open Code Review: Precision Over Recall, and Defaults That Cost $5 a Run

Alibaba's reviewer is not a chat agent with a prompt — it is a deterministic pipeline wrapped around an agent, with a ruleset per language and a deliberate decision to miss some bugs rather than drown you in false alarms. The review is thorough enough that its default settings took 21 minutes and about a million tokens. That is the finding.

Open Code Review review — video thumbnail
Video: DevOps Toolbox 13:43 20 November 2026
open-code-review Alibaba CI review precision

🚫 What we excluded

Sponsored video. It carries a paid cloud-storage read with a Black Friday lifetime plan and an 87% discount code, a keyboard discount, a keycap affiliate link, and referral codes for the channel's own courses. None of that appears here. One line of the sponsor segment does touch the topic, though, and it is worth keeping: the pitch was "AI makes attacks easier", which is roughly the argument for running a security-aware reviewer on every pull request in the first place.

🧰 What it is 0:13

PropertyValue
Repositoryalibaba/open-code-review — "hybrid architecture: deterministic pipelines + LLM agent"
Licence, languageApache-2.0, Go
TractionAbout 55,000 stars, 4,500 forks, created May 2026
Distributionnpm @alibaba-group/open-code-review, exposing an ocr CLI that runs locally and in CI
ProvidersOpenAI- and Anthropic-compatible endpoints, plus custom ones
Built-in rulesNull pointer exceptions, thread safety, XSS, SQL injection and other common defects, per language
"Battle-tested at Alibaba's scale" is the kind of claim that usually means nothing. Here there is at least a number attached — tens of thousands of users and millions of runs on the project page — and the more convincing signal is the licence and language: an Apache-2.0 Go binary from a company that reviews a lot of code, rather than a wrapper around someone else's API.

🏗 The architecture claim 0:34

The differentiator is not the model, it is the scaffolding around it. The repository states the trade-off more candidly than the video does.

General-purpose agent doing reviewOpen Code Review
Natural-language skill, hard to debugDeterministic pipeline stages around the model
Quality varies with prompt wordingScenario-tuned prompt templates for review specifically
All rules in context at onceRules matched per file by characteristics
Reads the diff, maybe the fileAgent can read whole files, search the codebase, inspect other changed files
Higher recall, more noiseLower recall by design — precision first
"Note that its Recall is lower than general-purpose agents — a deliberate trade-off favouring precision over noise."
That sentence is the most credible thing in the project. A vendor publishing the metric it loses on, and explaining why the loss is intentional, is doing something different from a benchmark slide. It also tells you how to use the tool: it is for teams whose real problem is triaging false positives on every PR, not teams who fear missing a subtle bug.

📊 The benchmark, and the fox 0:53

"I'm not going to get excited by benchmarks published by the fox guarding the henhouse."
DetailValue
Dataset50 popular open-source repositories, 200 real pull requests, 10 languages
Ground truth1,505 annotated issues, cross-validated by 80+ senior engineers
PublishedThe dataset is public on Hugging Face, so the framework is inspectable even if it is self-run
Headline resultHigher precision and F1 than a general-purpose agent on the same model, at about a ninth of the tokens
The honest caveatRecall is lower — deliberately
His scepticism is right and slightly overdrawn. A self-run benchmark is weak evidence; a self-run benchmark with a published dataset and annotated ground truth is weaker evidence than an independent run but much stronger than a chart. The thing to trust is the direction — precision up, tokens down by roughly 9× — because both are mechanical properties of the design, not model quality claims.

🎛 Three modes 3:10

ModeWhat it doesNeeds its own API key
ocr reviewReviews the diff — by default the visible changes, or a commit, or a rangeYes
ocr scanFull-file audit of a repository, directory or file; no git history requiredYes
DelegationOCR provides file selection, rule resolution, coverage requirements and structured reporting; your own agent does the analysisNo — but you pay your agent's subscription
Delegation is the smartest design decision in the product, and the documentation is unusually precise about what it does and does not give you: the host agent "does not run OCR's full native pipeline". So you get the plumbing and guardrails — which files, which rules, what coverage — while keeping your existing agent and its authentication. That is exactly the split a team with a working setup would ask for.

Sessions are first-class: you can list them, resume one, and follow them in a browser preview. In the video the session list showed an aborted and a skipped run alongside the active one, which is a small reminder that a review tool with resumable state also needs to explain its failures.

🐢 The 21-minute review 2:40

StageTimeObservation
Naive first run, defaultsStill scanning after 4 minutesHe works on other things
…8 minutesOngoingHe wonders whether it is the tool or the model provider
…16 minutesOngoingHe looks into it and finds a community of people reporting the same
…21 minutesFinishedAbout a million tokens, roughly $5 for one run
Why the default is slow, in his own reconstruction: medium effort means two independent review rounds, a large risk-analysis step before any reviewing, and considerable back-and-forth hunting false positives. Every one of those choices improves precision — the project's whole thesis — and every one multiplies cost. The defaults are the thesis applied at full strength, which is a defensible engineering choice and a poor first-run experience.
The detail that matters for your bill: a million tokens is not unusual for a whole-repository review with an agentic loop, but it is ruinous as a per-PR default on a paid API. He notes that many users hit both the slowness and the token consumption, which means the defaults are the problem, not his setup.

⚡ The fast, cheap path 5:15

Change he madeEffect
Target a single commit hashSmaller surface than "everything changed"
Reduce effort to lowOne round instead of two
Set the audience to human rather than agentA shorter, more readable report
Skip the false-positive searchFaster — but he declines, because he wants a trustworthy result
Result33,000 tokens, one minute five seconds, no findings
Thirty-three thousand tokens for a small diff versus a million for the full pass is the whole cost story in two numbers. The lesson is not "tune the flags" — it is that effort, scope and audience are independent multipliers, and a team should set them per context: a cheap low-effort gate on every PR, and the expensive configuration as an on-demand deep review before a release.
Effort levels, the audience flag and the no-filter option are described in the video and were not found in the repository's README during this check — they appear to live in the CLI reference. Verify the exact flag names against ocr --help before scripting them.

🔎 What it found 5:56

CategoryReported
SeverityLow, medium, severe
KindsBugs, security issues, maintainability findings, performance problems
PresentationSide-by-side diffs per file, tags, and a diff viewer in the terminal
WorkflowMark a finding fixed or ignored; clear it (hidden, toggleable)
TraceabilityConversations per task, the files involved, the reasoning behind each check and the tools invoked
"Review the review" is the feature that makes an agentic reviewer auditable: you can open the reasoning behind a finding and see which files it read. For a tool whose selling point is fewer false positives, showing the work is how a reviewer decides whether to trust the remaining ones — and it is exactly what a chat-window agent cannot give you.

The findings themselves came from code already merged and previously reviewed by other tools — which is either a strong result or a sign of over-eager severity, and the video does not try to adjudicate which. It does note that the formatting of the diff panels is tight enough that "they need to run a high-effort OCR on the OCR code", which is the funniest line in a sponsored video this month.

💵 Is $5 a run expensive 7:09

ComparisonCost
One deep review, paid API~$5, 21 minutes, ~1M tokens
One low-effort review of a small diffFractions of a cent to a few cents
20 minutes of a developer's review time~$20 at his back-of-envelope rate
A typical paid reviewer subscription~$25/month
His arithmetic is loose and the conclusion survives anyway. An assumed six-figure salary divided into hourly time against 20 minutes of review is a rough comparison — it ignores that a human reviewer also produces judgement the tool cannot, and that the tool's $5 only replaces the reading, not the deciding. But the ordering is right: if a $5 run catches one real security issue a month, the price is irrelevant; if it produces triage work, any price is too high.
The flag he mentions in passing is the real cost lever: a preview provider option that lets you use an existing chat-plan allowance instead of a metered API key. He calls it "hiding in plain sight" and says it works well. If that is available to you, the $5 number is not the comparison you should be making at all.

📜 Rules and config 10:20

FeatureDetail
Built-in rulesetPer-language rules for security, concurrency, null-pointer and common bugs
Custom rulesA rule.json file — flag hard-coded secrets, require error handling on DB queries, demand CPU and memory limits on Kubernetes resources
Automatic selectionRelevant rules are picked per file; ocr rules check main.go shows which apply
Path controlsInclude and ignore paths, with documented defaults and a finer level of specificity
Config location~/.open-code-review — including session data, which he suggests moving into a keychain
"Rule matched to the file's characteristics" is the mechanism behind the token savings, and it is the same idea as selective context assembly in any good agent harness: do not put every rule in front of the model, put the three that apply to a Go handler. The custom rule file makes that extensible, which is what turns a linter-flavoured tool into something a team can encode its own standards into.

🔁 CI and the PR comment 11:52

PieceDetail
IntegrationA ready-made GitHub Action dropped into the workflows path; GitLab CI, Gerrit and others are documented
TriggerThe /open-code-review command in a pull request conversation
OutputInline comments with severity tags on the exact lines
Result in his testThree issues found on a deliberately flawed push, with the critical ones tagged
RequirementYour provider's API key as a repository secret
Inline, line-level comments are the difference between a review tool and a report generator. A summary comment is read once and ignored; a comment on line 42 of a diff is resolved or argued with, which is the behaviour you want. His conclusion is to run low effort on CI and keep the expensive configuration for when someone asks for it — a sensible split that mirrors how humans triage review depth.

🙋 The audience flag 5:22

"…and apparently, to make it readable, make the audience a human rather than an agent. Great times we live in."
That flag is a small landmark. A review tool now has to ask who is reading the output, because the likely answer for a growing share of runs is "another agent that will fix the findings". The video shows exactly that: a skill hands the session's findings to a coding agent, which works through them in Code Mode and produces a set of changed files for a human to review. The reviewer and the fixer are both machines, and the human moves to approving the result.
The obvious risk is the one nobody in the video names: a reviewer whose output is consumed by an agent that is rewarded for producing fixes creates pressure toward findings that are easy to fix rather than findings that matter. Precision-first design is a partial defence — an over-eager reviewer plus an eager fixer is a loop that will churn a codebase politely, one low-severity comment at a time.

⚖️ Verdict and caveats 13:04

His conclusionAssessment
More thorough than the paid PR agent he previously usedDemonstrated on his own code; one sample
Choosing it over a tool with an older architectureReasonable, though "older architecture" is an impression rather than a measurement
Cheaper than a $25/month subscription at low effortPlausible for occasional use; depends entirely on run volume
Not with a paid metered API at default settingsCorrect — $5 and 21 minutes per PR does not scale
Still recommends the alternative tooThe fairest thing in the video
What the video does not measure, and what would decide the choice: the false-positive rate on his own repositories over a month, and whether developers acted on the comments or learned to scroll past them. Every code review tool dies of the second failure, and a single impressive audit of already-merged code cannot detect it. The tool's own recall trade-off is the honest counterweight — it will miss things, by design, and the teams that suit it are the ones that would rather miss a bug than argue about a false alarm every day.

✅ Claims checked

ClaimVerdictEvidence
Built by a company you have heard ofCorrect — Alibabaalibaba/open-code-review
Open source, one npm install awayCorrectApache-2.0; @alibaba-group/open-code-review
Runs in the CLI and in CICorrectLocal CLI plus GitHub Actions, GitLab CI, GitFlic and Gerrit integrations
Hybrid: deterministic pipeline plus LLM agentCorrectThe repository's own description
Built-in rules for NPE, thread safety, XSS and SQL injectionCorrectStated in the project description
A self-published benchmark puts it on topYes, and he is right to discount it — but the dataset is publicAACR-Bench: 50 repos, 200 PRs, 1,505 issues, on Hugging Face
It uses about a ninth of the tokens of a general-purpose agentCompany figure, mechanically plausibleStated in the repository's benchmark section
Its recall is lower than a general-purpose agent'sCorrect, and stated by the projectAn explicit design trade-off
Default run took 21 minutes and about a million tokensHis measurementMedium effort means two rounds plus risk analysis plus false-positive hunting
That run cost about $5His provider's pricingDepends on the model and provider chosen
Low effort on a single commit took 65 seconds and 33k tokensHis measurementNo findings on already-reviewed code
Effort, audience and no-filter flags existDescribed in the video, not confirmed in the READMELikely in the CLI reference; check ocr --help
An option exists to use an existing chat-plan allowanceHis finding in the config; a preview featureNot documented in the README checked here
Delegation mode lets your own agent do the reviewCorrectHost agent performs analysis; OCR supplies selection, rules, coverage and reporting
Skills exist for Claude Code, Codex, Cursor and Kimi CodeCorrectTwo skills: native review and delegate review
Config lives in a dot folder with session dataCorrect~/.open-code-review; keychain is his suggestion, not a built-in
It found three issues in a test PR and commented inlineDemonstratedSeverity-tagged line comments via the GitHub Action
The paid alternative is an older architectureHis opinionNo measurement offered

Basis note. Built from the full 13:43 video and checked against the repository README, its benchmark section and its documentation index. Where the video describes CLI behaviour not visible in the README, it is labelled as unconfirmed. The video is sponsored by a cloud-storage provider; all affiliate, discount and referral material is excluded and unlinked.

🔑 Key takeaways

  • Review agents fail on noise, not on capability. This one trades recall for precision and says so in its own documentation.
  • A deterministic pipeline around the model beats a skill prompt — file selection, rule matching and coverage become debuggable.
  • Rules matched per file are why the token count drops. Do not show the model every rule; show it the three that apply.
  • Self-published benchmarks deserve suspicion — and a published dataset with annotated ground truth deserves partial credit.
  • Defaults are the thesis at full strength: two rounds plus risk analysis plus false-positive hunting means 21 minutes and a million tokens.
  • Effort, scope and audience are independent multipliers. Low effort on one commit cost 33k tokens and 65 seconds.
  • Set cheap defaults on CI and reserve the expensive configuration for a deliberate pre-release review.
  • Delegation is the pragmatic mode: OCR supplies the pipeline, your agent supplies the analysis and the authentication.
  • Show the work. Per-finding reasoning and the list of files consulted is what lets a human audit an agentic reviewer.
  • Line-level comments are the product. A summary gets skimmed; a comment on line 42 gets resolved.
  • The audience flag marks a shift: review output is increasingly written for the agent that will fix it, not the human who will judge it.
  • Watch out for the polite churn loop — an eager reviewer plus an eager fixer produces many small fixes and possibly no better software.
  • Check the cost lever before the price tag: using an existing plan allowance changes the economics entirely.
  • The deciding metric is not in the video: whether developers act on the comments after a month, or learn to scroll past them.

🔗 Resources

  • The video — DevOps Toolbox, 13:43 (sponsored)
  • alibaba/open-code-review — Apache-2.0, Go, with the benchmark and its caveats
  • AACR-Bench dataset — the ground truth behind the benchmark, published openly
  • This site's earlier deep dives on Code Mode and on the verification gap in agent review, which cover the same question from the harness side
Basis note. The sponsor read, discount codes and referral links were excluded. Repository figures were pulled at publication; CLI flags described only in the video are marked as unconfirmed.

⏱ Timestamp index

0:00Reviewing a 5,000-line agent PR
0:13Built one, then a paid service, then OCR
0:34CLI, CI, exploration, filtering, verification
0:53The benchmark, and the fox
1:13Battle-tested at scale
1:27The benchmark is self-run
1:39Installing
1:43Choosing a provider
1:55Picking a model
2:15Testing the connection
2:22Nothing to review: it reads visible changes
2:40It takes time
2:57Sessions
3:10Scan is a full audit
3:31Delegation
4:02Eight minutes in
4:11The web preview
4:24Looking for an official Pi package
4:36Sixteen minutes, and he investigates
4:53What medium effort actually does
5:15The low-effort rerun
5:22Audience: human, not agent
5:3933,000 tokens, 65 seconds
5:56The 21-minute run's findings
6:14Severity, tagging, side-by-side diffs
6:29The terminal diff viewer
6:47Findings on already-merged code
6:54Session summary and a million tokens
7:09Five dollars for one run
7:17The developer-time comparison
8:09Sponsor segment
8:47Marking findings fixed, ignored or cleared
8:59Conversations and reasoning per check
9:13The official skill
9:26Fixing medium-and-up security issues
9:39Reviewing the fixes
9:57The plan-allowance option
10:20The rule engine
10:36Writing a custom rule
11:00Rules picked per file
11:11Where config lives
11:28Checking which rules apply
11:52Adding it to GitHub Actions
12:03The trigger command
12:24Secrets in the repository
12:48Three issues, inline comments
13:04Verdict: OCR for now, low effort on CI
13:28The alternative he still recommends
☰ View all