analyze_change_impact
Calculate blast radius and list direct and transitive dependents before modifying a function, class, or symbol to see which modules may break.
Instructions
Calculates blast radius score (0-100) and identifies all direct and transitive dependent modules across the codebase before modifying a specific function, class, or symbol.
Behavior:
Read-only: AST dependency graph traversal; does not modify source files.
Idempotent: Deterministic impact calculation for any given target symbol.
100% Offline: Local AST analysis without remote services.
Usage Guidelines:
When to use: Run BEFORE renaming, refactoring, or modifying a function or class to determine which caller modules could break.
Sibling Routing: For deep recursive caller/callee trees with visual Mermaid graphs, use 'trace_symbol_call_chain'. For file-level module dependencies, use 'query_module_dependencies'.
Returns: Structured Markdown report with blast radius score, risk tier, direct dependents, and transitive impact paths.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_root | No | Workspace root directory containing target symbols (default: current directory). | . |
| target_symbol | Yes | Name of the function, class, or method to analyze for change blast radius. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |