| name | branch-status |
| description | Overview of all tracked branches (active, stale, merged, archived). |
/branch-status
Show an overview of all tracked branches.
Steps
- Resolve project directory.
- List all directories under
<project>/branches/.
- For each branch directory, read meta.md and extract: branch name, status, mode, active task, HEAD, created date.
- Check git for each branch:
- Does the branch still exist locally? (
git branch --list <name>)
- Is it merged into the default branch? (use
${CLAUDE_PLUGIN_ROOT}/scripts/detect-merged.sh --project-dir <project-dir> --target-branch <default-branch>)
- Last commit date? (
git log -1 --format='%ci' <name>)
- Classify each branch: active, stale (no commits in N days per config), merged (unpromoted), archived.
- List archived branches from
<project>/archive/ (count only).
- Format as compact overview with categories.