The package installed; provider setup stopped at the terminal
Our November run installed the published package in 6.5 seconds, then provider setup failed because /dev/tty was unavailable. Use Alibaba's Open Code Review if you want configurable review assistance and can own the provider configuration, scope rules, and failure handling. Skip it if you need a ready-made mandatory merge gate: snemetz at Wisk.aero reports missing features needed for gating.
OCR is a command-line tool that reads changes, gathers surrounding code, and asks a model for line-level findings. Its attraction is the part you can inspect before paying for a review: preview lists selected files and exclusion reasons without running the model. Start there. A clean-looking report is useful only after you know which changes it covered.
Alibaba's repository and npm package identify the right OCR
Alibaba's official open-code-review GitHub repository is alibaba/open-code-review, and its npm package is @alibaba-group/open-code-review. Our installed CLI printed that repository URL with version v1.14.0. Those identifiers matter because another Open Code Review project uses @open-code-review/cli, ocr init, and ocr dashboard. Copying that project's onboarding into an Alibaba guide would send you down the wrong path.
The English CLI reference documents workspace, commit, and branch-range reviews, plus ocr scan for complete files. The official skill distinguishes native review from open-code-review-delegate, which uses your coding agent's model. Decide which mode you want before configuring credentials. A host-agent login and an OCR provider configuration are different things.
What people use open-code-review for
Named users report local review assistance and CI suggestions, with different policies for acting on findings. Issue #1020 is a useful adoption record because contributors describe their actual workflows rather than simply endorsing the project.
| Who | What they use it for | Reported outcome or boundary |
|---|---|---|
| Qiyuanqiii, China West Normal University | Incremental changes in Prayu, a Go, React/TypeScript, and Rust agent workbench | Developer-side assistance around runtime permissions, persistence, recovery, and desktop behavior |
| snemetz, Wisk.aero | Suggestions on merge requests through CI | Initial proof of concept, limited rollout, and missing features needed for a gate |
| zhangheng2022, MeetTrace | Required local reviews for a Flutter/Dart application targeting Android, iOS, and Windows | Previews scope, adds product context, and requires Critical and High findings to be resolved before PR readiness |
| xwil1, Wenzhou Medical University | Local development with Codex and Claude Code | Reports using OCR alongside existing coding agents |
| moltar, an unnamed UK company | An official company review skill combining Claude, Codex, and OCR | Reports using OCR with three models |
MeetTrace supplies the most actionable pattern: preview first, explain the product constraints, then handle findings according to a stated policy. Wisk's report answers a different question. Posting suggestions in CI and deciding whether a merge must stop are separate jobs. If your immediate problem is getting a second opinion before handing a change to a colleague, the local workflows are closer to your needs than a promise of unattended approval.
What happened when we ran it
Our November 21 run installed v1.14.0 in 6.5 seconds, then the README's ocr config provider command exited 1 with a terminal error. The run used checkout 39515dca6161 in a fresh unprivileged container with 2 CPUs, 4 GB RAM, no published ports, and no secrets. The installed release identified itself separately as v1.14.0, commit d29ca204, linux/amd64.
| November step | What came back | Meaning |
|---|---|---|
| Clone | Completed in 2 seconds | Checkout obtained |
| Published npm package | v1.14.0, 62.2 MB installed, 6.5 seconds | This distribution installed successfully |
| Version command | Exit 0 in 0.1 seconds | CLI executed and identified its release |
| Help command | Exit 0 in 0.1 seconds | CLI printed command help |
| Provider setup | Exit 1 in 0.1 seconds | Interactive setup could not open /dev/tty |
| Teardown | ok | Sandbox cleanup completed |
The installation worked, and both version and help commands ran. Next came the Quick Start's provider selector. Instead of opening its text interface, it returned Error: TUI error: bubbletea: error opening TTY: bubbletea: could not open TTY: open /dev/tty: no such device or address. That failure is the recorded finding. A TTY is the terminal device an interactive command expects; this container had none available. The failure happened before a provider could be configured through that interface.
The older source-checkout run failed earlier. On October 8, at commit 182898c, npm install exited 1 after 8 seconds. Its installer detected linux/amd64, read version 0.0.0 from package.json, and requested https://github.com/alibaba/open-code-review/releases/download/v0.0.0/opencodereview-linux-amd64. The server answered HTTP 404 for that download. That log identifies the failed request, without explaining why the checkout contained that version.
| October source-checkout observation | Recorded result |
|---|---|
| Sandbox configuration | 3 CPUs, 8 GB RAM, image label lab-node:22 |
| Checkout | 956 files, approximately 159,965 source lines, 14.1 MB |
| Install | Failed, exit 1, 8 seconds |
| Failing command | node scripts/install.js |
| Repository scan | 12 CI workflow files, no Dockerfile, no tests directory detected |
The source-install failure and the published-package result are two different installation paths at different dates. The November package installation succeeded; its later configuration error must not be rewritten as a download failure. The sandbox image labels describe configuration, not independently recorded Node.js or operating-system versions.
Where people get stuck: scope, rules, and incomplete reports
A zero-findings report can follow a zero-files review: issue #209 reports exactly that on v1.5.1, even though git show showed changes. The maintainer asked for preview output and checked whether Git and OCR ran from the same directory. The discussion ends with an offer to investigate, rather than a demonstrated repair.
| Symptom and source | Useful response | Resolution shown |
|---|---|---|
| #209: some commits select no changed files | Compare git show with ocr review --commit <sha> --preview in the same repository |
Closed thread, no confirmed cause or fix |
| vibetools: test files appear under default exclusions | Add appropriate test include patterns and inspect preview output | Documented configuration workaround |
| #40: need full-file review without manufacturing a diff | Use ocr scan |
Maintainer says full scans shipped in v1.6.0 and work in non-Git directories |
| #1177: several matching user rules do not stack | Generate one effective rule file and commit it for review | Built-in rule arrays explicitly declined |
| Official skill: agent output can be truncated | Save with --output and inspect the complete file |
Older CLIs can reject that flag |
Rule matching deserves a concrete example. In #1177's Kotlin configuration, three entries match the same files: common rules, Kotlin rules, and Android domain rules. Only the first matching user rule applies. Setting merge_system_rule: true adds the system rule to that winning entry; it doesn't add the other two user entries. A maintainer declined the proposed array syntax, and the requester accepted generating a committed effective rule as the alternative.
Language coverage has another split. A Swift contributor in #470 says .swift is accepted but falls back to default.md without a dedicated Swift rubric. The tracking issue is open. You need to know both whether your file gets selected and which instructions the reviewer receives.
Large reviews need a budget before they need more time
The author of issue #409 reports a failed review covering about 308 files and consuming about 90.4 million tokens. The caller then fell back to another reviewer. The author's concern is practical: a later successful result can hide the cost already incurred by the failed attempt. These are the reporter's figures from a private merge request, not our measurements.
The CLI reference documents --max-tokens-budget, effort levels, concurrency, tool-call limits, and per-subtask timeouts. Its total-token budget defaults to unlimited. When the budget has been exceeded, a subtask gets a final submission round and further subtasks stop being dispatched. Treat that control as a way to constrain execution, rather than an exact billing ceiling.
For your first large change, choose a bounded Git range and inspect its preview before enabling model calls. Set a token budget you can afford, reduce concurrency if your provider rate-limits, and retain failed-attempt usage alongside fallback usage. Extending a timeout alone gives an expensive attempt more room to continue. The official skill's default medium effort permits 30 minutes per review group, derived from its base timeout and review rounds.
A local CLI still sends code to the selected model
OCR's help output says it sends Git diffs to a configurable LLM service. Running the executable on your laptop gives you control over the client, while the endpoint determines where model requests go. Your organization's source-code policy should determine that endpoint before the first review.
The CLI reference also warns that evidence and logs can contain source text. Its analysis trace lives under the user's OCR sessions directory, alongside review information. Protect those files when collecting CI artifacts or asking for support. A session export and the underlying execution trace are different artifacts; the reference says the analysis trace stays out of HTML exports.
The MCP guide also describes OCR as a Model Context Protocol client, the interface agents use to call outside tools. It warns that OCR does not enforce read-only behavior on those tools. Keep the tool allowlist small and review each server's permissions before adding it to a review workflow.
English documentation is available through the CLI reference, and the official skill documents English as the default comment language. Several substantive rule and troubleshooting discussions are in Chinese, including #209 and #1177. If you depend on those discussions for a configuration decision, distinguish the original reporter's proposal from the maintainer's eventual answer.
Open-code-review vs Claude Code, Copilot, CodeRabbit, and Greptile
OCR offers explicit scope and rule controls; using your existing reviewer directly saves you another review configuration to maintain. The official skill separates native OCR's provider from host-agent delegation, so those two OCR workflows deserve separate trials.
| Choice | What the research actually supports | Choose it when |
|---|---|---|
| Native OCR | Its review pipeline uses a separately configured model provider | You want OCR's own pipeline and control of its provider configuration |
| open-code-review-delegate | Uses the host agent's model without separate OCR credentials | You want to use an existing coding-agent setup |
| Claude Code directly | The project's benchmark gives Claude Code higher recall, while favoring OCR on precision and F1 | You value a broader sweep and will triage the findings yourself |
| GitHub Copilot review | A Yangzhou University user reports replacing Copilot in private GitHub repositories with OCR | Compare your actual private-repository workflow before changing tools |
| CodeRabbit or Greptile | Flowtivity frames hosted convenience against OCR's deployment and endpoint control | You prefer evaluating a hosted review service over operating a CLI integration |
Precision means the share of reported findings that are real defects. Recall means the share of real defects the reviewer finds. The project's benchmark deliberately trades recall for precision. That trade can suit you if noisy comments are causing developers to ignore the bot, but a shorter report cannot replace tests or human review of a sensitive change.
What the other reviews get wrong
Flowtivity's article demonstrates file selection and rule matching, rather than completed detection of the vulnerabilities it planted. Its Go and React fixture preview selects the files and loads security rules. Reading that passage as a successful vulnerability-detection test adds an outcome the walkthrough doesn't show. Its benchmark figures are attributed to the project, and should stay attributed when used to compare reviewers.
Identity is the other avoidable error. For example, SkillsLLM's “opencode vs open-code-review” page labels the latter spencermarx. That comparison cannot establish Alibaba OCR's dashboard, runtime requirements, or workflow. The spencermarx README describes its own product. Search for the full repository name before copying an installation command.
Outdated claims, corrected
The CLI reference contradicts parts of the fork README, the official skills, and the vibetools workflow. Prefer the specific documented command behavior over a copied setup recipe, especially when the two disagree about which files or provider a review will use.
The last contradiction also appears within the CLI reference's workspace explanation: it describes the combined changes and then suggests selective staging. Use a commit or explicit range when that is the target you intend to review, and inspect the preview for that exact invocation.
Questions people ask
Alibaba's official repository is github.com/alibaba/open-code-review; the installed CLI prints the same URL.
Where is Alibaba's official open-code-review GitHub repository?
Use alibaba/open-code-review. The npm package is @alibaba-group/open-code-review, which is the package our November run installed. The similarly named spencermarx repository is a separate project.
What do Reddit users report about open-code-review?
PoppaBear1950 on r/hermesagent describes a remote workflow combining Hermes, a tool called open-code-review, and DeepSeek execution. Their command uses the unscoped open-code-review package. Don't import its AST-processing or log-sanitizing claims into an Alibaba OCR setup. The r/devopsish post shares the Alibaba repository announcement.
Can I use open-code-review-delegate without a separate API key?
Yes: the official skill directs you to delegation to use the host agent's model without separate OCR credentials. You still need the OCR CLI and the host-agent setup. Native OCR instead requires its own supported provider configuration.
Is Alibaba's code review agent useful in practice?
Users report concrete local and CI workflows in #1020, including MeetTrace's required local reviews and Wisk's suggestion posting. Those reports support evaluating it as assistance for an existing review process. They give you workflows to copy, rather than a measured defect-detection rate for your code.
How do I install OCR locally and connect it to Claude Code or OpenCode?
The official skill names npm install -g @alibaba-group/open-code-review. For native mode, configure the provider and model, then run ocr llm test. For host-agent mode, its troubleshooting guidance gives npx skills add alibaba/open-code-review --skill open-code-review-delegate. Our noninteractive provider selector failed opening /dev/tty, so use a real terminal for the interactive selector or follow the documented noninteractive configuration path.
How should I review code when AI writes faster than I can read?
MeetTrace's reported sequence is preview, product context, agent-assisted review, then resolving Critical and High findings. That is a useful starting policy. Keep your existing tests and assign a human to judge whether each suggested fix preserves the intended behavior.
Who is Open Code Review for?
OCR suits developers who want explicit review scope and configurable rules alongside their coding agents. That is the local-assistant role Prayu's author and xwil1 describe. Teams expecting unattended merge approval should first resolve the failure-policy and coverage questions their own integration raises.
Why do general-purpose agents struggle with structured code review?
Alibaba's project description names incomplete coverage, drifting comment locations, and prompt-sensitive quality. The video “Open Code Review: AI Code Review Architecture Deep Dive” presents the same architectural argument. Treat it as the rationale for deterministic selection and rule matching, rather than proof that every competing agent fails.
Will an OCR-based agent workflow work in a mostly remote setup?
PoppaBear1950 says their tiered workflow fits remote setups, but its package identity differs from Alibaba's documented package. For Alibaba OCR, choose native or delegation mode according to where your agent and provider run, using the official skill's distinction.
Who is actually using Open Code Review, and for which workflows?
The #1020 contributors include Prayu's author, MeetTrace, Wisk.aero, and university developers. They describe incremental local reviews, a required PR preparation step, and CI suggestions. Moltar also reports a company skill combining multiple review tools and models.
Can OCR support SVN diffs and merge-triggered reviews?
The maintainer's answer in #40 points SVN users to ocr scan for complete files. It explains that Git-dependent diff, search, and branch-comparison behavior would need substantial adaptation. A separate SVN request remains open in #1017.
Can I scan an entire codebase without a Git diff?
Yes: #40's maintainer says full scans arrived in v1.6.0 and ocr scan supports non-Git directories. Review the selected files before expanding to a whole codebase; scan mode still sends work through a model-backed review process.
What we have not tested yet
Our runs reached installation and CLI setup, not a completed code review. We have not measured defect detection, false positives, review latency, model cost, native-versus-delegation quality, successful provider configuration, or unattended merge gating. The October block contains no build or test outcome. Detecting no tests directory is not proof that the repository has no tests.
The November run's checkout and installed binary have different commit identifiers. It exercised the published v1.14.0 package, not a binary built from checkout 39515dca6161. Neither sandbox image label establishes the actual runtime version. A follow-up should record the full toolchain and repeat the provider step with terminal access or documented noninteractive configuration.
The Flowtivity walkthrough stops at scope and rule matching, and the project benchmark is a project-reported comparison. We have not reproduced either benchmark quality or large-review cost behavior. The video “Stop Paying For Code Reviews. Use This Instead” describes a session list showing an aborted process while the review session looks fine; its transcript is not a checked defect-detection result.
Native mode and delegation use different model arrangements, and no controlled comparison here demonstrates equal accuracy or token usage. The Reddit remote-workflow attribution remains uncertain because its package command differs. Our X search includes Tuminha_dds summarizing the hybrid design and delegation option, rather than presenting a controlled trial. User comments, including MeetTrace's policy and Wisk's early rollout, are self-reports, not independent audits.
We have not inspected provider traffic, session-file permissions, retention, Windows or macOS behavior, or specialist rules across languages. The next useful trial is a small change with known defects: record selected files, rules applied, completed files, actual findings, failed attempts, and total provider usage. Decide whether to expand from that result.


