Worktree Cleanup

Safely clean stale local worktrees and reports without deleting active work.

onfire7777 ed4c6db 393 B Updated

File contents

Worktree Cleanup

Use node scripts/janitor.mjs for dry-run reporting.

Only use --apply when:

  • the worktree is clean
  • it is stale
  • its branch has no open PR
  • it is under the Codex worktree directory

Never delete dirty worktrees or protected state/spec files.

onfire7777/five-agent-dev-team/tree/main/.agents/skills/worktree-cleanup commit ed4c6dba7a

Frequently asked questions

npx skillmds@latest add onfire7777/worktree-cleanup