Summary
Roomy (formerly Cleaner) is a native SwiftUI disk storage browser and cache cleaner for people who want to see what is using space on their Mac and safely reclaim it. It scans the startup data volume, a connected disk, or a specific folder; shows allocated ("on disk") and logical sizes separately; groups storage into overview folders, large files, caches, AI tool storage, and a file-type heatmap; and lets the user review explicit targets before moving them to macOS Trash (never emptying it). Files and folders can be protected from cleanup, the latest scan is saved as a preview and restored on relaunch, and an optional OpenRouter AI review analyzes bounded metadata (never file contents) for up to 10 selected items. A read-only command-line report covers Codex and Claude storage.
Platforms
- macOS (desktop app; requires macOS 14 or later — not verified by running, stated in README.md and Package.swift)
- Command line (read-only disk/AI storage reports via zsh scripts — not verified by running)
User roles
- User (Mac owner): scan volumes or folders, browse and filter results, explore subfolders, refresh items or findings, protect paths, review and move caches/personal files/AI data to Trash, configure and use optional OpenRouter analysis, run command-line storage reports
- Demo viewer: browses a marketing demo app with fictional data where cleanup, network requests, and real disk inspection are disabled
Features
- Scan the startup data volume, a connected disk, or a chosen folder and browse results grouped by folder, with background scanning, cancellation, unreadable-path reporting, and separate on-disk vs logical sizes — Files: Sources/CleanerApp/CleanerApp.swift (CleanerModel.scan, CleanerModel.selectScope, CleanerModel.explore), Sources/CleanerCore/Scanner.swift (StorageScanner.scan, ScanResult)
- Explore a colored file-type treemap (video, audio, images, archives, applications, etc.) sized by allocated bytes, click a region or legend entry to filter the list, and see up to the 200 largest files per type — Files: Sources/CleanerApp/FileTypeHeatmap.swift (FileTypeHeatmap), Sources/CleanerCore/StorageTreemap.swift (StorageTreemap), Sources/CleanerCore/FileKind.swift (FileKind.classify)
- Select caches, large personal files, or AI data folders (with multi-select, older-cache selection, and per-item guidance) and move them to macOS Trash via a confirmation dialog that lists every exact path, with paths revalidated and symlinks rejected immediately before cleanup — Files: Sources/CleanerApp/CleanerApp.swift (CleanerModel.trashSelection, CleanerModel.selectedItems, ContentView), Sources/CleanerCore/Exclusions.swift (ExclusionStore, CleanupPolicy)
- Protect files or folders from cleanup (including their contents and ancestors) via context menu or an Exclusions settings sheet; protections persist across launches in exclusions.json and can only be removed after explicit confirmation — Files: Sources/CleanerApp/ExclusionsView.swift (ExclusionModel, ExclusionsView), Sources/CleanerCore/Exclusions.swift (ExclusionStore, CleanupExclusion)
- Refresh a single item's size or all previously found locations without repeating the entire scan, detecting changed contents and missing items while keeping old values for unreadable paths — Files: Sources/CleanerApp/CleanerApp.swift (CleanerModel.refreshItem, CleanerModel.refreshFindings), Sources/CleanerCore/Scanner.swift (StorageScanner.refresh, ItemRefresh)
- Save the latest completed scan locally and restore it on relaunch as a clearly labeled "saved preview" showing when the last full scan completed — Files: Sources/CleanerCore/ScanSnapshot.swift (ScanSnapshotStore, ScanSnapshot), Sources/CleanerApp/CleanerApp.swift (CleanerModel.saveSnapshot, CleanerModel.init)
- Optionally save an OpenRouter API key in macOS Keychain and send bounded metadata (paths, sizes, dates, counts, evidence) for up to 10 selected items for AI categorization into "Potentially rebuildable", "Review manually", and "Not recommended"; AI is disabled until configured, never auto-selects or deletes files, and cannot introduce new filesystem targets — Files: Sources/CleanerApp/AIReviewView.swift (AIReviewView), Sources/CleanerCore/AIReview.swift (AIContextBuilder), Sources/CleanerCore/OpenRouter.swift (OpenRouterClient)
- Show a bottom disk usage bar with system-reported capacity and free space, refreshed periodically and after scan, refresh, or cleanup — Files: Sources/CleanerApp/DiskUsageBar.swift (DiskUsageBar), Sources/CleanerCore/DiskUsage.swift (DiskUsage)
- Present a disk-access setup screen on launch when a best-effort Full Disk Access probe fails, linking to System Settings; a demo mode with fictional data keeps cleanup and network requests disabled — Files: Sources/CleanerApp/DiskAccessSetup.swift (DiskAccessCheck, DiskAccessSetup), Sources/CleanerApp/LaunchOptions.swift (LaunchOptions), Sources/CleanerCore/RoomyDemoData.swift (RoomyDemoData)
- Produce read-only command-line reports of Codex and Claude storage (caches, logs, sessions, artifacts, runtimes) with filters by date, age, project, tool, kind, grouping modes, JSON output, and custom home paths — Files: disk_space_scan.sh (main entry, --ai-only), ai_storage_scan.py (main, parser, scan, classify)
Main user flows
- Scan and clean caches: Launch Roomy → choose Scan This Mac (or Change location → a disk or Specific folder…) → wait for the background scan to finish → open Review caches → optionally click Select older caches → Command-click/Shift-click rows → Review selected… → check the listed exact paths → Move to Trash → empty Trash in Finder when ready
- Explore file types: Scan a location → open File types → click a treemap region or legend entry → browse up to the 200 largest files of that type → click a row's refresh arrow to update a single file → Show all types to clear the filter
- Protect a folder: Right-click a result row (or open its guidance panel) → choose Protect from cleanup → verify the lock label appears on the row → open Exclusions… in the sidebar → Remove protection… and confirm when the path should become eligible again
- Optional AI review: Open AI settings… in the sidebar → save an OpenRouter API key in Keychain and choose a model → select up to 10 rows → Analyze with AI… → review the collected relative paths, sizes, dates, and evidence → Send for analysis → read the returned categories → have Roomy select recommended candidates → confirm Move to Trash
- Drill into a folder: Click a folder name in results → wait for the background folder scan → use Back and breadcrumb buttons to return to prior results without rescanning → refresh or review items within the original scan boundary
- Command-line AI storage report: Run zsh disk_space_scan.sh --ai-only (optionally with --older-than 30, --project, --tool, --kind, --group-by, --before/--after, --files, --json, --limit, or a custom home path) → read the size-ordered tables and totals → run zsh disk_space_scan.sh for the full disk report
Integrations and external services
- OpenRouter (optional): sends bounded file metadata and a user question to the configured model (default z-ai/glm-5.3) using a Keychain-stored API key; requests may incur charges and use the account's provider logging policies
- macOS Keychain (stores the OpenRouter API key locally)
Known limitations
- Beta software; the app moves items to Trash but never empties Trash, so disk space is reclaimed only after the user empties Trash in Finder
- macOS has no public API to read the Full Disk Access toggle; a successful probe is evidence of access, not a guarantee; unreadable paths are reported rather than read
- Allocated sizes are estimates: shared APFS clone blocks can be counted more than once, and full scans deduplicate hard links while partial refreshes measure folders independently
- AI analysis cannot verify whether an image is unused, a project is active, or a backup exists; it is disabled until an API key and model are configured, and the demo's AI output is prewritten
- The CLI report sizes exclude directory metadata, do not deduplicate hard links, and cannot reliably divide shared caches/runtimes by project; Claude project folders that cannot be matched keep their encoded folder name
- The sealed macOS system volume is excluded from the default data-volume scan; nested mounts are skipped during scans
- Requires macOS 14 or later and Swift 6 tooling to build; the build script uses an ad hoc signature, so downloaded builds may trigger Gatekeeper warnings
How to install
Installation document found: yes
Prerequisites
- macOS 14 or later (to run the app)
- Xcode or the Swift command-line tools with Swift 6 or later (to build)
- zsh (used by the build and scan scripts)
- Python 3, standard library only (for the command-line reports and their tests)
Install
None (the repository contains the application source; build it as described below)
Configure
- CODEX_HOME (optional): overrides the Codex home path used by the command-line AI storage scanner
- CLAUDE_CONFIG_DIR (optional): overrides the Claude home path used by the command-line AI storage scanner
Build
zsh scripts/build-app.sh
Demo build:
zsh scripts/build-app.sh --demo
Run
open dist/Roomy.app
Development run without building the app bundle:
swift run Roomy
Demo app:
open "dist/Roomy Demo.app"
Command-line reports:
zsh disk_space_scan.sh
zsh disk_space_scan.sh --ai-only
Tests:
swift test
python3 -m unittest test_ai_storage_scan.py
Port
Unknown (desktop application with no listening network port)