review_diff
Review a code diff for compliance with repository conventions, using RAG over indexed code and docs. Automatically computes git diff if not provided.
Instructions
Review a diff against this repo's own conventions, grounded via RAG over its
indexed code/docs/config (run index_repo first). If diff is omitted, computes
git diff base_ref..head_ref in repo_path.
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": {
"repo_path": "<repo_path>"
},
"name": "review_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | ||
| base_ref | No | HEAD~1 | |
| head_ref | No | HEAD | |
| repo_path | Yes | ||
| max_findings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| findings | Yes | ||
| trace_id | Yes | ||
| hunks_reviewed | Yes | ||
| duration_seconds | Yes | ||
| findings_suppressed_by_critic | Yes |