Mole
$ mo 社区开源 高风险Mole(mo)是一款仅限 macOS 的系统维护与磁盘清理 CLI,结合了 mo clean --dry-run 缓存预览、mo purge 项目产物清理、mo uninstall 以及交互式 mo analyze 磁盘浏览器。由于清理子命令会删除用户/构建缓存且 mo analyze 会启动 TUI,Agent 必须优先使用 --dry-run 并避开交互命令。
brew install mole mo 直接作用于 macOS 系统缓存与本地构建产物,没有对应的 MCP 替代方案。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
支持 mo clean --dry-run 非交互预览,但缺少 --json 输出,且裸命令 mo、mo analyze 与 mo uninstall 依赖交互式 TUI 菜单。
mo clean --dry-runpreviews targets without prompts- No
--jsonoutput;mo analyzeis an interactive TUI
提供 --dry-run 与 --whitelist 保护,但 mo clean、mo purge 与 mo uninstall 会永久删除缓存、构建产物及应用。
--dry-runpreview and whitelist configuration available- Destructive cleanup commands require explicit user confirmation
仅支持 macOS 的工具,通过 brew install mole 安装,无法在 Linux 或 Windows 运行。
- Strictly macOS-specific (
platforms: ["macos"])
将 macOS 缓存清理、node_modules/target 清理与磁盘分析集成于单一工具。
- Replaces manual cache hunting across
~/Library/Caches
活跃维护的 MIT 开源项目(tw93/mole)。
- Popular macOS utility repository on GitHub
README 清晰说明了 mo clean --dry-run、mo purge、mo analyze 与白名单配置。
- Upstream README and
--helpreference
安全边界、鉴权与放权指南
无需凭据;读取 macOS 用户缓存/配置,并将 Mole 白名单保存在 ~/.config/mole/。
100% 免费、离线、开源(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 高频安全命令配方
只读查询(安全推荐)
mo clean --dry-run
列出候选缓存、日志与临时路径及预估可释放空间,不删除任何文件。
受控写入与预演
mo clean --whitelist
在遵守 ~/.config/mole/whitelist 排除规则的前提下执行清理;去掉 --dry-run 前须获用户明确批准。
核心优势
- +
mo clean --dry-run可在删除前安全预览可释放的 macOS 缓存。 - + 支持
--whitelist白名单保护,排除关键缓存或目录。
注意事项与踩坑点
- ! 仅支持 macOS,无法在 Linux 或 Windows 上运行。
- ! 无
--json输出,且mo/mo analyze会打开交互式 TUI。