Mole: A Terminal-Native macOS System Maintenance Tool
softwareMole: A Terminal-Native macOS System Maintenance Tool
Best For
Developers who work primarily in the terminal on macOS and need to keep their system clean without switching to GUI apps. Particularly useful if you run AI coding agents (Claude Code, Cursor, Windsurf) or local LLM inference, where cache accumulation and disk pressure are constant concerns. If you prefer point-and-click tools or need cross-platform support, look elsewhere.
How I Actually Use It
After heavy AI agent sessions, mo purge clears out orphaned node_modules, build artifacts, and stale Git worktrees that pile up from parallel agent tasks. Before running local MLX inference, mo status gives a quick resource check to confirm enough memory is available. Once a week, mo clean sweeps system caches, browser residuals, and AI tool caches. The --dry-run flag is essential for the first few runs to verify what gets removed before committing to permanent deletion.
The Raycast extension makes it easy to trigger commands without switching to a terminal window, which is a nice quality-of-life touch.
Where It Is Strong
- One binary, four tools replaced. Deep clean, app uninstall with residual tracking, disk analysis, and real-time system monitoring, all from a single
mocommand. No subscriptions, no license management. - Native AI workflow awareness. Since V1.35.0,
mo cleanunderstands Claude Code VM caches, Cursor extension directories, Windsurf, Codex CLI, OrbStack container caches, and more. AI model files and app data are on the protected list, so your models stay safe. - Solid safety design. Three-layer protection: path validation (rejects empty, relative, traversal, and control characters), protected system directories (blocked even with sudo), and interactive confirmation for high-risk operations. The
--dry-runflag previews every action. - Active maintenance. 54,500+ stars, weekly to biweekly releases. The developer removes features that prove too risky (V1.40.0 dropped aggressive optimization tasks), which shows the developer takes maintenance seriously, not just shipping features.
Where It Fails
- Most operations are permanent. Only
mo analyzeroutes deletions to Trash (recoverable). Everything else,mo clean,mo purge,mo uninstall, deletes permanently. If the heuristic orphan detection misjudges a file, it is gone. - Heuristic-based orphan detection. The tool infers which files are orphaned using rules, not a database of what was installed. Edge cases exist, especially with non-standard app installations.
- Disk visualization is basic.
mo analyzeworks, but it is no match for DaisyDisk's interactive sunburst chart. If disk space analysis is your primary need, a dedicated GUI tool is still better. - macOS only. The Windows branch is experimental and not recommended for production use.
- curl install carries supply-chain risk. The
curl | bashinstall script is convenient but opaque. Usebrew install moleinstead.
Pricing, Difficulty, and Risk
Pricing: Free, MIT-licensed, open-source. No hidden tiers.
Difficulty: Intermediate. You need to be comfortable with terminal commands. The commands themselves are simple (mo clean, mo purge), but understanding what they delete requires reading the documentation and using --dry-run first. Not suitable for users unfamiliar with the command line.
Risk: Medium. The safety design is thorough, but permanent deletion is the default behavior for most commands. The protected directory list and AI data safeguards reduce the chance of catastrophic loss, but heuristic orphan detection can misfire. Always install via Homebrew to avoid supply-chain risks from the curl script.
Verdict
If you are a macOS developer who works in the terminal and runs AI coding tools, Mole is a clear adopt. It replaces multiple paid apps with a single free binary, and its AI-aware cleanup is something few other tools actually do. Just respect the permanent deletion default: use --dry-run until you trust its judgment, and install through Homebrew.
Source
- GitHub: https://github.com/tw93/Mole
- Website: https://mole.fit
Frequently Asked Questions
Is Mole safe to use? Can it accidentally delete important files?
Mole has three layers of protection: path validation, protected system directories (blocked even with sudo), and interactive confirmation for high-risk operations. However, most commands permanently delete files rather than moving them to Trash. Always use the --dry-run flag first, and install via Homebrew instead of the curl script.
How does Mole compare to CleanMyMac?
Mole replaces CleanMyMac's core features (deep clean, app uninstall, disk analysis, system monitoring) with a single free CLI binary. CleanMyMac requires an annual subscription. The tradeoff is that Mole requires terminal familiarity and has no GUI.
Does Mole recognize AI tool caches like Claude Code and Cursor?
Yes. Since V1.35.0, Mole's clean command recognizes Claude Code VM caches, Cursor extension directories, Windsurf, Codex CLI, and OrbStack container caches. AI model files and application data are on the protected list and will not be deleted.
Found this useful?
Follow for new AI × biomedical research notes:
Or buy me a coffee to keep new content coming.
☕ Buy me a coffee