open-code-review: add AI-powered code review plugin#138
Conversation
Add the open-code-review plugin wrapping the `ocr` CLI from alibaba/open-code-review. Provides a Cursor skill for reviewing workspace changes, branch ranges, and single commits with concurrent per-file analysis and context-aware review.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 6 potential issues.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit 760db85. Configure here.
| | "review my changes" / "review the working copy" | `ocr review --audience agent -b "context"` | | ||
| | "review this PR" / "review feature branch" | `ocr review --audience agent -b "context" --from main --to <branch>` | | ||
| | "review commit abc123" | `ocr review --audience agent -b "context" --commit abc123` | | ||
| | "what would be reviewed?" (dry-run) | `ocr review --preview` | |
There was a problem hiding this comment.
Preview omits agent audience
Low Severity · Logic Bug
The dry-run command ocr review --preview in the workflow table omits the --audience agent flag. This contradicts the instruction to always use this flag to suppress progress UI and ensure agent-parseable output, potentially leading to polluted agent transcripts.
Reviewed by Cursor Bugbot for commit 760db85. Configure here.
Address 5 issues flagged by Cursor BugBot on PR cursor#138: - Align Low priority handling: Step 3 now says "discard silently", consistent with Output Format - Mispositioned comment fixes now respect Step 4 permission check - Rename "high-confidence" to "high-priority" in README to match SKILL.md classification - Replace hardcoded `main` with `<base-branch>` and instruct agent to resolve actual PR base - Clarify `<branch>` placeholder resolution via git/PR metadata Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thanks for the thorough review from BugBot! I've addressed 5 of the 6 flagged issues in commit c368619:
The 6th issue (preview command missing Looking forward to getting this merged! 🙏 |


Summary
open-code-reviewplugin wrapping theocrCLI — an open-source, self-hosted AI code review toolmarketplace.jsonWhy this complements BugBot
Open Code Review (OCR) serves a different segment than BugBot and is complementary, not competitive:
.opencodereview/rule.jsonwith glob-based file matching and mergeable system rulesOCR is designed for teams that need full control over their review pipeline — choosing their own LLM, keeping code on-premises, and defining project-specific review rules. Users who are happy with BugBot's managed experience will continue to use it; OCR gives Cursor users another option when self-hosting or customization is a requirement.
Plugin structure
What it does
The skill invokes
ocr review --audience agentto perform line-level code review on Git diffs. It:ocrCLI + LLM config)ocrCLIUsage examples
Test plan
/add-plugin open-code-reviewocrCLI detection and LLM connectivity checkNote
Low Risk
Additive plugin metadata and agent skill docs only; no changes to core product code paths.
Overview
Adds a new open-code-review marketplace plugin (Apache-2.0) that wires Cursor to the self-hosted
ocrCLI for AI review of Git diffs.Marketplace: Registers the plugin in
marketplace.jsonso it can be installed with/add-plugin open-code-review.Plugin package: Ships
plugin.json, README, CHANGELOG, LICENSE, and theopen-code-reviewskill. The skill documents prerequisite checks (ocrinstall,ocr llm test), runsocr review --audience agentwith optional--background, maps user intent to workspace / branch-range / commit / preview modes, classifies findings (High/Medium/Low), and optionally applies fixes only when the user asks. It also documents.opencodereview/rule.jsonand related OCR flags.No existing plugins or runtime code are modified beyond the marketplace listing.
Reviewed by Cursor Bugbot for commit c368619. Bugbot is set up for automated code reviews on this repo. Configure here.