Knowledge-loss risk
knowledge_riskBlames tracked text files and compares line ownership to each author's last commit to flag files inactive authors mainly own, revealing code risk if contributors leave.
Instructions
What breaks if someone leaves? Blames the tracked text files and compares line ownership with each author's last commit. Files where inactive authors own more than 50% of the lines are 'orphaned'. Returns the riskiest files, a per-author rollup (lines owned, files they are the main owner of, last commit) and a per-directory rollup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Maximum number of files, authors and directories to list. | |
| path | No | Optional folder or file (relative to the repository root) to restrict the analysis to. | |
| max_files | No | Blame at most this many files (the most frequently changed ones); the result says when it truncated. | |
| repo_path | Yes | Absolute path to a local git repository, or to any folder inside one (a sub-folder scopes the analysis to it). | |
| inactive_after | No | Authors with no commit since this git date are considered gone, e.g. '6 months ago', '2025-01-01'. | 6 months ago |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||