Change Hotspots
hotspotsIdentify frequently changing files to uncover where bugs concentrate, guiding refactoring and test coverage improvements.
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") |