🧹 ElfClean clears the leftovers of Claude Code, Codex and Cursor from your Mac
In brief
- 🧹 ElfClean (macOS 15 or later) finds caches, logs, worktrees and models left by AI coding tools and developer tools.
- 🔍 Before anything moves, it checks Git for uncommitted or unpushed work.
- 🗑️ Items go to the Trash by default; conversation history is never treated as a cache.
- 💶 Scanning is free; one purchase unlocks cleaning everything selected at once.
🧹 ElfClean is a Mac app by Colin Leor Sergay that finds the space taken by coding agents, local models and old projects. According to its App Store page it knows Claude Code, Codex, Cursor, Devin (formerly Windsurf), VS Code, Roo Code and Aider, plus Ollama and Hugging Face models and Xcode and package-manager caches. Each item is explained and nothing moves before you review it. For every Git project the app shows whether work is uncommitted or unpushed; such items are marked "At risk" and never ticked automatically. Scanning is free, and a single purchase unlocks cleaning everything you selected at once. 💶
What it looks for. According to the developer, projects built with AI help each keep their own node_modules, build folders and caches, and coding agents leave caches, logs, worktrees, old versions and session history. It also covers Xcode folders such as DerivedData, archives and simulator devices, package caches for npm, pnpm, Yarn, Bun, pip, uv, Poetry, Cargo, Go, Gradle, CocoaPods, Swift packages and Homebrew, and Git worktrees that agents created in project folders. Local models are often 5 to 40 GB each, the app says; shared files are counted once. There is also a storage map of the home folder, the biggest files with Quick Look, duplicates found by comparing contents, and a comparison of scans over time.
Safety levels. Three levels decide what is ticked for you: "Caches" (low-risk caches and logs), "Recommended" as the starting level (rebuildable project folders and tool files) and "Advanced" after a warning (also stored models, recent and experimental items). Downloads, installers, language versions, conversations, worktrees and leftovers are ticked only by you. Conversation history is never treated as a cache, and old histories can be archived instead of deleted. Running apps and tools, credentials, cloud drives and anything on the Never Touch list are left alone.
Undo and privacy. Items go to the Trash by default and History can put them back until it is emptied; Delete Permanently is optional. Space is freed when the Trash is emptied. The developer states that the app needs no account and sends no analytics or file data; in the App Store listing the developer says it collects no data (not verified by Apple).
Availability. The app is in the Mac App Store, requires macOS 15 or later and is available in English, German, French, Japanese, Korean, Spanish, Portuguese and Simplified Chinese. It measures the home folder and folders you add, not the whole disk, and is not affiliated with the tool makers it names.