Rules

The real fear isn't wasted space, it's losing work. That's what Devbroom's rules are for, and none of them is a setting.

Scanning only reads

Scanning doesn't change a single file. Unless you set a rule to “Do it by itself” in Automatic upkeep, nothing is touched that you haven't seen in the preview and confirmed. The one exception is yours to turn on: reading closed Android emulators, described under Devices below.

Every verdict comes with a reason

No item is Ready or Blocked without a reason. Each verdict's reasons are shown beside the item, and on the command line with --details.

Blocked and Unknown can't be selected

This is a limit, not a preference. Review items are cleaned only with “Include anyway”; on the command line that's --include-review, and it asks for confirmation in the terminal.

Checked again right before deleting

When you press Clean, every item is checked again against the processes running at that moment. An item whose verdict or contents changed since the scan is left alone, and you're told why it was skipped.

Trash first

The Trash is the default, and every item can be put back from History. Deleting permanently is a separate choice, confirmed by holding its button; your organization can turn it off. Space moved to the Trash doesn't count as freed until you empty the Trash.

Worktrees: never --force

  • A worktree with uncommitted changes, or untracked or staged files, is Blocked. Git won't remove it without --force; Devbroom never uses --force.
  • Ignored files make it Review, because git worktree remove deletes them without asking.
  • Unpushed commits on a branch stay when the worktree is removed; on a detached HEAD they wouldn't. So before removing, Devbroom saves the HEAD under refs/devbroom/removed; if it can't, it doesn't remove.
  • There are only three worktree actions: remove (remove), prune (prune) and repair (repair).
  • A worktree locked by a Claude Code session that is no longer running is Review: the stale lock is lifted with git worktree unlock right before removal, and put back if git doesn't remove it. A lock whose process still runs makes it Blocked.
  • A worktree folder its repository no longer lists, or one an agent left without a .git, is compared file by file with the repository. If any file's content is in no commit there, it's Blocked; otherwise it's Review, and since git can't remove it, the folder itself goes.
  • An agent's branch with no worktree (claude/, worktree-agent-) is offered even unmerged, always as Review, with how many of its commits no other branch or remote has. It's deleted with git branch -D.

Hands off running work

If an agent session runs in that folder or its parent, a process runs from it, or a file in it is held open, the item is Blocked. For build folders, a session running in the parent folder makes it Review.

Devbroom never touches the processes of a running agent session. It asks processes agents left behind to quit only when you say so, and only after checking again; never system processes or other users' processes.

A name isn't enough

A folder's name alone is no evidence:

Folder To be Ready
node_modules A package.json beside it
.next A Next.js config or package.json beside it
.turbo A turbo.json or package.json beside it
target Cargo's marker inside (CACHEDIR.TAG)
.venv A pyvenv.cfg inside
DerivedData Xcode's files inside
dist, build, vendor A project file beside it, and a build script that produces it

Without the marker the folder stays Review. It must also be a folder git ignores, with no file inside that git tracks.

Real size

Space shared with other folders through hard links and APFS clones (as pnpm does) isn't counted. The number you see is what deleting frees. Symbolic links aren't followed, and mounted volumes are skipped.

Old versions

Devbroom offers an old Gradle version, an Android SDK package, or a Node, Python, Ruby, pnpm, Flutter or Cypress version only when nothing says it's in use:

  • No scanned project asks for it, in files such as gradle-wrapper.properties, .nvmrc, .python-version, .ruby-version, .tool-versions, .fvmrc or package.json.
  • It isn't a version manager's default, and no emulator, virtual environment or link uses it.
  • It isn't the newest of its kind.
  • No file in it was read or changed in the last 30 days.

These are always Review, since projects outside the folders you scan may still use them. If a file that says which version a project uses can't be read, nothing of that kind is offered.

The same idea keeps what editors and Xcode still use: the settings of a JetBrains IDE or Android Studio version, VS Code's cached data and LM Studio's engines are offered only when a newer one of the same kind is here and the old one wasn't used in the last 30 days. For an IDE's settings, only changes count, since backups and searches read those files too. A JetBrains version's settings stay Review, and say so when they hold scratch files you wrote. VS Code's state for a folder is offered only when that folder is gone, and an old extension only when VS Code itself marked it to delete.

