Answer: To point /code-review at something other than your current branch, type a target after the effort level and any flags: a pull request number (e.g. `/code-review 1234`), a branch name (e.g. `/code-review main...my-feature`), a file or directory path (e.g. `/code-review src/auth`), or a Git revision range (e.g. `/code-review HEAD~15..HEAD` or `/code-review abc1234^..abc1234`). Status: Confirmed Entry: tool/claude-code/commands-and-shortcuts/code-review-choose-target Revision: 1 Digest: sha256:445c6458a764e139 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:43Z Last changed: 2026-11-13T03:03:43Z Last verified: 2026-11-20T12:19:22Z Next check: 2026-11-21T12:19:22Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of pull request by number | /code-review 1234 | [1] | 2026-11-20 one branch against another | /code-review main...my-feature | [1] | 2026-11-20 file or directory path | /code-review src/auth | [1] | 2026-11-20 last 15 commits | /code-review HEAD~15..HEAD | [1] | 2026-11-20 single commit | /code-review abc1234^..abc1234 | [1] | 2026-11-20 target types | a pull request number, a branch name, a file path, or a Git revision range | [1] | 2026-11-20 Sources: [1] Anthropic. "Review locally with /code-review". https://code.claude.com/docs/en/code-review-local.md Role: primary. Accessed: 2026-11-20T12:19:22Z Quote: "| A pull request by number | `/code-review 1234` |" (Supports: pull request by number) Quote: "| One branch against another | `/code-review main...my-feature` |" (Supports: one branch against another) Quote: "| A file or directory path | `/code-review src/auth` |" (Supports: file or directory path) Quote: "| Your last 15 commits | `/code-review HEAD~15..HEAD` |" (Supports: last 15 commits) Quote: "| A single commit, where `abc1234` is the commit's hash | `/code-review abc1234^..abc1234` |" (Supports: single commit) Quote: "A target can be a pull request number, a branch name, a file path, or a Git revision range." (Supports: target types) Published: 2026-11-20T03:38:29Z Snapshot SHA-256: 092b76076a9fad31f02a4054ae6f601d6b864ffc07030e90ef3991e7e30ec6f5 (captured 2026-11-13T03:03:43Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:03:43Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:19:22Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:19:22Z Last attempt: 2026-11-20T12:19:22Z Notes and limitations: Extracted automatically from a single official source (section "Choose what to review"). Related: https://latestn.com/tool/claude-code/commands-and-shortcuts/code-review-effort-and-flags How do I change the effort level or add flags and extra instructions to Claude Code's /code-review? https://latestn.com/tool/claude-code/commands-and-shortcuts/code-review-fix-flag How do I make Claude Code's /code-review apply the fixes it finds? https://latestn.com/tool/claude-code/commands-and-shortcuts/customize-keyboard-shortcuts How do I customize keyboard shortcuts in Claude Code? https://latestn.com/tool/claude-code/commands-and-shortcuts/available-actions-contexts Which keyboard shortcut contexts and actions are available in Claude Code? https://latestn.com/tool/claude-code/commands-and-shortcuts/chain-multiple-skills How do I chain multiple skills in one message in Claude Code? https://latestn.com/tool/claude-code/commands-and-shortcuts/clear-goal How do I clear or cancel an active goal in Claude Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:03:43Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/commands-and-shortcuts/code-review-choose-target/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/code-review-choose-target POST: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/code-review-choose-target with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/commands-and-shortcuts/code-review-choose-target?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I point Claude Code's /code-review at a pull request, branch, path, or commit range instead of my current branch? Revision 1, last verified 2026-11-20T12:19:22Z. https://latestn.com/tool/claude-code/commands-and-shortcuts/code-review-choose-target (accessed 2026-11-21T10:03:33Z). @misc{LatestN_tool_claude_code_commands_and_shortcuts_code_review_choose_target_r1, title = {How do I point Claude Code's /code-review at a pull request, branch, path, or commit range instead of my current branch?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/commands-and-shortcuts/code-review-choose-target}}, note = {Revision 1; digest sha256:445c6458a764e139; last verified 2026-11-20T12:19:22Z; accessed 2026-11-21T10:03:33Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/commands-and-shortcuts/code-review-choose-target