- Category
- Utilities
- Publisher
- Ryware
- Repository
- Open repository
- Release
- Open release
- Current version
- v1.1.0
- Release date
- 2026-10-10
- Package size
- macOS 0.0 MB
Headroom
See what is eating your Mac's disk. Give it some headroom.
README
Headroom
See what is eating your Mac's disk. Give it some headroom.
A fast, native macOS disk space analyzer, storage visualizer, and cleanup utility.
Completely free. No subscription, ads, tracking, accounts, or in-app purchases.
Formerly DiskTree. Same app, same bundle id, new name since 1.0.
Download the latest release · Install with Homebrew · Build from source · Safety & privacy
Free forever, no ads, no tracking. If Headroom saved you some space, a ⭐ on this repo is the best way to help other Mac users find it.
brew install ryware/tap/headroom

Headroom turns a crowded drive into an understandable map. Scan a folder or disk, identify the largest files and developer caches, inspect what is safe to remove, and clean up without leaving the app.
Why Headroom
- Find space fast — a native scanner uses macOS
getattrlistbulk(2)and parallel directory traversal. - Understand it visually — explore a detailed folder tree, a squarified treemap, file categories, and the largest individual files and bundles.
- Delete with context — safety badges explain what an item is, whether it is usually safe to remove, and what deletion may affect.
- Clean developer clutter — discover caches, DerivedData,
node_modules, package stores, build output, logs, virtual machines, and other regenerable data. - Find duplicates — byte-for-byte identical files (size → header hash → samples → full SHA-256), grouped and ranked by reclaimable space, with one-click "keep newest" selection and a keep-one-copy guard.
- Watch it from the menu bar — a live free-space ring, 7-day trend, low-space and sudden-drop alerts, and one-click cleanup of safe caches.
- Works with AI agents — a command line tool and an MCP server give Claude Code, Claude Desktop, Cursor, Codex and any MCP client the same scanner, cleanup finder, duplicate finder and safety verdicts. The app carries its own
AGENTS.md, so an agent needs no setup. See Use with AI agents. - Stay in control — choose recoverable Trash mode or an explicit permanent-delete mode.
- Keep data private — analysis happens locally on your Mac; Headroom does not require an account or send scan data anywhere.
Screenshots
Explore every folder without losing context

The virtualized folder tree stays responsive with very large directories. Sort by size, share of parent, file count, safety, category, or modification date.
See the whole drive at a glance

The dashboard sums up the scan: free space, a 7-day trend, cleanup candidates, and a shortcut to the duplicate finder. The interactive treemap (top of this page) can be colored by category, age, or deletion safety. Double-click to zoom and right-click an item for actions.
Know what is safe to delete

Cleanup gathers regenerable folders, such as caches, DerivedData, node_modules, and build output, biggest first, and labels each one Safe, Usually safe, Caution, or Never.
Remove duplicate files

Byte-for-byte identical files are grouped and ranked by reclaimable space. One click selects the extra copies and keeps the newest.
Understand what consumes the space

Categories separate applications, dependencies, caches, disk images, virtual machines, media, archives, source code, documents, and more.
Welcome screen

Features
Dashboard
A clear overview of the scanned location with:
- live volume free, used, and total space;
- allocated and logical size;
- file and folder counts;
- cleanup candidate totals;
- category usage; and
- links to the five largest files and apps.
Every tile is a link: Size on disk opens the Treemap, Files opens Largest Files, Folders opens the Folder Tree, Cleanup candidates opens Cleanup, and a category bar opens By Category with that category selected.
Folder Tree
A virtualized NSOutlineView creates only the visible rows and recycles cells, so even enormous dependency folders remain practical to explore. Sizes show bytes allocated on disk, with inline share-of-parent bars and sortable columns.
Treemap
A nested, squarified storage map inspired by tools such as WizTree and SpaceSniffer. Choose the nesting depth and color by category, file age, or safety verdict. Hover for details, double-click to zoom, and right-click to act.
Categories and Largest Files
Review storage by file type or browse the 100 largest files and bundles. A size threshold makes it easy to focus on items that can meaningfully free space.
Duplicates
Finds files that exist more than once with identical content and shows how much space you get back by keeping one copy of each.
How it works. Three passes, each cheaper than the next:
- Size. Every file from the scan is bucketed by exact byte size. Sizes that occur once are discarded without reading anything.
- Header hash. Files that share a size get the first 64 KB hashed (SHA-256). Different headers mean different files.
- Samples. Files larger than 192 KB that still match get 64 KB from the middle and the last 64 KB hashed. This is what keeps huge videos, disk images and VM files from being read end to end just to prove they differ.
- Full hash. Only files that survive all of that are read end to end. Two files are listed as duplicates only when their full hashes are identical, so there are no false positives.
Hashing runs on a bounded number of parallel lanes (disk-bound work thrashes with too many concurrent reads), shows which pass it is in, and can be cancelled. Files under 1 MB are skipped (they add noise and free nothing), as are files inside app bundles and other packages, which legitimately share resources. Symlinks are never content.
Choosing what to delete. A bar above the results says what to do next. Select extra copies (keep newest) ticks every copy except the newest in each group; Other ways keeps the oldest copy or the one highest in the folder tree instead. Copies marked Do not delete (for example inside .git) are never ticked for you, though you can still tick them by hand. Once copies are ticked, the bar shows how many and how much space, with Clear and Move N copies to Trash (or Delete N copies permanently in permanent mode), and says whether they can be put back.
Each copy leads with the part of its path that differs from the other copies (Downloads/megapack.abr vs Design/Brushes/megapack.abr), with the folder they all share underneath, its modification date and the safety verdict. Hover for the full path; click a copy to see it in the inspector. Groups with more than six copies show five and a Show N more copies link. The keep at least one copy guard is on by default, so a group can never be emptied by accident. Deletion uses the same Trash or permanent mode as everywhere else; removed copies disappear from the groups without a rescan.
Where it shows up. The Dashboard has a Duplicate files card with a one-click scan and the reclaimable total, and the sidebar has a Duplicates pane with the full list, a path filter, and the selection tools. The App Store build has the same feature.
Cleanup
Headroom finds regenerable junk inside the selected folder and in known home-folder locations, including:
- Xcode DerivedData and build output;
- npm, pnpm, pip, Gradle, NuGet, and Cargo caches;
node_modules,.build,.venv,target,dist, and__pycache__;- application caches and logs; and
- Trash contents.
Nothing is removed merely because it was found. You review and select cleanup candidates first.
Menu bar monitor

Headroom can live in the menu bar and keep an