hotspots
Rank files by risk from git churn and call-graph centrality to identify where defects are likely and refactoring most valuable.
Instructions
Rank files by architectural RISK = git churn × call-graph centrality. A file changed often (git history) AND depended on heavily (inbound call edges) is where defects are most likely and refactoring most valuable — high churn alone is just active code, high centrality alone is stable infrastructure, their product isolates the risky core. Deterministic, no model. Use to pick refactor targets, focus review, or find where a change is most dangerous; inspect the top rows with context/change_kit and impact.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name | |
| top_k | No | Max hotspot files to return (default 20) | |
| format | No | Response text encoding: toon (default) | json | |
| commits | No | How many recent commits to scan for churn (default 1500) |