sqo_budgeted_diff
Compress working-tree git diffs into a strict token budget by stripping lockfiles, sourcemaps, and generated bundles before sending to AI agents.
Instructions
Compress working-tree git diff into a strict token ceiling, automatically stripping lockfiles, sourcemaps, and generated bundles.
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": {
"workspace": "<workspace>"
},
"name": "sqo_budgeted_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| staged | No | Inspect staged changes only. | |
| workspace | Yes | Git repository path. | |
| max_tokens | No | Maximum token budget (default: 2000). |