impact
Analyzes the impact of changes to a specific file or symbol by identifying dependencies and computing change propagation.
Usage
infiniloom impact [PATH] [TARGET] [OPTIONS]
Description
The impact command identifies a target file or symbol, analyzes dependencies and dependents, and computes an impact score. Useful for understanding code change implications before making modifications.
Options
--symbol <NAME>
Analyze a specific symbol
--call-graph
Show visual call graph
--json
Output results in JSON format
-d, --depth <LEVEL>
Analysis depth: 1 (5 items), 2 (10 items), 3 (20 items) (default: 2)
-m, --model <MODEL>
Target model for token counting (default: claude)
-i, --include <PATTERN>
Include only files matching glob pattern (repeatable)
-e, --exclude <PATTERN>
Exclude files/directories matching pattern (repeatable)
--include-tests
Include test files in analysis
-v, --verbose
Show detailed progress
Examples
# Analyze file impact
infiniloom impact src/core/parser.rs
# Analyze symbol impact
infiniloom impact --symbol "parse_expression"
# Get JSON output for CI/CD
infiniloom impact src/api.rs --json
# Show call graph
infiniloom impact src/main.rs --call-graph
Impact Levels
- CRITICAL — Entry points or 50+ dependents
- HIGH — Public API or 10-50 dependents
- MEDIUM — Internal module or 3-10 dependents
- LOW — Leaf node or <3 dependents