A fast, cross-platform disk cleanup utility built with Zig and raylib.
- Smart Detection: Automatically finds dev artifacts (node_modules, target/, build/), caches, and temporary files
- Confidence Scores: Each item shows a safety rating (70-98%) based on category and age
- Stale Detection: Projects not modified in 90+ days are highlighted for safe cleanup
- Safe Cleanup: Preview everything before deletion - moves to trash by default for easy undo
- Undo Support: Press
Zto restore the last deleted item from trash - Cross-Platform: Native support for macOS, Linux, and Windows
- Beautiful UI: Modern dark theme with donut charts and intuitive navigation
- Fast Scanning: Uses optimized system commands (
find/PowerShell) for rapid discovery - Comprehensive Coverage: Scans package manager caches, IDE extensions, browser data, and more
| Category | Examples |
|---|---|
| Dev Artifacts | node_modules/, target/ (Rust), .build/ (Swift), Pods/, DerivedData/ |
| Package Caches | npm, yarn, pnpm, cargo, gradle, maven, pip, gem, composer |
| IDE Extensions | VS Code, Cursor, Windsurf, Zed, JetBrains |
| Browser Data | Chrome, Safari, Firefox, Edge, Brave caches |
| System Caches | Library/Caches, .cache, temp files, logs |
Requires Zig 0.15+
# Clone the repository
git clone https://github.com/augani/sweeper.git
cd sweeper
# Build GUI version
zig build
# Run
./zig-out/bin/sweeper-guiDownload from the Releases page.
| Platform | Download |
|---|---|
| macOS (Apple Silicon) | sweeper-macos-arm64.tar.gz |
| Linux (x64) | sweeper-linux-x64.tar.gz |
| Windows (x64) | sweeper-windows-x64.zip |
macOS may block the app because it's not from the App Store. To run Sweeper:
Option 1: Right-click to Open
- Right-click (or Control-click) on
sweeper-gui - Select "Open" from the menu
- Click "Open" in the dialog
Option 2: Remove quarantine attribute
# After extracting, run:
xattr -cr sweeper-macos-arm64/Option 3: System Settings
- Go to System Settings > Privacy & Security
- Scroll down to find "sweeper-gui was blocked"
- Click "Open Anyway"
./sweeper-gui- Click Rescan to scan your system
- Use sidebar filters (All, Largest, Cache, Dev Artifacts, Temp)
- Select items to delete using checkboxes
- Click Delete to remove selected items
./sweeper [options]| Key | Action |
|---|---|
R |
Rescan |
A |
Select All / Deselect All |
D |
Delete Selected |
Z |
Undo Last Deletion |
Enter |
Confirm Delete (in dialog) |
Esc |
Cancel/Close Dialog |
Q |
Quit |
Sweeper uses sensible defaults but can be configured:
- Stale threshold: Projects not modified in 90+ days are flagged
- Scan depth: Up to 12 levels deep to find nested dependencies
- Result limit: First 200 items for fast initial scan
Sweeper is designed with safety in mind:
- Preview First: All items shown before deletion with size and category
- No System Files: Never touches OS-critical directories
- Confidence Scores: Each item shows 70-98% safety rating based on:
- Category (caches/temp = 95%+, dev artifacts = 70-90%)
- Age (stale projects 90+ days = higher confidence)
- Trash by Default: Moves to system trash instead of permanent deletion
- Undo Support: Press
Zto restore last deleted item
# Build optimized release
zig build -Doptimize=ReleaseFast
# Cross-compile for Windows
zig build -Dtarget=x86_64-windows-gnu -Doptimize=ReleaseFast
# Cross-compile for Linux
zig build -Dtarget=x86_64-linux-gnu -Doptimize=ReleaseFastSee CONTRIBUTING.md for guidelines.
MIT License - see LICENSE for details.
