跪拜 Guibai
← All articles
Mac

CleanBit: The Mac Cleaner That Explains Every Byte Before It Deletes

By 维思理Chen ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

CleanBit turns disk cleanup from a blind one-click gamble into a transparent, reversible process. Developers and heavy AI tool users get targeted tools for the caches and build artifacts that actually consume tens of GB, without handing over full disk permissions by default.

Summary

CleanBit takes the guesswork out of Mac disk cleanup. Instead of a single "clean 58 GB" button, its smart scan lists every item with an explanation, then sorts it into three risk classes: green for caches that rebuild automatically, yellow for items moved to Trash with confirmation, and gray for valuable assets like local AI models that are never deletable. A six-step pre-deletion review checks symlink boundaries, verifies inodes, blocks iCloud and library tampering, skips running apps and simulators, respects Git-tracked files, and offers a full dry-run mode.

Beyond the generic sweep, CleanBit has dedicated workbenches for developers and AI users. A Project Artifacts page finds node_modules, target, .build, .venv, Pods, .next and other recompilable build outputs, showing last-modified times and skipping anything recently written. An AI Sessions page targets only .jsonl conversation history from Claude Code or Codex, with time-range filters and always moves files to Trash. Space tooling includes a treemap with hard-link dedup, large-file filters by size and last-opened date, and byte-level duplicate detection that forces keeping at least one copy.

Uninstalling apps also gets the careful treatment: residual caches and logs are cleaned by default, but preferences, cookies, and app data stay untouched unless you explicitly opt in, and shared data across multiple versions is preserved. Everything runs inside the macOS sandbox, requiring only personal-folder access for most operations, with full disk access optional. The app has no account system and never sends your filenames or file contents anywhere.

Takeaways
— Runs in the macOS 15+ system sandbox; only personal-folder authorization is needed for most features, full disk access is optional and only for Trash and container caches.
— Smart scan covers system/browser caches, download installers and app residuals, developer tool caches (Xcode, Homebrew, npm, pnpm, Gradle, etc.), and AI tool caches (Claude Code, Hugging Face, Ollama, LM Studio, PyTorch).
— Scan results are separated into three risk tiers: green (auto-rebuilt, default checked), yellow (moved to Trash, default unchecked), gray (display only, cannot check).
— Six pre-deletion safeguards: symlink boundary validation, inode identity check, iCloud and library protection, running-app/simulator lock, Git-tracking and recent-write guards, and a dry-run mode.
— Project Artifacts page lists recompilable heavy directories like node_modules, target, .build, .venv, Pods, .next with last-modified times; Git-tracked and recently written items are skipped.
— AI Sessions page cleans only .jsonl history files from Claude Code or Codex based on a user-selected time range, moves everything to Trash, and does not touch memory directories.
— Space Analysis uses a treemap with hard-link deduplication; Large Files filters by size and last-opened time via Spotlight.
— Duplicate Files rely on content hashes, list only byte-identical files, and force keeping at least one copy per group.
— Uninstall defaults to removing only the app, caches, and logs; preferences, cookies, and app data are unchecked by default, and shared data across app versions is automatically preserved.
— No account system, all local data stays local; custom UI with theme options, menu bar view, and low-space alerts without background residency.
— The built-in dry-run mode completes the full scan, confirm, and report process without deleting a single file.
Conclusions

The explicit three-tier classification and the default to Trash for yellow items directly attack the trust gap that makes users hesitate with one-click cleaners; deletion is treated as reversible unless it is a pure auto-rebuilding cache.

CleanBit carves out dedicated workflows for AI chat logs and build artifacts, which are now the true disk hogs for developers and AI users, instead of lumping them into a generic cache sweep. This reflects a practical realignment of what cleanup software needs to target.

Source: juejin.cn ↗ Google Translate ↗ Backup ↗