diff_review
Review a git diff to detect risks, regressions, and breaking changes before merge. Pass the diff text or a git reference for automated analysis.
Instructions
Review a git diff for risks, regressions, and breaking changes.
Pass either diff_text (raw unified diff) OR git_ref + cwd
(the tool runs git diff <ref> in cwd for you). Mutually exclusive.
Use cases:
Pre-merge sanity check on a PR's diff
Spot accidental breaking changes when refactoring
Cross-validate a branch against multiple reviewer agents
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agents": "<agents>"
},
"name": "diff_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agents | Yes | ||
| diff_text | No | ||
| git_ref | No | ||
| cwd | No | ||
| focus | No | ||
| timeout_seconds | No |