A macOS disk usage visualiser. Point it at your home folder, another folder, or a whole volume, and Copăcel scans it concurrently, then shows where the space went — as a squarified treemap, a sortable file list, and a ranking of the folders actually holding the bulk of it.
- Treemap — a squarified, recursive treemap of the scanned folder, coloured by file extension. Click a tile to select it, double-click to drill in.
- File list — a sortable, hierarchical view of the same tree, with breadcrumb navigation as you drill into subfolders. Clicking a treemap tile opens the list down to that file and scrolls it into view.
- Clusters — a ranking of the folders actually holding the space. A folder only counts as a cluster when its weight is spread across its contents, so you get the one subfolder that's 50 GB rather than every ancestor above it.
- Legend, by kind or by extension — group files into categories (disc and VM images, binaries and build output, archives, media, code) or break them out per extension. Clicking an entry highlights every matching tile in the treemap. Per-extension colours are deterministic, so the same extension looks the same across runs.
- Start screen — your home folder first, then mounted volumes (boot volume, then internal, then removable) with used space and a usage bar, updating live as drives are plugged in or ejected.
- Reveal in Finder / Copy Path / Move to Trash from a file's context menu.
- Full Disk Access aware — warns before a scan if the grant is missing, and afterwards lists exactly which folders were skipped. Distinguishes folders macOS protects (which the grant opens) from ones ordinary permissions deny (which it doesn't), and marks each in the file list so an unreadable folder isn't mistaken for an empty one.
- Accurate totals — the scanner won't cross into another mounted volume, including a
firmlinked Data volume like
/System/Volumes/Data, so scanning a volume never double-counts content reachable by more than one path. Per-directory totals agree withdu -skl.
Scans of several million files are expected and handled; the treemap and the list stay responsive while you explore one.
Requires macOS 15+, Xcode, and XcodeGen.
xcodegen generate
open Copacel.xcodeprojThe scanning, layout, clustering, categorisation, and volume-listing logic lives in the
CopacelCore Swift package, independent of the UI, and is unit tested there:
swift test --package-path CopacelCoreSome behaviour can't be reached from a unit test — whether the scanner treats a real mount
as a boundary needs a real mount. VerifyMountBoundary
is a manual check that sets one up with a disk image and tears it down again:
swift run --package-path CopacelCore VerifyMountBoundaryCopacel— the SwiftUI app.ScanViewModeldrives all UI state; views are largely presentational, taking state and closures rather than owning logic. Derived state — sorting, extension totals, clusters — is computed off the main actor so it doesn't stall the interface on a large tree.CopacelCore— a local Swift package with no SwiftUI/AppKit dependency, holding the directory scanner, treemap layout, clustering, extension and category stats, sorting, and volume enumeration — everything that can be tested without a UI.
See RELEASING.md for the branching model and the full release process, from cutting a release branch through local signing to publishing on GitHub.
Copăcel is written almost entirely by an LLM, using Claude Code. I don't write Swift. I decide what the app should do and how it should behave, review what comes back, and try it against my own files; the model does the code generation.
