Mines the git commit history for a specific file to extract patterns about how it has evolved. Learns what kinds of changes are typically made, which other files change alongside it, common fix patterns, and how its complexity has trended over time.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
uri | string | Yes | — | Absolute path to the file to analyze |
maxCommits | number | No | 100 | Maximum number of commits to analyze for this file |
minConfidence | number | No | 0.7 | Minimum confidence threshold for extracted patterns (0.0 to 1.0) |
Mine the git history for src/core/engine.rs — what patterns can you find?
Analyzes up to 100 commits touching that file and extracts patterns.
Analyze the full history of src/services/payment.ts — go back 500 commits.
Sets maxCommits: 500 for a thorough analysis.
What files usually change together with src/models/user.ts?
The co-change patterns reveal companion files.
Returns patterns specific to the file:
stellarion_assess_change_risk for the most informed risk assessmentstellarion_mine_git_history instead