Bangladeshnihal4/macsweep
Free, open-source Mac cleaner written in Rust. Smart Scan, Uninstaller, Browser Cleanup, Large Files, Duplicates and Mac Health, and it shows exactly what it will remove first.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của ngày
#1 Repository của ngày
#1 Repository của ngày
MacSweep
A free, open-source Mac cleaner written in Rust. Clean junk, find big forgotten files, fully uninstall apps and remove orphaned background items, all from a ~7 MB native app.

⬇ Download MacSweep · Website · Report a bug · Request a feature
Why MacSweep?
- Free and open source. No subscription, no ads, no "upgrade to clean" paywall. Every line is right here.
- Safe by design. It never touches your browser profiles, email, passwords or app data (see Safety).
- Tiny and fast. One native Rust binary of about 7 MB. Scans use every CPU core, and the app uses no CPU when idle.
- Private. No accounts, no telemetry, no network access. Everything happens on your Mac.
Features
| ✨ Smart Scan | One click finds caches, logs, build leftovers and Trash, and shows a summary by category. |
| 🧹 System Junk | Review every category and file before cleaning, with per-file checkboxes. Developer (Xcode, npm, Gradle) and ML-model caches (Hugging Face, PyTorch) are included. |
| 📁 Large & Old Files | Finds big files in your home folder, grouped by kind (videos, archives, installers, models & data…), with a "not opened in a year" filter. |
| 🗂️ Duplicates | Finds exact duplicate files (same size and same BLAKE3 content hash) in Desktop, Documents, Downloads, Pictures, Movies and Music. Always keeps at least one copy, never looks inside Photos/Music libraries or app data, and moves extras to the Trash. |
| 📦 Uninstaller | Every app with its icon, version, App Store / Apple Silicon / Intel badges, last-opened date and true size including leftovers. Select several apps at once. |
| 🚀 Launch Agents | Lists background helpers and flags orphaned ones whose app is already gone. |
| 💾 Live disk & Trash | The sidebar always shows free space and Trash size, updates instantly after every clean, and has a one-click Empty Trash. |
![]() | ![]() |
![]() | ![]() |
How MacSweep compares
| MacSweep | Mole (CLI) | Mole for Mac | CleanMyMac | |
|---|---|---|---|---|
| Price | Free | Free | Paid, one-time | Paid |
| Interface | Graphical app | Terminal | Graphical app | Graphical app |
| Open source | Yes, MIT | Yes, GPL-3.0 | No | No |
| Oldest macOS | macOS 11 | see project | macOS 14 | see vendor |
Mole is a far more mature project with many more features. If you're comfortable in Terminal, it's a great choice. MacSweep is for people who want a free graphical app with a strict, tested promise about their data.
Not to be confused with other, unrelated projects also named MacSweep. This is the Rust app by nihal4, at macsweep-app.netlify.app.
Install
- Download
MacSweep-x.y.z.zipfrom Releases, unzip it, and move MacSweep to Applications. - MacSweep isn't notarized by Apple yet (that needs a paid developer account), so macOS blocks it the first time. Either:
- Open it once, click Done, then go to System Settings → Privacy & Security, scroll down and click Open Anyway (macOS 15 Sequoia and later; on older macOS you can right-click the app → Open), or
- run this once in Terminal:
xattr -dr com.apple.quarantine /Applications/MacSweep.app - Turn on System Settings → Privacy & Security → Full Disk Access for MacSweep, then reopen it (or click Relaunch in the sidebar).
- The first time you remove something, allow MacSweep to control Finder. It uses Finder to move files to the Trash, so Put Back works.
Full Disk Access still shows as off?
- In System Settings → Full Disk Access, select MacSweep, click – to remove it, then + to add
/Applications/MacSweep.appagain. - Quit and reopen MacSweep. macOS only applies the permission to a freshly started app.
- Open the app from Applications, not by running the binary in Terminal. From Terminal, the permission belongs to Terminal instead.
Safety — your data is never touched
Some cleaners have wiped people's browser profiles and email. MacSweep is built so that can't happen:
- Allowlist, not blocklist. Junk cleaning can only delete inside a fixed list of cache, log and build folders (
JUNK_ROOTSinsrc/fsutil.rs). Every path is checked again right before deletion. - Never touched: browser profiles (Chrome, Brave, Firefox, Safari: history, passwords, bookmarks, logins), Mail, Messages, Keychains, cookies, app containers,
~/Library/Application Support, and your documents. For browsers, only the disposable download cache is cleaned. - Sign-in and sync caches are skipped: iCloud, CloudKit, Apple ID, Wallet, Family, and anything named like a password manager, token, auth, account or login.
- The Uninstaller keeps your data unless you ask. Leftovers are split into safe to remove (cache, logs, preferences, window state) and Your data (profiles, containers, cookies, web storage), which is never pre-selected.
- Recoverable by default. Apps, large files and launch agents go to the Trash. Only junk is deleted permanently, after you click Clean.
- Apple's own apps are never listed in the Uninstaller.
- Automated tests (
cargo test) check that browser profiles, Mail, keychains, cookies, Documents and../path tricks can never be deleted.
Build from source
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # one-time Rust install
git clone https://github.com/nihal4/macsweep && cd macsweep
./scripts/setup-signing.sh # optional, once: keeps Full Disk Access across rebuilds
./bundle.sh # dist/MacSweep.app for this Mac
UNIVERSAL=1 ./bundle.sh # Apple Silicon + Intel in one app
Roadmap
- Duplicate file finder (v0.2)
- Menu-bar mini monitor (disk, RAM, CPU)
- Browser cache cleanup per browser (cache only, never profiles)
- Scheduled scans and reminders
- Homebrew install (
brew install --cask macsweep) - Notarized builds
Ideas are welcome: open a feature request.
Contributing
Pull requests are welcome! Please read CONTRIBUTING.md. The one hard rule: never widen what can be deleted without a test that proves user data stays safe.
How it's built
- Rust with egui (OpenGL), with no web view inside
jwalk+rayonfor parallel scanningtrashfor Finder-compatible Trash,icnsfor app icons,plistfor app metadata- San Francisco (the system font) is memory-mapped instead of bundled
Releases are built by GitHub Actions: push a tag such as v0.2.0 and a universal .app is attached to a new release, with notes taken from CHANGELOG.md.
License
MIT © S. M. Nihal Ahmed. Icons by Phosphor (MIT).
If MacSweep saved you some space, please ⭐ star the repo. It helps other people find it.
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Free, open-source macOS disk cleaner made for developers' Macs. Explains every gigabyte in plain English with a danger level, never sends your data anywhere, and removes nothing you have not confirmed.
A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
Free up your Mac. Safely. A free, open-source native Mac app that clears the cache and junk your Mac piles up on its own. Files go to the Trash by default, so you can put them back.
Free, open-source CleanMyMac alternative for macOS. Preview disk cleanup by path and size, inspect memory by app, and quit idle apps after review. Menu bar app, CLI, Homebrew. No account or telemetry.
2026 Ultimate System Cleaner & Optimizer – Privacy, Registry & Junk Removal Suite
CCleaner Ultimate 2026 desktop setup with registry cleanup, startup manager, duplicate finder and portable mode for Windows 10 and 11
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...



