name: wt-prune description: Remove worktrees whose branches have merged into the default branch allowed-tools: Bash(wt list:), Bash(wt step prune:)
Context
- Current worktrees: !
wt list --format json
Your task
Clean up stale worktrees.
- Review the
wt listoutput in context. If nothing looks merged/stale, say so and stop. - Run
wt step pruneto remove worktrees whose branches are already merged into the default branch. - Report what was removed (diff the list against the post-prune state) and stop.