Back to home

Changelog

All notable changes to macOS Cleanup are documented below, newest first. The project adheres to Semantic Versioning.

v4.0.52026-11-19

A small release: you can now check for a new version from Settings. Engine behaviour did not change: what a cleanup removes, and how, is the same as in 4.0.4.

Added

  • Settings › System › Check for updates looks for a newer release on GitHub and shows the result next to the row. When a newer version exists it asks once, then downloads it, verifies its SHA-256 checksum and replaces the installed copy; the previous copy is kept for macos-cleanup update-self --rollback. Nothing is checked by itself: only when you choose it in Settings or press U on the Help screen.
v4.0.42026-11-19

A small release: new progress bars. Engine behaviour did not change: what a cleanup removes, and how, is the same as in 4.0.3.

Changed

  • New progress bars on the Dashboard: a slim line with a smooth leading edge, the same as in macOS Updates. A running bar carries a moving highlight, a step without a measure yet shows a short gliding segment, and finished bars keep one colour for the result and stay still. Nothing moves when no run is active or when Animations is off in Settings.
v4.0.32026-11-18

A small release: the screens and documents now say more clearly what a cleanup does. Engine behaviour did not change: what a cleanup removes, and how, is the same as in 4.0.2.

Changed

  • The plan review before a cleanup now says exactly what the program will do: native commands such as Docker are asked about once more and cannot be undone, locations outside your home folder act only in permanent mode, system locations are never removed, a category set to skip is shown as skipped, and Clean safe lists every category you set to auto mode.
  • Diagnostics and the disk overview are clearer: the used percentage is shown next to Used, sizes are in GiB and MiB, the rules overlay status in Diagnostics comes from the engine, and the quarantine line is labelled.

Fixed

  • The documentation now says that Clean safe, --auto-safe and scheduled runs clean the categories you set to auto mode.
v4.0.22026-11-17

A small release: a shorter command name, and a notice when another program uses the same name. The cleanup rules and the protected list are not part of this release.

Added

  • A second, shorter command name: mac-cleanup is the same command as macos-cleanup, and the installer links both names into ~/.local/bin. Without arguments on a terminal, either name opens the terminal interface from any folder; --cli runs plain terminal mode, as it already did for macos-cleanup.
  • The installer, and install.sh --check, now tell you when another program on your PATH answers to macos-cleanup or mac-cleanup, and name that program's file. Another program with the same command name can exist on a Mac, so the name alone does not prove which tool starts.

Changed

  • macos-cleanup update-self on an existing 4.0 install adds the short name too.
  • macos-cleanup uninstall removes the short name as well, only its own link and never another program's file.
v4.0.12026-11-16

A major release. The cleanup rules and the protected list carry over from the last 3.x release. What changes is how you run the tool, where it keeps its files, and how honestly it reports what happened. Read the migration guide before upgrading scripts.

Added

  • A terminal interface with seven tabs: Dashboard, Categories, Quarantine, History, Settings, Diagnostics and Help. It needs Python 3.9 or later and a terminal of at least 40 by 12. Without a terminal you get plain text, and --cli forces plain text.
  • The macos-cleanup command with subcommands: scan, plan, clean, apply, restore, quarantine, history, doctor, schedule, migrate, uninstall, update-self, version and help.
  • A one-line installer that downloads a release package, checks its SHA-256 checksum before unpacking, swaps the program in atomically and keeps the previous version. It never uses sudo, never touches your settings, state or quarantine, and never starts a cleanup.
  • Three folders with separate jobs, plus quarantine: the program, your settings and disposable state such as logs and reports. Each can be overridden with an absolute path.
  • A six-step run (preflight, scan, plan, clean, verify, report) with live progress for each step.
  • --only <ids> cleans exactly the categories you name. All 39 category ids have a tier, a mode (auto, review or skip) and a last scan size. Out of the box only caches of known apps are in auto mode.
  • Restore a whole quarantine run or only selected items, with a restore preview. Existing files are never overwritten.
  • settings.conf, excludes.txt and rules.local.yaml. Your own rules can only make the tool more careful.
  • doctor checks paths, runtime, Full Disk Access, free space, local snapshots, Time Machine age, lock state, 3.x leftovers and the automatic run. history lists past runs.
  • Estimated and measured space are reported separately, with the number of local snapshots next to the measured figure.
  • An opt-in automatic run (schedule install). It is off by default and is never installed by the installer.
  • update-self checks for a newer release and installs it on request, verifying the checksum and keeping the previous version.
  • migrate --preview, --apply and --undo copy your 3.x logs, reports and restore lists into the new layout. It never deletes the old files.
  • Plans are signed: apply --from-plan checks the signature, the Mac, the user and the age of the plan.
  • Language is a setting (en, pl, de, es, fr, it, pt) that follows your system language and falls back to English.

