AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Wt Remove

skill-ondrejdrapalik-worktree-management-skills-wt-remove · by OndrejDrapalik

Remove a git worktree checkout, delete its branch, and close the herdr workspace or tmux window showing it. Resolves the target from a branch name, directory slug, absolute path, or the worktree you are standing in. Use whenever the user wants a worktree gone: "wt remove", "delete this worktree", "close and remove that herdr worktree workspace", "tear down the branch I spun out". This is the only…

— No reviews yet
0 installs
3 views
0.0% view→install

Install

$ agentstack add skill-ondrejdrapalik-worktree-management-skills-wt-remove

✓ 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.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-ondrejdrapalik-worktree-management-skills-wt-remove)

Reliability & compatibility

✓ Security review passed
0 installs to date
— no reviews yet
● 19d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Wt Remove? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Remove Worktree

wt remove $ARGUMENTS

Display the output. Done.

What the script guarantees

Removal is destructive, so the ordering and the refusals matter more than the command itself:

  • Target resolution accepts a branch (feat/foo), a directory slug

(feat-foo), an absolute path, or nothing at all when the shell is already inside the worktree. Pass through whatever the user gave you.

  • Refuses to remove a worktree from inside it and tells the user where to

cd. Don't work around this by cd-ing elsewhere yourself unless the user asked for the removal to happen regardless.

  • --force gates losing work, not the removal: uncommitted changes or

commits not yet on the default branch stop the run and print what would be lost. Relay that to the user and let them decide. Do not add --force yourself to get past a warning they haven't seen.

  • Closes the surface before removing the checkout. Git refuses to remove a

worktree that a live shell still has as its cwd, and closing the herdr workspace or tmux window kills those shells. This is why removal works on both surfaces with one code path.

  • Then git worktree remove, worktree prune, branch -D, and the now-empty

~/_wt// bucket is cleaned up.

  • Drops the worktree's mise trust entry. wt new trusts the checkout's

mise.toml, and the trust store keys on the absolute path, so a leftover entry would silently pre-trust a future worktree that reuses the slug.

Remove vs clear

wt remove deletes a checkout and its branch. wt clear (see wt-clear) only closes windows for finished PRs and leaves everything on disk. When the user says "clean up", check which one they mean. The wrong guess is unrecoverable in one direction and harmless in the other.

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.