DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to review your branch with ocr before opening a pull request with Open Code Review

Install the ocr CLI, pick a model and get line-level review comments on your uncommitted or branch changes.

Short answer: Run npm install -g @alibaba-group/open-code-review; then 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. All steps.

Credentials. 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.

Who it is forA developer who wants a second pair of eyes on a diff before a human reviewer sees it.

The problemReviewing your own changes is slow, and general agents tend to skip files on larger changesets.

The outcomeStructured review comments pointing at exact lines in your changed files.

What you need first

  • 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

Steps

  1. Run npm install -g @alibaba-group/open-code-review
  2. Run ocr config provider to select a provider and enter your API key
  3. Run ocr config model to pick a model for the active provider
  4. In your project, run ocr review to review all staged, unstaged and untracked changes
  5. Run ocr review --from main --to feature-branch to review a whole branch since it diverged from main
  6. Run ocr review --format json --output result.json if you want the results saved to a file

Prompt for your agent

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.

Caveat. The README says you must configure an LLM before reviewing, unless you use Delegation Mode.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for alibaba/open-code-review and "Review your branch with ocr before opening a pull request"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer