{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "alibaba-open-code-review--let-your-coding-agent-do-the-review-with-delegation-mode",
 "repo": "alibaba/open-code-review",
 "repo_url": "https://github.com/alibaba/open-code-review",
 "repo_slug": "alibaba-open-code-review",
 "title": "Use delegation mode so your coding agent does the review",
 "page_title": "How to use delegation mode so your coding agent does the review with Open Code Review",
 "summary": "Let ocr pick the files and rules while your own agent supplies the model, with no separate API key.",
 "who": "A developer already paying for a coding agent who does not want to configure another provider.",
 "problem": "Setting up another model endpoint and key just for reviews is extra work.",
 "outcome": "A review run by your coding agent's own LLM, with ocr handling file selection and rule resolution.",
 "steps": [
  "Install the CLI with `npm install -g @alibaba-group/open-code-review`",
  "Run `ocr delegate preview` to see what will be reviewed",
  "Run `ocr delegate rule src/main.go src/handler.go` with your own file paths to resolve the rules for those files",
  "Have your agent review each file against those rules",
  "For Claude Code, Codex or Cursor, install the matching plugin described in the plugins/open-code-review README"
 ],
 "agent_prompt": "Install alibaba/open-code-review, run `ocr delegate preview`, then run `ocr delegate rule <files>` for the files it lists and review them yourself against the rules it returns. Report findings by file and line.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Intermediate",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "Plugin install steps live in the repository's plugins README rather than the main README, so read them for your agent.",
 "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": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/alibaba-open-code-review/let-your-coding-agent-do-the-review-with-delegation-mode/",
 "md": "https://dedupedai.com/use-cases/alibaba-open-code-review/let-your-coding-agent-do-the-review-with-delegation-mode/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--let-your-coding-agent-do-the-review-with-delegation-mode.json",
 "api_version": "v1"
}
