{
 "schema_version": 1,
 "generated": "2026-10-31",
 "id": "alibaba-open-code-review--audit-an-unfamiliar-codebase-with-ocr-scan",
 "repo": "alibaba/open-code-review",
 "repo_url": "https://github.com/alibaba/open-code-review",
 "repo_slug": "alibaba-open-code-review",
 "title": "Audit an unfamiliar codebase with ocr scan",
 "page_title": "How to audit an unfamiliar codebase with ocr scan with Open Code Review",
 "summary": "Review whole files or a directory when there is no diff to look at.",
 "who": "A developer who inherited a repository and wants a first pass at its defects.",
 "problem": "A diff review is no help when the code you worry about has no recent changes.",
 "outcome": "Review comments covering whole files or the directory you point it at.",
 "steps": [
  "Install the CLI with `npm install -g @alibaba-group/open-code-review` and configure a model with `ocr config provider` and `ocr config model`",
  "Run `ocr scan` in the repository to scan the entire repository",
  "Run `ocr scan --path internal/agent` to scan just a directory or specific files",
  "If a scan is interrupted, run `ocr scan --resume`",
  "Run `ocr session list` to see earlier sessions"
 ],
 "agent_prompt": "Using alibaba/open-code-review, run `ocr scan --path <directory>` on this repository and list the most serious findings first, with file and line. Resume with `ocr scan --resume` if it is interrupted.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "20 minutes",
 "basis": "readme",
 "caveat": "The README notes recall is lower than general-purpose agents by design, favoring precision over noise.",
 "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": "A full scan sends many files to your LLM provider, which can cost tokens and expose code, so scope it with --path first."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/alibaba-open-code-review/audit-an-unfamiliar-codebase-with-ocr-scan/",
 "md": "https://dedupedai.com/use-cases/alibaba-open-code-review/audit-an-unfamiliar-codebase-with-ocr-scan/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--audit-an-unfamiliar-codebase-with-ocr-scan.json",
 "api_version": "v1"
}
