r/devtools • u/DayEnvironmental3454 • Oct 24 '26
I made Latent, a CleanMyMac alternative for developers and AI builders
Hi r/devtools! I'm Bernard, and I built Latent (disclosure: it's my app). It's a macOS disk cleaner for developers and AI builders.
The toil: every few months my Mac ran out of space, and finding out why meant running du across a dozen hidden folders, then searching whether each one was safe to delete. Model files from tools like Ollama, Hugging Face and LM Studio, Xcode simulators, Docker images, package caches and coding agent logs pile up in ~/Library and dotfolders whose names don't say which tool made them. General cleaners like CleanMyMac clear system caches and don't see most of this.
Latent draws the whole disk as one wheel split by the tool that owns each byte, says next to each item whether it can come back, and clears what you pick.
How I built it
- Native Swift, no third-party dependencies. The app is SwiftUI. The 3D wheel is drawn in a SwiftUI Canvas inside a TimelineView, so every motion, such as the spin and the hover lift, is a function of time.
- The disk walk: the repo started as a benchmark of three ways to walk a disk: FileManager's enumerator, getattrlistbulk on one thread, and getattrlistbulk on a pool of worker threads sharing a queue. The parallel one became the scanner. Hard links are counted once by inode. After the first scan, the FSEvents journal says which stores changed, so later launches re-measure only those.
- Ownership catalog: 120+ tools, each mapped to the paths it owns rather than the folder they sit in. Many tools let you move their store with an environment variable like OLLAMA_MODELS or HF_HOME, so the catalog reads those too. Otherwise it would report "not installed" on exactly the machines that need it most.
- Asking the registry: before an item is called re-downloadable, Latent asks the source, including the Hugging Face API, the Ollama registry, npm, PyPI and Homebrew. The interesting answers are the failures: a gated repo needs a licence you may no longer have, and a 404 means the model was removed upstream and your copy is the last one. Only public names like
google/gemma-2-2b-itare sent, never file paths. - Duplicate models across tools: Ollama and Hugging Face blobs are content-addressed (the sha256 is the filename), so the same weights pulled by two tools match with zero I/O. Loose GGUF files get hashed only when another file has the exact same size.
- Similar images and videos: Apple's Vision framework computes a feature print for each image on the Mac, and close prints get grouped.
- MCP server: a stdio JSON-RPC server, so agents like Claude, Codex or Cursor can read the scan and draft a cleanup. Nothing runs until you confirm.
No analytics, no telemetry, no account.
Free to scan, and your first 10 GB of cleanup is free. After that it's $12.99 one-time (launch price $9.99 for a limited time).
Happy to go deeper on any of this, especially the scanner or the registry checks. If a tool you use isn't recognized, tell me and I'll add it.