Mole
$ mo Community High RiskMole (mo) is a macOS-only system maintenance and disk cleanup CLI combining mo clean --dry-run cache previews, mo purge project artifact cleanup, mo uninstall, and an interactive mo analyze disk explorer. Because cleanup subcommands delete user/build caches and mo analyze launches a TUI, agents must use --dry-run and avoid interactive subcommands.
brew install mole mo operates on macOS system caches and local build artifacts directly; there is no relevant MCP alternative.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports mo clean --dry-run non-interactively, but lacks --json output and bare mo / mo analyze / mo uninstall rely on interactive TUI menus.
mo clean --dry-runpreviews targets without prompts- No
--jsonoutput;mo analyzeis an interactive TUI
Provides --dry-run and --whitelist safeguards, but mo clean, mo purge, and mo uninstall permanently delete caches, build artifacts, and apps.
--dry-runpreview and whitelist configuration available- Destructive cleanup commands require explicit user confirmation
macOS-only tool installed via brew install mole; unusable on Linux or Windows.
- Strictly macOS-specific (
platforms: ["macos"])
Consolidates macOS cache cleanup, node_modules/target purging, and disk analysis in one utility.
- Replaces manual cache hunting across
~/Library/Caches
Actively maintained MIT-licensed open-source project (tw93/mole).
- Popular macOS utility repository on GitHub
Clear README documenting mo clean --dry-run, mo purge, mo analyze, and whitelist setup.
- Upstream README and
--helpreference
Security, Auth & Guardrails
None required; reads macOS user caches/configs and stores Mole whitelist settings in ~/.config/mole/.
100% free, offline, and open-source (MIT).
# Mole (mo) Agent Rules - ALWAYS run `mo clean --dry-run` first and get explicit user approval before running `mo clean`, `mo purge`, or `mo uninstall`. - NEVER launch bare `mo` or `mo analyze` in non-TTY agent shells—they open interactive TUIs.
Agent-Ready Command Recipes
Safe Read-Only Queries
mo clean --dry-run
Lists candidate cache, log, and temporary paths and estimated reclaimable space without removing any files.
Controlled Writes & Previews
mo clean --whitelist
Runs cache cleanup while respecting ~/.config/mole/whitelist exclusions; require explicit user approval before running without --dry-run.
Strengths for Agents
- +
mo clean --dry-runpreviews reclaimable macOS caches safely before deletion. - + Supports
--whitelistprotection to exclude critical caches or directories.
Caveats & Pitfalls
- ! macOS-only; does not run on Linux or Windows.
- ! No
--jsonoutput, andmo/mo analyzeopen interactive TUIs.