get_co_changes
Detect files that frequently change together in git history to uncover hidden dependencies and temporal coupling.
Instructions
Find files that frequently change together in git history (temporal coupling). Requires git. Use to discover hidden dependencies between files. For cross-module co-change anomalies use detect_drift instead. Read-only. Returns JSON: { file, coChanges: [{ file, confidence, count }] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | File path to analyze | |
| limit | No | Max results (default 20) | |
| min_count | No | Minimum co-change count (default 3) | |
| window_days | No | Git history window in days (default 180) | |
| min_confidence | No | Minimum confidence threshold (default 0.3) |