Find Divergence
find_divergenceIdentify functions that break sibling call patterns, flagging likely missed calls as review hints for your codebase.
Instructions
Peer divergence across a directory: functions that break a call pattern their siblings follow (peers calling X also call Y, this one does not). A review hint, not a verified bug list; silent on a consistent codebase, and that silence is the answer. Answers: functions that break a pattern their siblings follow; likely missed calls, as a review hint. In your shell: sct --help (if sct is not on PATH, "/app/.venv/bin/python" -m scantool.cli replaces sct).
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": {
"directory": "<directory>"
},
"name": "find_divergence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | Root directory to audit | |
| max_findings | No | Cap on the number of findings shown (default: 20) | |
| respect_gitignore | No | Respect .gitignore patterns (default: True) |