smart_diff
Generates a token-budgeted semantic Git diff that filters noise, outlines AST changes, and detects leaked secrets before AI agents consume it.
Instructions
Generates a token-budgeted, noise-filtered semantic git diff with AST change outlines and secret leak detection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_tokens | No | Strict token ceiling for the diff output (default: 4000). | |
| target_ref | No | Git revision or branch to diff against (e.g. 'HEAD~1', 'origin/main'). Defaults to working tree diff. | |
| staged_only | No | Whether to only diff staged files (git diff --cached). | |
| filter_noise | No | Whether to automatically discard lockfiles and generated assets (default: true). | |
| scan_secrets | No | Whether to scan for high-entropy credentials and API keys (default: true). |