risky_to_change
Ranks code symbols by change risk by combining cyclomatic complexity with git churn, helping identify complex, frequently modified hotspots within a configurable history window.
Instructions
Ranks symbols by risk: combines cyclomatic complexity with git churn rate. High hotspot scores mean the code is both complex and frequently changed. Configurable time window and complexity threshold.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo": "<repo>"
},
"name": "risky_to_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days of git history to analyze | |
| repo | Yes | Repository name (as shown in list_repos) | |
| top_n | No | Number of hotspots to return | |
| min_complexity | No | Minimum cyclomatic complexity to consider |