Impact analysis — what depends on this file
impact_analysisIdentify all files that depend on a given file, directly or transitively, to reveal the blast radius of a code change.
Instructions
Find every file that transitively depends on a given file, directly or indirectly, up to a depth limit. Answers 'what could break if I change this file' — the main practical use case for an AI agent about to edit code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Relative file path to analyze | |
| max_depth | No | How many hops to follow (default 5) | |
| graph_path | No | Path to a previously saved graph (default: .codegraph/graph.json) |