Loading...
Loading...
Deep clean and optimize your Mac using the Mole CLI tool
npx skill4agent add aradotso/trending-skills mole-mac-cleanerSkill by ara.so — Daily 2026 Skills collection.
mo# Via Homebrew (recommended)
brew install mole
# Via install script (supports version pinning)
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash
# Specific version
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash -s 1.17.0
# Latest main branch (nightly)
curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash -s latestmo # Interactive menu (arrow keys or vim h/j/k/l)
mo clean # Deep system cache + browser + dev tool cleanup
mo uninstall # Remove apps plus all hidden remnants
mo optimize # Rebuild caches, reset network, refresh Finder/Dock
mo analyze # Visual disk space explorer
mo status # Live real-time system health dashboard
mo purge # Remove project build artifacts (node_modules, target, dist)
mo installer # Find and remove installer .dmg/.pkg files
mo touchid # Configure Touch ID for sudo
mo completion # Set up shell tab completion
mo update # Update Mole
mo update --nightly # Update to latest unreleased build (script install only)
mo remove # Uninstall Mole itself
mo --help
mo --versionmo clean --dry-run
mo uninstall --dry-run
mo purge --dry-run
# Combine with debug for detailed output
mo clean --dry-run --debug
mo optimize --dry-run --debugmo cleanmo clean # Interactive cleanup
mo clean --dry-run # Preview what would be removed
mo clean --whitelist # Manage protected caches (exclude from cleanup)~/.config/mole/mo uninstallmo uninstall # Interactive multi-select list
mo uninstall --dry-run # Preview removalsmo optimizemo optimize # Run all optimizations
mo optimize --dry-run # Preview
mo optimize --whitelist # Exclude specific optimizationsmo analyzemo analyze # Analyze home directory (skips /Volumes by default)
mo analyze ~/Downloads # Analyze specific path
mo analyze /Volumes # Include external drives explicitly
# Machine-readable output for scripting
mo analyze --json ~/Documents{
"path": "/Users/you/Documents",
"entries": [
{ "name": "Library", "path": "...", "size": 80939438080, "is_dir": true }
],
"total_size": 168393441280,
"total_files": 42187
}mo analyze| Key | Action |
|---|---|
| Navigate list |
| Go back / Enter directory |
| Open in Finder |
| Reveal in Finder |
| Move to Trash (via Finder, safer than direct delete) |
| Show large files |
| Quit |
mo statusmo status # Real-time CPU, GPU, memory, disk, network, processes
mo status --json # JSON output for scripting
mo status | jq '.health_score' # Auto-detects pipe → outputs JSON{
"host": "MacBook-Pro",
"health_score": 92,
"cpu": { "usage": 45.2, "logical_cpu": 8 },
"memory": { "total": 25769803776, "used": 15049334784, "used_percent": 58.4 },
"disks": [],
"uptime": "3d 12h 45m"
}mo statuskqmo purgenode_modulestargetbuilddistvenvmo purge # Interactive multi-select
mo purge --dry-run # Preview
mo purge --paths # Configure custom scan directories~/.config/mole/purge_paths~/Documents/MyProjects
~/Work/ClientA
~/Work/ClientB~/Projects~/GitHub~/devInstallfor faster scanning:fdbrew install fd
mo installermo installer # Find .dmg/.pkg files in Downloads, Desktop, Homebrew cache, iCloud, Mail
mo installer --dry-run # Preview removals~/.config/mole/| File | Purpose |
|---|---|
| Custom directories for |
| Log of all file operations |
export MO_NO_OPLOG=1
mo cleanmo completion # Interactive setup for bash/zsh/fishmo touchid # Enable Touch ID authentication for sudo commands
mo touchid enable --dry-run#!/bin/bash
health=$(mo status --json | jq -r '.health_score')
if [ "$health" -lt 70 ]; then
echo "Health score low: $health — running cleanup"
mo clean --dry-run # swap to `mo clean` when ready
fimo analyze --json ~/Downloads | jq '.entries | sort_by(-.size) | .[0:5] | .[] | {name, size_gb: (.size / 1073741824 | . * 100 | round / 100)}'#!/bin/bash
# Non-interactive purge of build artifacts after CI
MO_NO_OPLOG=1 mo purge --dry-run # always preview first in scriptscurl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash
# Then bind `mo clean`, `mo status`, `mo analyze` as script commands in Raycastmo analyzecleanuninstallpurgeinstallerremove--dry-run~/.config/mole/operations.logMO_NO_OPLOG=1| Problem | Solution |
|---|---|
| Run |
| Purge scan is slow | Install |
| External drives not appearing in analyze | Run |
| Want to protect a cache from being cleaned | Run |
| Need to exclude an optimization step | Run |
| Script getting interactive prompts | Use |
| Nightly update not working | Nightly updates ( |
mo update # Update to latest stable
mo update --nightly # Update to latest main (script install only)
mo remove # Uninstall Mole completely
mo remove --dry-run # Preview what remove would delete