worktree-janitor

Installation
SKILL.md

Worktree Janitor

Use scripts/worktree_janitor.py. Its defaults are the cleanup policy; pass overrides only when the user explicitly changes that policy.

Sweep

Run a dry sweep first:

python3 "$HOME/.agents/skills/worktree-janitor/scripts/worktree_janitor.py" sweep

Complete when its JSON report has been read and every failure or safety hold is accounted for. Dry-run mode makes no worktree, Git-ref, or state mutation.

Run an applied sweep only when the request or automation explicitly selects --apply:

python3 "$HOME/.agents/skills/worktree-janitor/scripts/worktree_janitor.py" sweep --apply
Installs
6
First Seen
Aug 24, 2026