repairing-worktrees - Diagnose and repair worktree and session health
Diagnose worktree and session health, repair tracking data, backfill state, and safely clean up eligible empty sessions.
Tags
Updated: 2026-12-02Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Run health diagnostics
- Repair tracking records
- Backfill session registries
- Reconcile stale status
- Audit path alignment
- Garbage-collect empty sessions
- Repair orphaned ownership
- Recover retired owners
Inputs
- Project binstub
- Worktree records
- Session-state data
- Session-store database
- Session command catalog
- Project identifier
Outputs
- Diagnostic report
- Machine-readable JSON report
- Repaired tracking records
- Backfilled session metadata
- Updated session status
- Removed empty session shells
- Content-addressed repair backups
Requirements
- agent-worktrees command
- Per-project project binstub
- Exact catalog executable path
- Access to tracking stores
