This repository implements an AI-powered code review CLI tool (`ocr`) that analyzes Git diffs or full file contents using configurable Large Language Models (LLMs) such as Anthropic, OpenAI, and AWS Bedrock. It originates from Alibaba Group's internal code review assistant, validated at massive scale (tens of thousands of developers, millions of code defects). The core workflow involves loading a diff or file set, dispatching review tasks to an LLM agent with tool-use capabilities (file reading, code search, comment posting), and collecting structured review comments with line-level precision. It supports multiple review modes (workspace changes, single commit, branch range), full-file scanning, session persistence with resume capability, token budget management, and output in text, JSON, and SARIF formats. The architecture is a Go CLI with a Cobra command tree, complemented by a VS Code extension (TypeScript/Preact), plugins for Claude Code, OpenCode, and other coding agents, and CI/CD integration examples for GitHub Actions, GitLab, Bitbucket, Gerrit, GitFlic, and Alibaba CodeUp. A local web viewer (`ocr viewer`) and a public documentation/marketing website (React) are also part of the repository. The codebase exhibits strong engineering practices: extensive test coverage (unit, integration, manual e2e), clean package separation, thread-safe components, and careful error handling (retry observers, host guard for the viewer). Key reusable patterns include a retry collector for LLM API calls, a state-machine-based run manifest builder for coverage tracking, an abstract file reader for workspace vs git-ref reads, and a worker pool with per-key async processing.