Changed

  • Running with no arguments on a terminal opens the interface. The 3.x flow (a dry run, then an offer to clean) is available with --cli.
  • Logs, reports, plans and journals moved from the program folder to ~/.local/state/macos-cleanup/runs/<run id>/.
  • The restore list of a quarantine run now lives inside that run's folder, so a restore point and its list are kept and removed together.
  • Some category keys changed: time-machine is now tm-snapshots, app-caches is split into app-caches and app-caches-review, brew and brew-stale are merged, and mail-total is gone.
  • Each category is cleaned through one common path with one set of checks, and its result is computed from what happened to each item.
  • Environment settings use the MACOS_CLEANUP_ prefix; the old names still work in 4.x.
  • Python 3.9 or later is required for the interface, for plans and for migrate.

Fixed

  • A category in which every move to quarantine failed is reported as failed. It was reported as cleaned.
  • Restore lists are stored with their quarantine run, so pruning old reports can no longer leave a run without its list.
  • --restore works from any folder, not only from the program folder.
  • The report suggests commands that actually work to apply a plan.
  • A removal that falls outside every known safe location is skipped with a clear reason.

Removed

  • The git clone installer and the 3.x layout of logs/ and reports/ inside the program folder.
  • The unprefixed environment variables AUTO_YES and REMOVE_MODE. They are ignored with one warning.
  • Acceptance of plans written by 3.x, and the mail-total category key.
v3.0.72026-10-29

Complete Ultra-Review P0–P3 safety roadmap implementation: authoritative dry-run, APFS case-insensitive protection, fail-closed runtime config, universal mutex locking with PID recovery, active build cache guards, per-disk TM snapshot retention, and hardened exit codes.

Added

  • Universal mutating mutex lock using atomic mkdir and PID recovery via ps -p to prevent concurrent execution races.
  • Active cache build checks (cache_owner_running) preventing deletion of caches actively in use by running compilers and build tools.
  • Safe unusable iOS simulator runtime deletion via xcrun simctl runtime delete --unusable with reachability safeguards.
  • Independent unreadable path counter metrics providing full transparency on filesystem permission limits during scan.
  • Deterministic exit codes: 0 (Success), 1 (Non-fatal errors / partial / skipped), 2 (Bad arg / config), 3 (Unsupported macOS < 10.15), and 130 (SIGINT / Interrupted). Code 99 permanently retired.

Changed

  • APFS case-insensitive firewall normalizes and hard-blocks protected paths regardless of letter casing (~/.SSH, ~/Library/mail).
  • Authoritative dry-run guarantees exact behavioral parity with apply without modifying any files.
  • Runtime configuration variables (including REMOVE_MODE and QUARANTINE_ROOT) enforce strict fail-closed validation.
  • Time Machine snapshot pruning now guarantees retention of the newest local snapshot per disk volume independently.

Fixed

  • Native tool target binding ensures simctl, tmutil, and system commands execute strictly against validated paths.
v3.0.62026-09-07

Artifact pruning mode (--prune-artifacts), SHA256SUMS installer verification for all runtime scripts and schemas, quarantine metadata durability rollback, and dev-sync rclone hard-exclude deny list.

Added

  • --prune-artifacts mode to safely clean up stale reports, JSONL journals, and intermediate inspection artifacts.
  • SHA256SUMS integrity verification in installer covering all runtime shell scripts, risk classification rules, and JSON schemas.
  • Hard-exclude deny list for dev-sync and rclone jobs preventing accidental exposure of sensitive dotfiles and credentials.

Fixed

  • Quarantine metadata durability rollback: metadata manifests are updated atomically and synced to disk before filesystem operations.
v3.0.52026-09-01

Category registry parity across terminal output, markdown reports, and JSON plans; pnpm >= 8 store path detection; simulator unreachable guard.

Added

  • Full detection and deduplication support for pnpm >= 8 virtual store path (~/Library/pnpm/store).

Changed

  • Enforced category registry parity across terminal UI summaries, exported markdown reports, and plan.json files.

Fixed

  • Fixed process hang when iOS simulator services are unreachable, stopped, or responding with daemon timeout.
v3.0.42026-08-19

Run accounting truth: metrics and summary screens report actual executed actions rather than implied target modes.

Changed

  • Execution counters increment strictly on confirmed filesystem actions, preventing discrepancy between planned and reclaimed space.

Fixed

  • Fixed accounting discrepancy when permission-denied or skipped items were incorrectly added to the reclaimed space total.
