hotspots
Rank files by risk from git history using recency-weighted churn and distinct author count, filtering lock files and bulk commits to help prioritize code review.
Instructions
Rank files by risk: recency-weighted churn (lines added+deleted, halving every half_life_days) multiplied by (1 + log2 of distinct authors). Only files that still exist are listed. Commits touching more than max_files_per_commit files (reformats, imports) and lock files are ignored; exclude takes extra globs like '*.min.js'. since/until accept git dates ('6 months ago', '2026-01-01'); path limits to a directory; as_of pins 'now'.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hotspots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | HEAD | |
| path | No | ||
| repo | No | ||
| as_of | No | ||
| limit | No | ||
| since | No | 12 months ago | |
| until | No | ||
| exclude | No | ||
| max_commits | No | ||
| half_life_days | No | ||
| max_files_per_commit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |