Change Hotspots
hotspotsIdentify files with high change frequency to prioritize refactoring and test coverage in bug-dense areas.
Instructions
Find files that change most frequently. High change frequency correlates with defect density — the top 4% of files by change frequency typically contain 50%+ of bugs. Use this to identify files that need refactoring, better test coverage, or architectural attention. NOTE: If the server was not started inside a git repo, you MUST provide repo_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Number of days to look back (default: 90) | |
| limit | No | Max results to return (default: 20, max: 100) | |
| repo_path | No | Absolute path to the git repository to analyze. Required if Claude Code was not opened in a git repo. | |
| path_filter | No | Filter to files under this path (e.g., "src/api") |