AgentStack
SKILL verified MIT Self-run

Gh Wt

skill-hikaruegashira-gh-wt-gh-wt · by HikaruEgashira

Use this skill whenever the user wants to operate on git worktrees — create, enter, list, remove, or garbage-collect — including parallel agent sessions, side-by-side PR reviews, benchmarking multiple branches, or isolating a dirty tree from a fresh checkout. Trigger even when "worktree" is not said — phrasings like "spin up a fresh copy of branch X", "run claude in a clean checkout", "try this p…

No reviews yet
0 installs
12 views
0.0% view→install

Install

$ agentstack add skill-hikaruegashira-gh-wt-gh-wt

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Gh Wt? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

gh-wt

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.

Commands

gh wt add  [path]   Create a worktree (creates or tracks )
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 --  [args...]    cd into selected worktree, then exec 
gh wt  [args...]       Run  with selected worktree path appended

When a subcommand needs a worktree and none is given, fzf opens for selection. Esc cancels cleanly (exit 0).

-- vs no --

  • gh wt -- — cwd becomes the worktree, then `` runs.

Use for shells, agents, and test runners: gh wt -- claude, gh wt -- bash, gh wt -- npm test.

  • gh wt — worktree path is appended as an argument.

Use for editors and openers that take a path: gh wt code, gh wt cursor.

Mnemonic: -- means "into"; no -- means "with path".

Typical requests → commands

| User says | Command | | --------------------------------------- | ----------------------------- | | "new worktree for `" | gh wt add | | "run claude / my agent in a worktree" | gh wt -- claude | | "open in VS Code / Cursor" | gh wt code / gh wt cursor | | "run tests in a separate worktree" | gh wt -- npm test | | "remove the worktree" | gh wt remove | | "show me all worktrees" | gh wt list | | "clean up unused worktree cache" | gh wt gc` |

Gotchas

  • macOS cross-volume: the target path and the cache dir must be on

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.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.