Repository navigation
Developer Cleaner v1.6.0
Developer Cleaner
Desktop application for reclaiming disk space from node_modules folders,
merged Git worktrees, and shared developer caches.
Worktree removal that survives a busy machine
- Removing worktrees no longer fails on ones something else already removed. A scan is
a snapshot, and on a machine where agents and scripts clean up after every merge, a
list can be hours out of date by the time you press Remove. Those worktrees used to
fail with "No longer registered" and stay selected, so every later attempt failed on
them again; they now count as removed and leave the list. A folder that still exists
but is no longer a worktree is still refused and left alone - Worktrees with uncommitted changes can now be selected, and Select all takes
everything except locked ones. The confirmation dialog names every worktree whose
changes will be lost, and removes them only once you accept that - That consent is deliberately narrow: a worktree that was clean at scan time and has
changes by the time you click is still refused, a worktree that gained a commit is
always refused, and a lock is never overridden - The menu bar and the window now count the same thing. The window header shows how
many worktrees are removable — the menu bar's number — next to the total, and the
menu bar says "removable" rather than "ready to clean" - After every menu bar refresh the window compares its list with the menu bar's count
for the same folder, and when they differ says the list may be out of date and offers
a rescan. A Rescan button next to the scanned path skips the folder picker
A background refresh that stops re-deriving what it already knows (1.5.0)
- The menu bar count used to recompute everything from scratch every fifteen minutes.
On a folder of 93 repositories with 44 linked worktrees that was 590gitprocesses
and 12.5 seconds, every time, whether or not a commit had moved since the last run - Merge verdicts are now cached between refreshes and keyed on the commits they depend
on — the worktree's HEAD and its base branch tips. Deciding a branch is not merged
is the expensive half, around thirty processes, and those are exactly the branches
that stay on disk for months, so the negative answers are cached too - Whether a worktree is dirty is deliberately never cached: files change without any
ref moving, so that is still read fresh each refresh, for matched worktrees only - Base branches resolve in one
for-each-refinstead of up to nine probes per
repository, and a linked worktree is now recognised by reading its.gitfile
rather than asking Git to resolve every discovered directory - Size and modification time come from one walk of a tree instead of two
- Measured on the same folder: 590
gitprocesses and 12.5s per refresh before,
109 and about 5s after, with byte-identical results - The refresh no longer writes anything.
git statuswas rewriting.git/indexin
every repository it touched, and the squash probe built and destroyed a scratch
directory around every single probe — verified as zero writes across 90 repositories - Git run for the menu bar is niced so it yields to whatever you are doing. macOS's
background class was tried and rejected: it throttles disk I/O too, which turns a
twelve-second refresh into a ten-minute one as soon as the work writes - Settings shows what the last few refreshes cost — duration, processes started, cache
hits — since a job that runs unattended is otherwise invisible when it regresses - Fetching during a full scan is capped at eight repositories at a time instead of
opening one connection per repository at once
Menu bar mode (1.4.0)
- Hide the Dock icon and run as a menu bar app (macOS); closing the window leaves the
app in the menu bar rather than quitting it, and Quit in the tray menu ends it - Live readout of free disk space and worktrees ready to be removed, for a list of
watched folders that now persists between runs — the app's first stored setting - Free space is reported for the volume each watched folder actually lives on, matched
by longest mount point, so a folder on an external disk reports that disk - The worktree count comes from the same merge detection the window uses, minus the
fetch and the size walk, so the background refresh never touches the network and
never crawlsnode_modules. Refreshes every 15 minutes, on demand, and after a clean - Platform notes: the Dock toggle is macOS-only, tray text is unsupported on Windows
and desktop-dependent on Linux (the menu carries the same information everywhere),
and the Linux.debnow declares itslibayatana-appindicator3runtime dependency
Merged worktree detection, reworked (1.3.0)
- Compare against every base branch a repository has —
origin/HEADplus
origin/main,origin/master,origin/developmentandorigin/develop—
instead oforigin/HEADalone, which reported work merged into a second
integration branch as still open - Detect squash merges, GitHub's default, which never make a branch an ancestor
of its base. The probe writes into a scratch object directory and leaves the
repository's object database untouched - Refresh remote-tracking refs before comparing, with no credential prompts and a
hard timeout, so a branch merged an hour ago is not reported as open - Include worktrees with a detached HEAD; never offer one that holds a base branch
- Report registrations whose directory is gone as stale and clear them with
git worktree prune, instead of mislabelling them as having uncommitted changes - Tell untracked OS and watcher noise (
.DS_Store,.watchman-cookie-*) apart
from real changes: it is what makes Git refuse, so removal retries once with a
single-f— never two, which is what bypassing a lock would need - Refuse a worktree that gained a commit after the scan, and say which of
"already removed", "changed since scan", "no longer registered" and
"no longer merged" actually happened - Collapse linked worktrees to one entry per real repository, so a directory of
twenty worktrees is inspected once rather than twenty times
Also in the app
- Scan directories for
node_modulesfolders and merged Git worktrees - Scan shared developer caches — npm, pnpm, bun, yarn, uv, Gradle, puppeteer, nvm
- Detect pnpm stores abandoned when the tool moved its default location
- Report what a delete actually frees, not the nominal folder size:
allocated blocks rather than file lengths, hardlinked files counted once,
and files still linked from outside the tree counted as zero - Delegate to a tool's own prune where one exists, so referenced entries survive
- Empty unrotated logs in place, keeping the writing service's file handle valid
- Batch delete with per-path failure reporting
- Cross-platform support
Downloads
- Windows:
.msior.exeinstaller - macOS:
.dmg(Intel & Apple Silicon) - Linux:
.debor.AppImage