A Paseo plugin that automatically deletes the local git branch when a Paseo-owned worktree workspace is archived.
paseo plugin add MaplumeX/paseo-archive-branch-cleanup --ref 59bc5335e7cd3d5e61fc375565bb1fca9faee6daGit security status and fallback installation are pinned to commit 59bc5335e7cd.
From the plugin's README
paseo plugin install /absolute/path/to/paseo-archive-branch-cleanup
Requires the daemon-wide Enable plugins switch under Settings → Plugins.
README
A Paseo plugin that automatically deletes the local git branch when a Paseo-owned worktree workspace is archived.
When you archive a PR worktree workspace in Paseo, the daemon removes the worktree directory but leaves the local branch behind. Over time these stale branches accumulate. This plugin cleans them up automatically.
The plugin runs a background watcher inside the Paseo daemon plugin subprocess:
@getpaseo/clientremove event, deletes the cached branch from the main repo with git branch -DBranch deletion retries for up to 30 seconds, because the daemon may still be removing the worktree (the branch stays checked out until the worktree is gone).
gitRuntime.isPaseoOwnedWorktree === true (branches Paseo created)main, master, trunk, develop, dev, production, prod, release/*) even on a Paseo-owned worktree, since a worktree can check out an existing branchgit branch -D), never the remotegithubRuntime.pullRequest.headRefName, falling back to gitRuntime.currentBranchproject.checkout.mainRepoRoot), not the worktreepaseo plugin install /absolute/path/to/paseo-archive-branch-cleanup
Requires the daemon-wide Enable plugins switch under Settings → Plugins.
PASEO_HOME/config.json (daemon.listen), falling back to 127.0.0.1:6767.npm run typecheck # type-check
paseo plugin reload paseo-archive-branch-cleanup # reload after edits
paseo plugin logs paseo-archive-branch-cleanup # view backend output
MIT
Scanned 15 Oct 2026, 12:29 UTC from MaplumeX/paseo-archive-branch-cleanup.