Leaf paired the open-source cleaner Mole with Claude to cross-check scans, freeing about 315 GB over three and a half months on a 500 GB MacBook without losing personal files
Leaf (@leaf_sanren) filled a 500 GB MacBook 10 times in three and a half months. His method scans twice: first Mole, tw93's open-source cleanup CLI, with mo clean --dry-run as a preview, then Claude over the home folder, and the two lists are reconciled. Items on both lists are safe; items only Mole found mean Claude missed them (Claude's first pass skipped hidden folders like .npm, about 25 GB); items only Claude found are usually places Mole doesn't know yet, such as 83 GB of CapCut (Jianying) cache in the Movies folder. He decides before anything is deleted, quits the app, deletes one folder at a time, and trusts only the free space df reports. Ten rounds freed about 315 GB. He also sent Mole two PRs for Jianying and Feishu caches, both merged. The article lists four kinds of cache to clear and six things that look like junk but must not be deleted. On Linux we tested Mole's Linux branch: running ./mo clean --dry-run from the repo listed about 102 MB of npm, Bun, pip and uv caches in just over a second, and deleted nothing. We did not test the macOS build or the Claude reconciliation.
Visit site Mole + Claude Code ↗- Pricing
- Free
- Region
- Global
- Where it's from
- Chinese community
- Added
- Nov 12, 2026
- Tested on
- Nov 12, 2026
- Version we used
- Mole Linux branch git 1b97a19 (./mo clean --dry-run); macOS main d9181d3 / 1.71.0 read only
- Categories
- ProductivityAutomation & Agents
- Original author
- Leaf Yeah! @leaf_sanren ↗
- Our test
- Partly tested
- Cost / time
- The Mole CLI is GPL-3.0 and free; the author also sells a graphical app, Mole Mac. Scanning with Claude or Codex uses a plan you already have.
The task
A Mac keeps running out of disk, a big grey "System Data" block is unexplained, and you want space back without deleting chats, photos or projects.
Steps
- Install Mole: on macOS, brew install mole. If you use Claude Code or Codex, also add Mole's own agent skill: npx skills add tw93/Mole -a claude-code codex cursor -g -y, which teaches the agent to preview with --dry-run first.
- Record free space with df -h as a baseline.
- Run mo clean --dry-run to see the list without deleting; at the same time have Claude find the largest folders in your home directory, scanning hidden (dot) folders separately.
- Reconcile the two lists: items on both are the safest; items only Mole found mean Claude missed them; items only Claude found are usually locations Mole doesn't know, and large rebuildable ones are candidates for a Mole PR.
- Have the agent stop and wait for you to approve each item. Quit the app fully (from the menu bar, not just closing the window) and delete one folder at a time.
- Run df -h again and trust only real free space; tools' "reclaimable" numbers often run 10–20% high. Repeat about every two weeks.
What the author says
Leaf @leaf_sanren (X article, 11 Nov 2026): a 500 GB MacBook filled 10 times in three and a half months; about 315 GB freed in total with no personal files lost; after clearing the first four categories (web caches, app intermediates, update installers, dev dependencies), 25–30 GB grows back in about two weeks. The big ones he hit: Jianying 83 GB (54 GB in recognize, about 660 MB of raw audio per hour of subtitle recognition), Feishu web cache 27 GB, Chrome 18 GB at once, opencode undo snapshots 27 GB in a week, 9.2 GB of old claude-mem plugin versions. Never delete: WeChat chat folders (clean per chat from WeChat settings), an iCloud-synced Photos library, WPS filecache and Jianying image / importcache3, Claude desktop's vm_bundles (his Claude nearly listed it as removable), project source and .git; and deleting one copy of an APFS clone frees nothing. tw93 merged his Jianying PR within 5 hours; it shipped in Mole V1.48.0.
Our test
On 12 Nov 2026 on Linux we cloned https://github.com/tw93/Mole -b linux (Linux branch 1b97a19, GPL-3.0) and, without installing, ran ./mo clean --dry-run from the repo. In about 1.2 s it previewed groups for browsers, user caches, apps, developer tools, games, package builds, trash and system: under developer tools it listed the Bun install cache (47 items, 30.5 MB), pip cache (71.5 MB) and uv cache (would run uv cache prune), and skipped the npm cache because npm was running; total Potential space: 102.0MB · 48 items, with Dry run complete - no changes made. We also cloned the macOS main branch (d9181d3, VERSION=1.71.0 in the script) to read the commands, but it doesn't run on Linux. We did not test the Claude reconciliation and deleted nothing.
What we found when we tried it:Mole's preview mode only lists and deletes nothing, and it skipped the cache of a running program (npm here), matching the article's "don't delete while the app is open" rule.
How to get in
The original is a Chinese X article: https://x.com/leaf_sanren/status/2120504348560232485 (use browser translate). Mole itself has an English README: https://github.com/tw93/Mole . Paths for Jianying (CapCut's Chinese edition) and Feishu (Lark) apply mainly to Chinese users; the Lark international app uses LarkInternational instead of LarkShell.
Who it suits
Mac users whose disk keeps filling, especially with editing apps, chat apps or dev tools. If you don't use a terminal, let an agent run the process but approve every deletion yourself.
Pitfalls
- Mole only cleans locations it knows; caches in non-standard places, like Jianying's at the time, are invisible to it.
- Claude tends to skip hidden dot-folders when scanning the home directory; tell it explicitly.
- Deleting an app's cache while it's running either gets rewritten immediately or breaks the app; if you can't tell whether it's running, don't delete.
- WeChat chat files, an iCloud Photos library, WPS filecache and Claude's vm_bundles look like caches but deleting them loses data or breaks sessions.
- We only tested the Linux branch's dry-run on Linux; we did not verify on a Mac or reproduce the 315 GB result.
More in this category
- Keep a long-running AI-built project from turning into a messCodingClaudeCodexoil-delegateNeeds Claude and Codex plans◐ Partly testedChina
- Have fresh-context AI reviewers poke holes before you codeCodingEGMCodexClaude CodePlugin free; reviews use your model quota◐ Partly testedOverseas
- 1,050 memory recalls audited: what makes agent memory pay offCodingNowledge MemCodexClaude CodeFree tier: 50 memories; review uses model quota○ Not tested by usChina
- Isolate an always-on agent on its own machine, then red-team itAutomation & AgentsOpenClawClaude CodeOllama$20/mo Ollama Cloud + a Claude plan○ Not tested by usOverseas
- A to-do list beside your agents, one AI chat per taskProductivityToday BoardcmuxClaude CodeFree, open source; needs macOS + cmux◐ Partly testedChina