coupled_files
Identify files that change in the same commits as a given repository file, returning co-change counts and ratios to reveal hidden coupling.
Instructions
Files that change in the same commits as the given file, with how often (co_changes) and the share of the file's commits (ratio). High ratios reveal hidden coupling.
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>",
"path": "<path>"
},
"name": "coupled_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the repository root | |
| repo | Yes | Repository alias, see the git-insights://repos resource | |
| limit | No | Maximum number of items to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| repo | Yes | ||
| coupled | Yes | Ranked by co_changes, then path | |
| file_commits | Yes | Non-merge commits that changed the given file |