Check what changed
yof_check_diffScans only changed lines in a diff or working tree for leaked keys and added package risks before you mark work done; code stays local.
Instructions
Scan only the lines that changed: a unified diff you pass in, or, with no diff, the working tree against the last commit plus new untracked files (needs git). Use it after each edit and before you say the work is done; use yof_check for a full pass that also covers unchanged files. Only added lines are checked for keys, and only dependencies added to a changed manifest are looked up on npm, PyPI and OSV; code never leaves this computer. Limits: 1 MB of diff, 300 files and 90 seconds. Returns counts, must_fix_before_done and up to 100 findings with secrets redacted; an empty list means nothing was found in the changed lines.
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": "yof_check_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | A unified diff (git diff format), at most 1 MB and 300 files. Leave it out to let yof ask git for the working tree's changes. | |
| offline | No | true skips the npm, PyPI and OSV lookups, so nothing leaves this computer; package problems are then not reported. Default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| more | No | How many findings were left out of the list, when there are more than 100. | |
| next | Yes | What to do next. | |
| counts | Yes | How many findings of each urgency (all of them, not only the listed ones). | |
| source | Yes | Where the changes came from: the diff passed in, or the working tree. | |
| findings | Yes | At most 100 findings. kind is key or package; value is a prefix plus REDACTED. | |
| lines_added | Yes | How many added lines were scanned. | |
| files_changed | Yes | How many changed files were read. | |
| package_lookups | Yes | "off", or which registries were asked (names and versions only). | |
| must_fix_before_done | Yes | true when at least one fix_now finding is open. |