A [Paseo](https://paseo.sh) plugin that automatically deletes the local git branch when a Paseo-owned worktree workspace is archived.
Requires Paseo: >=0.8.0 — from this plugin's own paseo-plugin.json.
Manifest JSON
{
"id": "archive-branch-cleanup",
"requirements": {
"paseo": ">=0.8.0"
}
}paseo plugin add MaplumeX/paseo-archive-branch-cleanupFrom 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 10 Sep 2026, 16:24 UTC at commit 58b917b77f7bd67f29dbf689f000e1ec41896666.
Scanned 10 Sep 2026, 16:26 UTC from MaplumeX/paseo-archive-branch-cleanup.