What Xcode copied from a device (Device support) stays for the newest version of each kind, for the OS version of any device paired with this Mac and connected in the last 90 days, and for 90 days after it was last used, since getting it back needs the device. The two newest Xcode archives of each app always stay; older ones are Review.

Inside caches

Some caches hold something that isn't cache, so Devbroom looks first:

  • Go's build cache with fuzzing inputs go test -fuzz collected isn't moved as a folder: it is offered with go clean -cache, which keeps them.
  • Maven's repository is offered one group folder at a time (org, com...); one with artifacts you installed with mvn install is Review.
  • Dart's packages are Review while tools you activated with dart pub global activate use them.
  • A program that is running and uses its cache blocks it until it quits: sccache for its cache, LM Studio for its models and engines, since a loaded model can't be told apart.
  • Credentials and history next to caches are never offered: Maven's settings.xml, Ivy's packages published on this Mac, Swift's package fingerprints, and VS Code's local history of your files.
  • Bazel's folders and the JavaScript caches in your temporary folder (Metro, Jest) are offered only when they belong to you.

Other tools' own commands

What a tool keeps in its own way is cleaned with that tool's command, always as Review, and only after the tool is asked again right before:

  • Go's module cache with go clean -modcache, since Go makes its files read-only; old Homebrew versions with brew cleanup, one formula at a time; conda's packages with conda clean --all, which keeps your environments.
  • A conda environment with conda remove --all, only when no scanned project's environment.yml names it and it wasn't used in the last 30 days. The base environment never is.
  • An Ollama model with ollama rm; it frees only the parts no other model shares, and one Ollama has loaded right now stays.
  • A Docker volume no container uses, stopped ones included, with docker volume rm. What it holds is gone for good, and the sheet says so.
  • Old Git LFS copies with git lfs prune --verify-remote, which keeps what the remote doesn't have.
  • Xcode's Previews and test simulators with xcrun simctl --set, never while one runs; an old Xcode goes to the Trash with macOS's trash command, only when it isn't the one in use, the newest, asked for by a project's .xcode-version, running or opened in the last 30 days.

Virtual machines (OrbStack and its Linux machines, Colima, Lima, Podman, Multipass, UTM, Parallels, VirtualBox, Tart) with when they were last used, Podman's images, iPhone and iPad backups, the nix store and MacPorts are only shown, with the way to clean them yourself. The nix store's size shows when it is a volume of its own, as the nix installers make it.

Devices

Simulators, emulators and runtimes are always Review, and a running one is never touched:

  • A simulator is deleted or erased with Xcode's own xcrun simctl; the apps on it and their data go with it.
  • A runtime is offered only when no simulator uses it, it isn't the newest of its platform, Xcode says it can be deleted, and it wasn't used in the last 30 days. Xcode downloads it again when a simulator needs it.
  • An emulator goes to the Trash together with the file that names it, so History can put both back.
  • Reading a closed emulator starts it in read-only mode, without a window: its apps and data don't change, though like any start it updates the emulator's own record of its last start. Scheduled scans never start an emulator.
  • An app from your projects on a connected phone is uninstalled with xcrun devicectl or the running adb server's adb, only when a developer built it (on Android, a debug build). What it keeps on the phone goes with it.

The agent's own way

Agent databases and credentials are never touched. When an agent has its own cleanup command, that's the way it's done or shown to you. Claude Code's history is either deleted with claude purge or archived: the conversations are first written to an archive in Devbroom's folder and verified against the originals, and only then moved to the Trash; the project's memory (memory/) stays in place, and the archive can be reopened from History. Codex and OpenCode sessions of a folder that is gone are deleted with their own commands, codex delete --force and opencode session delete, one session at a time and never while the agent runs. When Devbroom hasn't verified an agent's data format for the installed version, its sessions are only shown. Other agents' sessions are only read.

Everything on your Mac

No account, no telemetry; nothing about you is sent. The app checks for updates; if you enter a Pro license it activates it once and quietly checks it again about once a month (the license key and your Mac's name only). Without a license, the update check is the only network request. From session logs it takes only token counts and model names; searching sessions reads the logs at that moment, keeps no index or log, and hides strings that look like secrets in excerpts. Details on the Privacy page.

Last updated: October 7, 2026