Attic: A Disk Explorer for Deciding What to Keep
This is a personal project and the code is public on GitHub.
- Problem
- A list of the biggest folders doesn't say what's safe to remove. One old build directory can make a live project look huge, and an old repository can still hold work that was never committed or pushed.
- Constraints
- macOS only. Everything stays on the machine and nothing goes over the network. The app has to open instantly, so it can't rescan each time.
- Decisions
- A background service keeps a local index current and the terminal app reads it. Rebuildable artifacts are flagged separately. Git repositories get a second check before removal, and removed items go to the Trash through Finder.
- Tradeoffs
- Size and last use are clues, not proof, and the recoverable-space figure is an estimate. Attic ranks and warns. It doesn't remove anything on its own.
I built Attic because a list of the largest folders doesn’t tell me what I can remove. A current project might be huge, while an old build directory inside it is taking most of the space. And an old repository might still contain work I haven’t committed or pushed.
Attic is an open-source disk explorer for macOS, written in Rust. It keeps a local view of disk usage, points at likely cleanup candidates, and lets me check each one before anything is removed.
Finding what takes space
A background service builds a local index of the filesystem and keeps it current. The terminal app reads that index, so it opens at once and I can sort by size or last use without waiting on a scan.
In development folders the biggest item is rarely the one worth removing.
Attic recognizes common rebuildable artifacts, such as Rust target directories, node_modules, Python virtual environments and caches, so the
candidate is the build output and not the whole project around it.
Browse disk usage and find large directories and development artifacts.
Reviewing before removing
Attic ranks candidates by size and last use. Those signals tell me what to look at first. They can’t prove anything is safe to remove.
Cleaning asks for confirmation. The item then goes to the Trash through Finder, so Put Back still works.
Review a candidate before sending it to the Trash.
Repositories get a second check. A project that looks dead can still hold
uncommitted changes, or commits that exist nowhere else. Attic reads the Git
state, warns about that work, and asks twice before removing it. Any key
but y cancels.
Git state can reveal work that filesystem dates can’t.
Letting the service keep watch
The index stays useful between cleanups. The service follows filesystem changes and sends a notification when the estimated recoverable space passes a threshold I set. It sends at most one a day, and it doesn’t remove anything itself.
Everything stays on the Mac. Attic makes no network requests, and there’s no backend or telemetry.
Set a threshold and get a notification when there’s enough to clean.
What the numbers can’t tell me
Last-use is a clue. A directory that’s been read or run without being modified can look idle, and a folder untouched for months can still matter.
The recoverable-space figure is an estimate too. Space doesn’t come back until the Trash is emptied, and local snapshots can delay when macOS reclaims it.
So Attic ranks and warns, and I make the call.