v3.0.32026-08-14

Post-migration safety guards and defensive empty array handling for interactive selection prompts.

Added

  • Defensive empty array guards across all interactive cleanup menus preventing bash syntax errors on empty match sets.

Fixed

  • Resolved edge case in state migration when upgrading legacy configuration schemas.
v3.0.22026-08-07

Reliability and security patch release addressing plan round-trip preservation, pre-pass app cache deduplication, APFS purgeable space reporting, and protected path docs sync.

Added

  • Unit Separator (0x1F) TSV Delimiter & Plan Round-Trip Preservation (Gate G18). Resolved parameter corruption in apply --from-plan for native commands.
  • Pre-Pass App Cache Claiming & Accounting Deduplication. Prevents double-counting Homebrew, pip, CocoaPods, SwiftPM, composer, Figma, and JetBrains caches.
  • APFS Purgeable Space Reporting. Updated diskutil query targeting /System/Volumes/Data and reporting Purgeable (APFS) vs Free now.
  • Verification Suite Performance Options & Gate G19 for protected path documentation synchronization across all 7 READMEs.
  • Comprehensive User Guide (docs/USER_GUIDE.md) detailing the 4 core commands, APFS purgeable space, quarantine mechanics, and CLI automation.

Fixed

  • Fixed plan field shift corrupting binary parameters during TSV deserialization.
  • Fixed double-counting accounting bug between app-specific caches and user disposable roots.
v3.0.02026-08-07

Major security overhaul permanently removing all privileged (sudo) operations and expanding the protected-path denylist to 60+ critical locations.

Added

  • Table-driven path protection test suite (tests/test_path_protection.sh) asserting 80+ protected/unprotected path boundaries.

Changed

  • BREAKING: All privileged (sudo) operations removed. System cache cleanup is now report-only. Operates strictly in user space.
  • Extended protected-path denylist adding 30+ new paths including iCloud Drive, CloudStorage, Dropbox, OneDrive, Google Drive, developer source trees (~/Developer, ~/Projects, ~/src, ~/code, ~/repos), and credential dotfiles (~/.config, ~/.kube, ~/.docker, ~/.netrc, ~/.zshrc).
  • Fail-closed path normalization safety check preventing illegal path operations.
v2.1.02026-06-10

Major feature and performance release featuring isolated cleaner execution, defense-in-depth risk revalidation, and single-pass analysis.

Added

  • Apply-time defense-in-depth risk revalidation before deletion.
  • Cleaner execution is now isolated; one cleaner's failure doesn't halt the rest.
  • JSON Schema validation for plan.json and Shellcheck added to CI.

Changed

  • Replaced double-du loops in analyzer with single-pass accumulations for faster scans.
  • Skipped home directory enumeration when running in single-category mode.

Fixed

  • Fixed Time Machine snapshot deletion silently failing by capturing tmutil output.
  • Distinguish "tool missing" from "command failed" for native tools.
v2.0.02026-06-04

Official stable release of macOS Cleanup — professional-grade macOS filesystem cleaning, featuring the strict Analyze → Plan → Apply → Quarantine architecture.

Added

  • Three-phase analyze → plan → apply workflow with reports/plan_<run_id>.json plans.
  • Quarantine-by-default (REMOVE_MODE=quarantine) moving user deletions to Library/Application Support with tsv manifests and restore capabilities.
  • JSONL audit journal (reports/journal_<run_id>.jsonl) recording all planned and executed operations.
  • 28-category analyzer covering Trash, caches, logs, Xcode derived data, iOS simulators, npm, yarn, pip, Homebrew, Docker, Time Machine snapshots, and iOS backups.
  • Apply-time defense-in-depth risk revalidation before deletion.
  • One-line installer (install.sh) that safely clones/updates the repo without executing cleanup.

Changed

  • Replaced double-du loops in analyzer with single-pass accumulations for 3x faster scans.
  • App bundle checks now prefer Spotlight lookup with cached Python plist scan fallback.

Fixed

  • Correctly extract Homebrew stale-size and parse Docker system df output.
  • Robust path validation preventing any modifications or deletions outside the user scope.
v1.9.0-beta2026-05-15

Beta stabilization release introducing the SAFE / REVIEW / DANGEROUS risk model and hardcoded boundary firewalls.

Added

  • SAFE / REVIEW / DANGEROUS risk model layered over YAML rulesets.
  • Hardcoded NEVER_TOUCH safety list protecting Mail, Keychains, browser profiles, SSH/GPG keys, and documents.
  • Time Machine freshness check gating deletion actions unless overridden.
Visual era: 2026