Knowledge map
knowledge_mapIdentify who knows a file or directory best from Git commit history, weighted by recency. Shows author knowledge shares, bus factor, and files at risk from a single contributor.
Instructions
Who knows a file or directory: each author's share of the knowledge, from the commits they made in the last N days (merge commits excluded), with recent commits weighted more. Also returns the bus factor and how many files depend on a single person. Useful for "who should review this?" and "who knows the auth module best?".
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": "knowledge_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Time window in days. | |
| path | No | Restrict to this file or directory. | |
| repo | No | Repo name or path; defaults to the first configured repo. | |
| limit | No | Maximum number of results. | |
| exclude | No | Globs to leave out, as in file_hotspots. | |
| halfLifeDays | No | A commit counts half as much for every this many days of age. | |
| maxFilesPerCommit | No | Skip commits touching more files than this (bulk renames, formatting). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The requested file or directory, or null for the whole repo. | |
| repo | Yes | Name of the repository that was queried. | |
| files | Yes | Most frequently changed files first. | |
| authors | Yes | ||
| busFactor | Yes | Fewest authors who together hold more than half of the knowledge. | |
| windowDays | Yes | ||
| halfLifeDays | Yes | ||
| filesAnalyzed | Yes | ||
| scanTruncated | Yes | ||
| commitsScanned | Yes | ||
| commitsSkipped | Yes | Commits ignored for touching more than maxFilesPerCommit. | |
| concentratedFiles | Yes | Files where a single author holds at least 80% of the knowledge. |