{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "alibaba-open-code-review--review-your-changes-before-a-pull-request",
 "repo": "alibaba/open-code-review",
 "repo_url": "https://github.com/alibaba/open-code-review",
 "repo_slug": "alibaba-open-code-review",
 "title": "Review your branch with ocr before opening a pull request",
 "page_title": "How to review your branch with ocr before opening a pull request with Open Code Review",
 "summary": "Install the ocr CLI, pick a model and get line-level review comments on your uncommitted or branch changes.",
 "who": "A developer who wants a second pair of eyes on a diff before a human reviewer sees it.",
 "problem": "Reviewing your own changes is slow, and general agents tend to skip files on larger changesets.",
 "outcome": "Structured review comments pointing at exact lines in your changed files.",
 "steps": [
  "Run `npm install -g @alibaba-group/open-code-review`",
  "Run `ocr config provider` to select a provider and enter your API key",
  "Run `ocr config model` to pick a model for the active provider",
  "In your project, run `ocr review` to review all staged, unstaged and untracked changes",
  "Run `ocr review --from main --to feature-branch` to review a whole branch since it diverged from main",
  "Run `ocr review --format json --output result.json` if you want the results saved to a file"
 ],
 "agent_prompt": "Install alibaba/open-code-review with `npm install -g @alibaba-group/open-code-review`, then run `ocr review` in this repository and summarize every comment it produces, grouped by file. Do not change any code until I choose which comments to fix.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The README says you must configure an LLM before reviewing, unless you use Delegation Mode.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "go",
 "requirements": [
  "Git 2.41 or newer",
  "Node.js and npm to install the CLI",
  "An API key for an LLM provider, unless you use Delegation Mode"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Review sends your changed files to the LLM provider you configure, so use a provider you trust with your code and keep the API key private."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/alibaba-open-code-review/review-your-changes-before-a-pull-request/",
 "md": "https://dedupedai.com/use-cases/alibaba-open-code-review/review-your-changes-before-a-pull-request/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/alibaba-open-code-review--review-your-changes-before-a-pull-request.json",
 "api_version": "v1"
}
