Files that change together
list_coupled_filesFind file pairs that change together in git history, ranked by coupling strength, so you know what an edit may drag along before you start.
Instructions
Lists file pairs that keep landing in the same commits over the churn window, strongest first, at most 50. Use it before editing a file to learn what an edit drags along, and list_duplicate_functions for copied code. It reads a cached ranking, not the scored run, and walks git log again only when HEAD, the churn window or the clone depth moved. An empty list means no pair cleared both thresholds, not a missing run: min_support 5 needs five shared commits, and min_confidence 0.5 means the rarer file moved with its partner half the time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | path to the scored repo's root (default: the repo the server was started in); a leading ~ is the home directory | |
| min_support | No | minimum shared commits before a pair counts (default 5) | |
| min_confidence | No | minimum P(pair changes together), 0 to 1 (default 0.5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | No | pairs clearing both thresholds, ordered by support x confidence descending, at most 50 | |
| schema | No | payload schema version, 1 | |
| truncated | No | present only when the whole answer was longer than one tool result the server sends (7,500 characters): each list, string or object field it cut, at any depth, keeps its start, and full is the CLI command that prints the whole answer | |
| window_months | No | months of git history the pairs were counted over, back from the commit date of HEAD (the config's churn_window_months) |