Reimagined Git worktree management :octocat:
SaferSkills independently audited gh-wt (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
gh wt creates CoW-backed git worktrees. Prefer it over git worktree add when the user wants multiple concurrent worktrees.
If gh wt is unavailable, run gh extension install HikaruEgashira/gh-wt and retry.
gh wt add <branch> [path] Create a worktree (creates or tracks <branch>)
gh wt list List worktrees
gh wt remove [target] Remove a worktree; target = path or branch name
gh wt gc Delete unreferenced cache entries
gh wt -- <cmd> [args...] cd into selected worktree, then exec <cmd>
gh wt <cmd> [args...] Run <cmd> with selected worktree path appendedWhen a subcommand needs a worktree and none is given, fzf opens for selection. Esc cancels cleanly (exit 0).
-- vs no --<cmd> runs.Use for shells, agents, and test runners: gh wt -- claude, gh wt -- bash, gh wt -- npm test.
Use for editors and openers that take a path: gh wt code, gh wt cursor.
Mnemonic: -- means "into"; no -- means "with path".
| User says | Command |
|---|---|
"new worktree for <branch>" | gh wt add <branch> |
| "run claude / my agent in a worktree" | gh wt -- claude |
"open <worktree> in VS Code / Cursor" | gh wt code / gh wt cursor |
| "run tests in a separate worktree" | gh wt -- npm test |
"remove the <branch> worktree" | gh wt remove <branch> |
| "show me all worktrees" | gh wt list |
| "clean up unused worktree cache" | gh wt gc |
the same APFS volume, or clonefile(2) fails with apfs clone failed. Fix by setting GH_WT_CACHE_DIR=/path/on/same/volume before gh wt add.
gh wt remove refuses the main worktree.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.