veto_pre_commit
Scan staged changes for secrets and run code review in parallel before commit. Block the commit if any secret is found; otherwise return a pass, warn, or blocked verdict.
Instructions
Pre-commit gate: runs secrets scan (hard block on any finding) + code review in parallel on staged changes. Faster than veto_full_review — tuned for commit-time validation. Returns a blocked/warn/pass verdict.
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": {
"project_dir": "<project_dir>"
},
"name": "veto_pre_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Optional: branch name or additional context. | |
| project_dir | Yes | Absolute path to project. Reads staged changes (git diff --cached) automatically. | |
| agent_outputs | No | Phase 2 responses from the host AI (JSON). Pass this back when prompted by the server to complete the agentic loop. |