DiskTidy

See where your Mac's space went.

Then clear what's safe. Free, open source, and nothing leaves your Mac.

Build it in three commands View on GitHub

DiskTidy's Cleanup screen: a storage bar for the whole disk and a ranked list of things you can clear, each labelled Safe, Review or Careful.

Every folder, by size

Measure your home folder, the whole disk or any drive. A 21 GB home folder took 1.4 seconds on my Mac.

  • Drill into any folder. The bars always add up to the total.
  • Reveal in Finder, or move to the Trash with Undo.
  • The treemap draws the same scan as proportional tiles.
The Explorer: folders listed largest first with a size bar, a percentage and a size for each. The treemap: the same folders drawn as tiles whose area matches their size.

Told what to do, not just where

DiskTidy knows 39 space hogs: caches, Xcode, Homebrew, npm, Docker, Ollama models, stale node_modules, old installers, apps you never open. Each one is ranked and labelled.

Safe
Rebuilds by itself. Nothing you made is lost.
Review
Probably fine, but look at what's in it first.
Careful
Can delete something you want to keep.

Every suggestion shows the exact command. Copy it, run it in Terminal, or move the listed files to the Trash.

rm -rf ~/Library/Developer/Xcode/DerivedData/*

Catch what's growing

DiskTidy compares your home folder between scans and shows which folders grew. A scan that couldn't read a folder is never compared with one that could, so granting access never looks like gigabytes of growth.

The Changes screen: a free-space chart with axes, then folders that grew and shrank since the last scan.

It checks in for you

A weekly scan runs from the menu bar. You only hear from it when there's a lot to clear or the disk is getting full.

Auto-clean is off by default. If you turn it on, it runs only the safe cleanups you tick, and logs every run.

The menu bar popover: how much can be cleared, the storage bar and the top three suggestions.

Find the copies

Search the folders you choose for identical files. Keep one and move the rest to the Trash, or replace the extra copies with APFS clones so every name keeps working and the space comes back.

The Duplicates screen: groups of identical files with the copy to keep selected.

Built to be trusted

  • Trash first, with Undo. Nothing is deleted outright unless you run a command yourself.
  • One safety check. Every removal passes it. It refuses system folders, your home folder, credentials and Apple's own apps.
  • Honest numbers. Folders macOS won't let it read are reported as skipped, never counted as empty.
  • Local only. No network calls, no accounts, no analytics. This page loads no trackers either.

For people who build things

The same engine ships as a command line tool, and cleanups are plain JSON, so adding one takes a pull request and no Swift.

disktidy-cli scan
disktidy-cli explore home --top 15
disktidy-cli diff
disktidy-cli dupes ~/Downloads
disktidy-cli autoclean   # dry run
{
  "id": "npm",
  "title": "npm cache",
  "category": "devtools",
  "risk": "safe",
  "paths": ["~/.npm/_cacache"],
  "command": "npm cache clean --force"
}

Build it in three commands

You need macOS 15 or later and Apple's command line tools. The full Xcode app isn't required.

xcode-select --install   # skip if you already have the command line tools
git clone https://github.com/pavitra14/DiskTidy.git
cd DiskTidy && ./install.sh

The script builds the app, copies it to Applications and opens it. DiskTidy appears in your menu bar. Click it, then press Scan now.

Why build it instead of downloading it?

A downloadable Mac app has to be signed and notarized, which needs Apple's paid developer account at $99 a year. I don't have one yet, so there is no download. An app you build yourself isn't blocked by Gatekeeper, and building takes a minute or two.

Start at login

Switch on Open DiskTidy at login in Settings. To build without installing, run ./build.sh and the app stays in the repo folder.

Update it

cd DiskTidy && git pull && ./install.sh

It quits the running copy and replaces the one in Applications. macOS may ask for Full Disk Access again.

Remove it

rm -rf /Applications/DiskTidy.app
rm -rf ~/Library/Application\ Support/DiskTidy
defaults delete dev.pavitra.DiskTidy

Good to know

  • Full Disk Access is optional. Without it, Mail, Messages and other apps' data are skipped and reported. Because you build the app yourself, macOS ties that permission to this exact build, so rebuilding may ask you to grant it again.
  • Copying a built app to another Mac? macOS may block it. Open System Settings, then Privacy & Security, and choose Open Anyway, or run xattr -dr com.apple.quarantine DiskTidy.app.
  • The first run asks for permission to control Terminal and Finder, and to send notifications, only when you use those features.