file_experts
Identify who knows a file or directory by ranking authors from git blame and recent changes, and report bus factor plus inactive authors.
Instructions
Who knows this file or directory? Weights each author by surviving lines (git blame ignoring whitespace and moved lines) and by lines changed in the last recent_days (score = 0.6 blame share + 0.4 recent share). Reports the bus factor (fewest authors holding more than 50% of the code) and flags authors with no activity for inactive_days. For a directory, the max_files biggest text files are blamed.
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": {
"path": "<path>"
},
"name": "file_experts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | HEAD | |
| path | Yes | ||
| repo | No | ||
| as_of | No | ||
| max_files | No | ||
| max_authors | No | ||
| recent_days | No | ||
| inactive_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |