Claude Review Diff
claude_review_diffReview code changes by analyzing git diffs with optional base comparison. Claude provides independent, read-only feedback on uncommitted changes or patches since a specified reference.
Instructions
Have Claude review your actual code changes: the server runs read-only git in the given repository and gives Claude the diff plus read access to the surrounding files. Pass the repository root as workspace_dir. By default it reviews uncommitted changes against HEAD; pass base (a branch, tag, or commit) to review everything since that ref (base...HEAD). Use it after implementing something to get an independent cross-model review of the change itself. Claude only advises; it never modifies anything. For reviewing files without git context, use claude_review_files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Branch, tag, or commit to compare as base...HEAD. Omit to review uncommitted changes against HEAD. | |
| depth | No | deep lets Claude delegate read-only exploration to sub-agents for large scopes - slower and several times the usage; requires the machine to enable CLAUDE_CONSULT_CAPABILITY=deep-research. | |
| model | No | Claude model override: opus, sonnet, haiku, or a full model id. Omit for the configured default. | |
| question | No | Optional focus for the diff review. | |
| session_id | No | session_id from a previous result footer to continue that conversation. | |
| workspace_dir | Yes | Repository root to inspect with read-only git commands. |