Skip to content

Developer Cleaner v1.8.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 20:14
61386b3

Developer Cleaner

Desktop application for reclaiming disk space from node_modules folders, build
folders, merged Git worktrees, and shared developer caches.

Build folders, and a new name

  • Node Modules Cleaner is now Developer Cleaner. Settings carry over. On macOS the
    new version installs as Developer Cleaner.app, so the old Node Modules Cleaner.app
    can be deleted; on Linux the package is now developer-cleaner, so remove the old
    node-modules-cleaner package. On Windows the update replaces the old install
  • A new Build folders section finds build output and tool caches inside your
    projects in the same scan: Rust/Cargo target, CocoaPods Pods, Next.js .next,
    Nx .nx, Turborepo .turbo, Android native .cxx, test coverage and Expo .expo.
    On a folder of about 230 projects that was 31 GB of Pods, .next and caches, plus
    64 GB of Rust target folders
  • A folder is offered only when the tool that made it left its marks — a target needs
    a Cargo.toml beside it and Cargo's CACHEDIR.TAG inside, Pods a Podfile and
    Manifest.lock, coverage an actual coverage report — and never when Git tracks
    anything inside it, so committed Pods and lookalike folders are left alone. The check
    runs again right before each delete
  • Each tool has its own group and checkbox, with what a delete costs (a Rust target
    means a full rebuild and takes release binaries and bundles kept there with it), so
    selecting the cheap ones never sweeps in the expensive ones
  • Removing a worktree with uncommitted changes now takes an explicit second step: the
    confirmation lists those worktrees and the remove button stays disabled until you
    tick that their changes will be permanently lost

Finding and removing what is really there, with one Remove button (1.7.0)

  • Remove Selected now also cleans the developer caches you tick, so the separate
    "Clean selected" button is gone. One confirmation lists every category with the total
    it frees, and a failure in one category no longer stops the others: the result says,
    per category, how many items were removed, how many failed and how much was freed
  • Every failure now names the path and the reason, and for files owned by another user
    the sudo command to run. Before, a failed delete only said "Check permissions"
  • A node_modules folder that something else already deleted counts as removed
    instead of failing, and removal only ever touches a real node_modules directory —
    never a symlink, and never another path
  • Projects inside .worktrees/ and .claude/worktrees/ checkouts are found, and a
    hidden folder picked for scanning is scanned. Build output that merely contains a
    folder named node_modules — Android .cxx mirrors, .next, bundled .pnpm and
    .bun copies, app bundles, and Claude Code's own install under ~/.claude — is left
    out, so it is never offered for deletion
  • Merged worktrees are found in more cases: branches merged with GitHub's "Rebase and
    merge", squash merges that landed after the base branch moved on, and repositories
    whose main remote is not called origin. One broken branch reference no longer hides
    a whole repository, and a worktree that was only just created is not offered
  • Removing a stale worktree entry clears only that entry, not every other stale entry
    in the repository, and tool clones in hidden folders (~/.oh-my-zsh, ~/.nvm,
    ~/.tmux/plugins) are no longer fetched during a worktree scan
  • Scanning is faster: on a folder of about 150 projects the node_modules scan went
    from about 42 to 30 seconds and the worktree scan from about 36 to 25

Worktree removal that survives a busy machine (1.6.0)

  • 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 590 git processes
    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-ref instead of up to nine probes per
    repository, and a linked worktree is now recognised by reading its .git file
    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 git processes and 12.5s per refresh before,
    109 and about 5s after
    , with byte-identical results
  • The refresh no longer writes anything. git status was rewriting .git/index in
    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 crawls node_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 .deb now declares its libayatana-appindicator3 runtime dependency

Merged worktree detection, reworked (1.3.0)

  • Compare against every base branch a repository has — origin/HEAD plus
    origin/main, origin/master, origin/development and origin/develop —
    instead of origin/HEAD alone, 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_modules folders 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: .msi or .exe installer
  • macOS: .dmg (Intel & Apple Silicon)
  • Linux: .deb or .AppImage