Branch Risk Analysis
branch_riskAnalyzes all branches against the main branch to detect staleness, divergence, and merge risk, flagging branches that need cleanup or may cause conflicts.
Instructions
Analyze all branches for staleness, divergence from the main branch, and merge risk. Identifies stale branches that should be cleaned up, branches that have diverged significantly and may cause merge conflicts, and branches with no recent activity. NOTE: If the server was not started inside a git repo, you MUST provide repo_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | No | Absolute path to the git repository to analyze. Required if Claude Code was not opened in a git repo. | |
| base_branch | No | Branch to compare against (default: HEAD). Typically "main" or "master". | HEAD |
| include_remote | No | Include remote tracking branches (default: false) |