Diff two revisions
graph_diffCompare two git revisions or directories to identify removed or unexported symbols still referenced elsewhere, files that lost inbound edges, and node/edge counts.
Instructions
Index two workspace states and answer "what breaks if we ship head?": symbols that are removed or no longer exported while other files still referenced them (with importer citations), files that lost their last inbound edge, and node/edge counts. Each side is a git revision (branch, tag, SHA — verified, no shell) or a directory path.
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": {
"base": "<base>",
"head": "<head>"
},
"name": "graph_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | Yes | Base side: git rev (e.g. "main") or a directory path. | |
| head | Yes | Head side: git rev (e.g. "HEAD" or a PR SHA) or a directory path. | |
| limit | No | Cap per list (default 50; counts stay exact). | |
| engine | No | Extraction engine. Default: ast. |