dependency_impact
Find every usage of a function, class, or variable in a local repository to assess the blast radius of a change before merge review.
Instructions
Find everywhere a symbol is used in a checked-out repo (the blast radius).
The highest-value review signal: before you approve a change to a function, class, or constant, see who depends on it. Uses ripgrep for fast candidate finding, then classifies each usage via tree-sitter AST as call / import / definition / type_reference. Filesystem-based — point it at a LOCAL clone of the repo the MR belongs to, not the MR URL.
Args: symbol: Function/class/variable name to trace. root: Absolute path to the local repository clone. file_glob: Optional glob to narrow the search (e.g. ".py", "src/**/.ts"). whole_word: Match whole words only (default True). max_results: Cap on references returned (default 50).
Returns: {symbol, root, total_references, references[{file_path, line, context, usage_type}], by_type{...}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| symbol | Yes | ||
| file_glob | No | ||
| whole_word | No | ||
| max_results | No |