---
name: open-code-review
description: Review scoped working-tree changes, commits or branch diffs with Open Code Review. Prefer host-model delegation for file selection, rule resolution and explicit coverage; use OCR's configured provider only when that execution mode is authorized.
license: Apache-2.0
---
# Open Code Review — DevFlow Kit
Use [review coordination](../devflow/references/review-security.md) for scope, handoffs and evidence. These integration rules apply before the upstream guides in both direct and router invocation.
## Select the execution mode
1. Resolve the requested repository, revision/range or working-tree scope, dirty state, business requirements and output location. A review request is not permission to fix, publish comments, configure CI or contact a new model provider. Reuse existing authorization for fixes and delivery when already given.
2. Check the available `ocr` executable/version and relevant `--help` capabilities. The CLI is an optional external dependency, not shipped in this capsule. Installation does not install or upgrade it, alter personal settings or request credentials.
3. Prefer [host-model delegation](references/delegate-guide.md): OCR supplies deterministic preview and rules; the current harness performs the review. `delegate` here does not require subagents or a separate OCR model account. Work sequentially if needed.
4. Use the [provider-driven guide](references/cli-guide.md) only when the configured provider, code transfer and invocation are within the user's authorized scope. Never print keys, call credential tests merely for discovery, or infer new endpoint authorization from existing credentials. Use requested budgets; do not invent a model choice or spending cap.
If the CLI is missing or incompatible, report the exact missing capability. A host-native review can continue if useful, but label it as a fallback and do not claim OCR selection/rules/coverage ran. Do not silently install globally or use an unpinned `latest` upgrade. Package setup is a separate action when requested or already authorized.
## Preview before review
For host delegation, from the target repository:
```text
ocr delegate preview --format json --from