
Omaprune finds linked worktrees under your home and temporary directories, groups them by repository, and shows their branch, size, activity estimate, and cleanup status.
Install
omarchy plugin add https://github.com/oorestisime/omaprune.git --enable
Requires Omarchy 4, Git, and Python 3. The widget defaults to the right side of the bar.
Highlights
- Zero setup. Scans
$HOME,$TMPDIR, and/var/tmpautomatically. - Quick cleanup. Select every safe worktree inactive for 7 or 30 days and confirm once.
- Precise control. Filter, multi-select, prune one row, or open it in a terminal.
- Useful context. See the branch, path, estimated age, and allocated size.
- Native appearance. Uses the active Omarchy theme, fonts, and spacing.

Left-click the bar icon to open Omaprune. Middle-click it, or press Refresh, to force a fresh disk measurement.
Safety
Omaprune uses git worktree remove, never rm or --force. It rechecks every
worktree immediately before removal and refuses the main worktree, dirty,
locked, detached, unreadable, or mid-operation worktrees.
Automatic Git inspection disables filesystem-monitor hooks. Worktrees with executable filters in repository-local configuration or populated submodules are shown as protected. Status checks never recurse into submodules.
One important Git behavior: ignored files do not make a worktree dirty.
Ignored .env files, databases, dependencies, and build outputs are deleted
with the worktree, so review unfamiliar entries before confirming.
Activity and size
Activity is the newest of the HEAD commit time, Git worktree metadata, and the newest filesystem modification. It is an estimate: reads do not count, while builds and other background writes do. Background scans may reuse measurements for six hours; refresh when an age boundary matters.
Displayed sizes are estimates too. Hard links, reflinks, snapshots, compression, and shared Git objects can make the space actually freed differ.
Update or remove
omarchy plugin update oorestisime.omaprune
omarchy plugin remove oorestisime.omaprune
Development
python3 -m unittest discover -s tests -v
qmllint -I /usr/share/omarchy/shell BarWidget.qml Panel.qml
omarchy plugin validate .
Licensed under the MIT License.