Check staged or working diff
diffgate_check_stagedAnalyze staged or working-tree git changes for DiffGate findings, returning tier, counts, and verdict for code review.
Instructions
Check all staged (or working-tree) changes in a git repo for DiffGate findings. Returns overall tier, counts, and per-file findings across the whole diff, plus a verdict block (the agent autonomy ladder: pass/review/blocked overall, with a rung — block/escalate/autofix/advisory — per finding) so you can decide whether to surface the diff without reimplementing the rules.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "diffgate_check_staged"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repo root. Defaults to process.cwd(). | |
| mode | No | Check staged-only or all working-tree changes. Default: working. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | Yes | Overall risk tier across the diff. | |
| files | Yes | Per-file review results with findings. | |
| verdict | No | Agent autonomy ladder: pass/review/blocked, with a rung per finding. | |
| _diffgate | No | Capability hint: which layers (core/graph/llm) produced this result. |