File hotspots
file_hotspotsRank files by commit count over a selected period to reveal churn, risky areas, and refactoring candidates.
Instructions
Rank files by how many commits changed them in the last N days (merge commits excluded). Useful for spotting churn, risky areas and refactoring candidates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Size of the time window in days. | |
| path | No | Restrict to this file or directory. | |
| repo | No | Repository name or absolute path from the allowlist. Defaults to the first configured repo. | |
| limit | No | Maximum number of results (1-100). | |
| exclude | No | Glob patterns for files to leave out, e.g. ["*.lock", "dist/", "docs/**/*.md"]. A pattern without "/" matches at any depth; a trailing "/" excludes a directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Name of the repository that was queried. | |
| hotspots | Yes | ||
| windowDays | Yes | ||
| filesChanged | Yes | ||
| scanTruncated | Yes | ||
| commitsScanned | Yes |