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

Wt Cleanup Loop

skill-ondrejdrapalik-worktree-management-skills-wt-cleanup-loop · by OndrejDrapalik

Polls for merged PRs and closes the herdr workspaces or tmux windows behind them, on a timer. Args: [tick] [duration], defaults 5m and 3h. Use when the user wants tabs cleaned up as PRs land rather than right now: \"watch and close tabs as PRs merge\", \"wt cleanup-loop\", \"keep sweeping finished worktrees for the next few hours\". Same skill on both multiplexers; there is no herdr-specific vari…

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

Install

$ agentstack add skill-ondrejdrapalik-worktree-management-skills-wt-cleanup-loop

✓ 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-cleanup-loop)

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 Cleanup Loop? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Watch For Merged PRs

wt cleanup-loop $ARGUMENTS

Run it in the background. It prints one line per tick, so the user sees closures as they happen without the loop blocking you.

wt cleanup-loop            # 5m tick, 3h duration
wt cleanup-loop 2m 1h
wt cleanup-loop 10m        # 10m tick, 3h duration

Why this is a shell loop, not an agent loop

The check is gh pr list per open worktree. Pure lookup, no judgement. An earlier version woke a background subagent every tick to run it, which cost tokens on every sweep and added a failure mode (an agent mis-transcribing the safety rules) to a task that has no ambiguity in it. The loop lives in wt-cleanup-loop, which calls wt clear --merged-only and sleeps.

Two consequences worth passing on to the user:

  • It only closes merged PRs. Closed-without-merge often means the work is

still wanted, so it is left alone; wt clear without the flag sweeps those too.

  • Nothing is deleted. Checkouts and branches stay in ~/_wt and git; `wt open

brings any of them back. Deleting is wt-remove`.

Do not build your own polling wrapper. That re-adds the cost this design removed.

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.