Temporal Coupling
couplingDetect files that frequently change together to uncover hidden dependencies not visible in imports or type signatures, helping prevent breaking changes during refactoring.
Instructions
Find files that always change together (temporal coupling). These represent hidden dependencies not visible in imports or type signatures. If auth.ts and middleware.ts change together in 90% of commits, refactoring one without the other will likely break things. NOTE: If the server was not started inside a git repo, you MUST provide repo_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days to look back (default: 90) | |
| limit | No | Max pairs to return (default: 20) | |
| repo_path | No | Absolute path to the git repository to analyze. Required if Claude Code was not opened in a git repo. | |
| min_commits | No | Minimum shared commits to report (default: 3) | |
| path_filter | No | Filter to files under this path | |
| min_coupling | No | Minimum coupling score 0-1 (default: 0.5) |