I build software with a lot of help these days. On a normal day my Mac runs AI agents in up to 20 dev slots at once. Each slot has its own git worktree, its own isolated Docker environment, its own build data and its own caches. Nothing collides, so twenty things move forward while I review one of them.
It's the most productive setup I've ever had. It's also what brought my Mac to a halt.
Every slot leaves something behind
Each slot does what developer tools are designed to do: keep things around so the next build is faster. Xcode keeps build data per project. Simulators keep their runtimes. Docker keeps build cache and old images. Every worktree gets its own node_modules, its own target folder, its own .venv.
One project doing that is fine. Twenty slots doing it all day fills a disk. Mine was full every single day.
What a full disk does to your day
It shows up in the middle of work. A build fails halfway with No space left on device. From that moment I wasn't building any more. I was digging through ~/Library, trying to work out what I could delete without breaking something.
The low point was a Mac mini with a release build waiting and 17 GB free, which wasn't enough to build the release. I spent the afternoon going through that disk by hand. This is what I found:
- 11 GBold simulator runtimes
- 11 GBold database dumps
- 10.4 GBDerivedData and device support files
- 2.7 GBDocker build cache
None of it was needed. By the end of the afternoon that Mac had 57 GB free.
The problem was the solution
That afternoon something clicked. Nothing on that list was a mistake. Every one of those files was put there to save me time: a cache so the next build is quicker, a runtime so the simulator starts, a dump so I could restore a database. Each tool had solved its own problem, and all those solutions together were my problem.
The caches that make one build fast are what make twenty builds impossible.
That's also why the obvious fixes don't work. I don't want to turn the caches off: they're why builds are fast. I don't want fewer slots: they're the whole point. And a bigger disk only moves the day it fills up.
Where the disk space goes on a developer Mac
If your Mac is full right now, these are the places to look. macOS tends to file this under "System Data" or "Developer", which is why the storage screen in Settings doesn't help much.
Xcode build data
~/Library/Developer/Xcode/DerivedData
One folder per project. Delete the ones you haven't built lately; Xcode rebuilds them.
Step by stepSimulators
~/Library/Developer/CoreSimulator
xcrun simctl delete unavailable removes devices whose runtime is gone. xcrun simctl runtime list shows the runtimes, several GB each.
Device support
~/Library/Developer/Xcode/iOS DeviceSupport
Debug symbols per iOS version. Keep the versions your devices run now.
Docker and OrbStack
docker system df
docker builder prune clears the build cache, docker image prune the untagged images. Stay away from volumes: that's your data.
Project folders
node_modules, target, .venv, Pods, .next
In every project and every worktree. Safe to delete when the file that recreates it (package.json, Cargo.toml) sits next to it.
Step by stepGradle
~/.gradle/caches
Old Gradle versions and their caches stay long after the project moved on.
Step by stepAll of it can be cleaned by hand. But you have to know where each tool hides things and when it's safe to touch them, you have to not do it while a build is running, and next week you get to do it again.
So I wrote Sluice
What I needed was for the leftovers to leave by themselves once they stopped being useful. So I wrote a small menu bar app that knows where Xcode, simulators, Docker, Rust, Go, Gradle and EAS keep theirs, and that finds the node_modules, target and .venv folders in my projects.
It has one rule: never break someone's work. It only removes what comes back by itself. It doesn't touch anything while a build runs. It never goes near your code, your data or your Docker volumes.
The first afternoon I ran it on my own Mac, it freed 61 GB. I had built it for myself. That number is why I released it.
A sluice is the gate that lets water out before it rises too high. The water isn't the problem. You need it. It just has to keep moving.
Try it on your own Mac
Sluice is free: download it, see what can go, and clean with one click. If a tool that eats your disk is missing, tell me at hallo@qraft.nl and I'll add it.
macOS 14 Sonoma or later · Apple silicon and Intel · or brew install --cask qraft/tap/sluice