Mole: The Ultimate macOS System Optimizer and Deep Cleaner

⬅️ Back to Tools

Mole: Deep Cleaning for Power Users

While many macOS “cleaning” apps focus on simple cache deletion with flashy interfaces, Mole takes a different approach. It is a powerful, developer-centric CLI (Command Line Interface) tool designed to deep clean and optimize macOS from the ground up.

If you are a developer or a power user who prefers the terminal, Mole provides a surgical way to reclaim disk space and keep your system running at peak performance.

Key Features

🧹 Deep System Cleanup

The mo clean command goes beyond standard trash emptying. It targets temporary files, system logs, and deep cache remnants that most GUI-based cleaners miss.

🚀 System Optimization

Mole isn’t just about deleting files. With mo optimize, the tool refreshes system services, clears DNS/system caches, rebuilds system databases, and resets network services to ensure everything is snappy.

📊 Live System Dashboard

Need to check your system’s health? mo status provides a real-time, color-coded dashboard showing health scores for your CPU, GPU, Memory, Disk, and Network performance—directly in your terminal.

🏗️ Project Artifact Purge

One of the most useful features for developers is mo purge. It scans your system for build artifacts like node_modules, target, build, and dist. You can choose exactly which projects to clean, reclaiming gigabytes of space in seconds.

🛡️ Smart App Uninstaller

Dragging an app to the Trash often leaves behind launch agents, preferences, and hidden support files. Mole’s uninstaller seeks out and removes these associated files for a truly clean removal.

Handy Commands

Once installed, you can operate Mole using the mo command. Here are the most useful operations:

CommandDescription
moOpen the interactive menu
mo cleanRun the deep cleanup process
mo uninstallRemove apps and their leftover files
mo optimizeRefresh system caches and services
mo analyzeLaunch the visual disk explorer
mo statusView the live system health dashboard
mo purgeClean developer project build artifacts
mo touchidConfigure Touch ID for sudo in terminal
mo updateUpdate Mole to the latest version
mo removeCompletely remove Mole from your system
mo --helpShow the help menu
mo --versionShow the installed version

Advanced Usage

  • Preview before action: mo clean --dry-run or mo optimize --dry-run to see what will happen without making changes.
  • Whitelist management: Use --whitelist with clean or optimize to manage protected rules/caches.
  • Custom scan paths: mo purge --paths to configure where Mole scans for project artifacts.

Platforms

  • 🍎 macOS (Built exclusively for Apple’s ecosystem)

Get Started

Mole is easy to install via Homebrew:

brew install mole

Alternatively, you can use the official install script:

curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash

🔗 GitHub Repository: tw93/Mole

Why This Tool Rocks

  • Developer First: Tailored for people who live in the terminal.
  • High Performance: Written in Go and Shell for speed.
  • Transparency: Open-source and minimal, so you know exactly what is being touched on your system.
  • All-in-One: Replaces the need for multiple monitoring and cleaning utilities.

Crepi il lupo! 🐺