Repository navigation
Releases
Worktree Cleaner v1.0.1
移除工作树时,可选清理远端分支
Mac 应用和 Antigravity 插件现在都可以在移除工作树时,勾选删除它在 origin 上的分支。删除本地分支和删除远端分支可以分别选择,两项默认关闭。
- 单项和批量确认窗口都会显示具体的远端分支名,包括和本地分支不同名的情况。
- 如果有人在扫描后推送了新提交,或服务器拒绝删除,工具会保留本地工作树。如果远端分支已经随 PR 合并被删除,本地清理可以继续。
- 工具会跳过远端默认分支和
main、production等保留名称。Mac 废纸篓只能还原本地文件夹,无法撤销远端分支删除。
Optional origin branch cleanup
When removing one or more worktrees in the Mac app or Antigravity plugin, you can also delete the corresponding branches on origin. The confirmation shows the remote branch names. Local and remote branch deletion are independent and off by default.
If a remote branch receives a new commit or the server rejects the deletion, the local worktree stays in place. If the branch was already removed after a PR merge, local cleanup can proceed.
下载 · Downloads
The DMG and ZIP contain the same Developer ID–signed, Apple-notarized universal app for Apple silicon and Intel Macs running macOS 14 or later. The DMG includes an Applications shortcut for drag-and-drop installation.
| File | SHA-256 |
|---|---|
WorktreeCleaner.dmg |
e4e80b32ce5ef9566a17afdbe3d7f6ac85d46a8f9593d03662adcfe733ebda3e |
WorktreeCleaner-macOS.zip |
193b7082d562217612f0a5c77df13f819523159f4e74b97722afb0002bcf66f6 |
Worktree Cleaner v1.0.0
Worktree Cleaner v1.0.0
First public release — signed with Developer ID Application, Hardened Runtime, and Apple Notarized & Stapled for Gatekeeper-clean installation on macOS 14+ (Apple Silicon & Intel Universal binary, Liquid Glass UI on macOS 26+).
Highlights
- Automatic Discovery & Orphan Reconciliation: Scans common developer directories,
~/.codex/worktrees,~/.claude/worktrees,~/.cursor/worktrees,~/.trae-cn/worktrees, and<repo>/.claude/worktrees, plus broken or.git-less orphaned folders. - Context Recall: Reads Codex (
state_5.sqlite) and Claude Code (projects/*.jsonl) session tasks alongside base-branch diffs,git cherrySquash/Rebase merge equivalence, and GitHub PR status viagh. - 4-Layer Safety Guardrails: Active
lsofprocess locks, configurable freshness cooldown, precious ignored files (.env*,secrets.json, etc.) one-click copy back to main repo, and Trash-first removal. - Antigravity MCP App Plugin (SEP-1865): Built-in
WorktreeCleanerMCP+ single-file HTML UI supporting inline chat card (show_worktrees_inline), side pane (aux_pane), and full-page sidebar (global), with destructive tools isolated to_meta.ui.visibility: ["app"]andupdateModelContextcontext pills.
Downloads & Verification
| File | Description | SHA-256 |
|---|---|---|
WorktreeCleaner.dmg |
Drag-and-drop macOS Disk Image (Universal, Notarized & Stapled) | b980400a41b23f9b767c3dc991aaffa7202927fab4416cac1f7f8242d260f8ef |
WorktreeCleaner-macOS.zip |
Zipped .app bundle (Universal, Notarized & Stapled) |
d665d9949505c77deb5a4d031895a5ce67e035edba70fcea2f6d3988208c7526 |
Installing the Antigravity Plugin
git clone https://github.com/isdou/WorktreeCleaner.git
cd WorktreeCleaner
./scripts/install_antigravity_plugin.sh