cublet-cleaner
OfficialProvides tools to review linked Git worktrees and remove them as part of disk cleanup, with confirmation and warnings about local file loss.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Cublet
简体中文 · Website · MCP Setup · Benchmarks · Issues · X (@zeewasd)
See what silently grew on your Mac — and let Claude Code or Codex clean build caches safely over local MCP.
Open-source (MIT) macOS 13+ disk space analyzer powered by a native Rust scanner, local SQLite scan-diff history, and a local stdio MCP server (cublet-cleaner).
brew install --cask undertone0809/tap/cubletApple Silicon & Intel · Signed & notarized · Direct DMG download · APFS guide · Launch article · Help · Release notes
Growth diff: Compare two saved scans of the same scope to pinpoint what actually spiked — not just what is largest today.
Safe local MCP cleanup: In 6 paired APFS development evaluations vs. shell cleanup loops (same Codex config),
cublet-cleanerused ~73% less recovery time, 58–66% fewer total tokens, and 31–50% fewer workload tokens — with explicit user authorization and active-build protection.100% local analysis: Zero telemetry. Reviewed app uninstall + APFS-aware receipts separating deleted allocation from observed available space.

Features · Performance · Install · Build on macOS · Contribute
Features
See where your space goes
Space Explorer turns allocated disk usage into a proportional treemap. Select a block to inspect its path and usage, drill into folders, browse directory contents in a list, and reveal items in Finder before deciding what to do. Choose a useful scan scope, rescan for a fresh measurement, or stop a running scan.
macOS permissions determine coverage. You can start with basic access or enable Full Disk Access through the app’s guidance. Inaccessible locations and incomplete coverage are reported; they are not counted as empty folders.

Find what changed
Growth compares the latest completed scan with a retained measurement of the same scope. Investigate the folders that grew, drill into the comparison, and inspect added usage, removed usage and net change separately. Choose a retained baseline instead of guessing from today’s largest folders.
Open MCP scan history in Growth to see saved Cublet Cleaner scans by scope. When a previous compatible scan is available, the dialog shows the measured added, removed, and net allocation.
Comparison needs compatible completed scans. A missing baseline is shown explicitly, and older measurements can leave the shared local cache as its budget fills. Moves, renames and hard-link attribution can appear as changes; limited comparisons identify the portion they cover.

Bring your Agent, with your authorization
Cublet Cleaner exposes local tools through Model Context Protocol (MCP). A compatible client can work toward an available-space target inside an authorized location, using native checks to identify eligible rebuildable Rust targets and Go build caches. Active or uncertain inputs remain protected, and operation receipts distinguish deleted allocation from observed available space. Advanced connections also expose scan, history and preview tools, plus application search and reviewed uninstall.
To connect, open AI connections → Connection instructions in the desktop app, then copy its setup prompt to your Agent. Use the executable and arguments supplied by your installed version; the client starts the local process over stdio. The app also shows cleanup history.
Connecting does not authorize deletion. Authorize the task and exact scope before execution. Build-cache recovery permanently removes eligible outputs, which future builds must regenerate. If Settings selects Trash, these tools report a cleanup-mode conflict. Application uninstall supports the selected permanent or Trash mode and requires explicitly authorized items.
Scans and their history stay on your Mac. MCP runs locally, but paths, metadata and receipts returned to your Agent may be processed by its chosen AI provider. See the MCP setup guide & stdio JSON config and privacy information.
Review applications and related files
Search Applications by name or path. Full paths distinguish installed copies, renamed backups and discovered builds, so you can review the exact copy you intend to remove. Inspect the app bundle and optional related caches, preferences and app data before confirming the selected items.
Application Support folders that match only the app name are labeled and start unchecked. You can select them after reviewing the path. Cublet keeps shared data, containers with unverified ownership, and name-matched folders whose name is another installed app’s bundle identifier. Partial results list completed and failed items for another review before retrying.
Application uninstall defaults to permanent deletion. Choose Move to Trash in Settings if you want selected items retained in Finder Trash. Items in Trash still occupy disk space. Emptying Trash is a separate permanent action.
Optional Codex tools and preferences
Review local Codex conversation data, linked Git worktrees and cleanup history. Conversation cleanup uses recovery copies; worktree removal has different effects and can discard local files after confirmation. Stop Codex before destructive actions and read the operation-specific warnings.
Settings include English and Simplified Chinese, appearance, disk access and application cleanup mode. Official builds check for and download updates from the release server. Locally packaged builds disable the official updater.
Read the numbers correctly
Term | Meaning |
Allocated usage | Space attributed to scanned filesystem entries; it can differ from file size. |
Available space | The volume’s observed free space; concurrent writes can change it during cleanup. |
Growth | Change between comparable retained scans, within their measured coverage. |
Recovered space | Observed available-space change after cleanup; it can differ from deleted allocation. |
APFS clones, snapshots and hard links may retain blocks after removal. A treemap describes the selected scope, which may cover only part of the disk.
Related MCP server: Ephemora Cell MCP
Performance
Complete Agent cleanup tasks
In a controlled development evaluation on APFS, Cublet MCP used about 73% less recovery time, 58–66% fewer total tokens and 31–50% fewer workload tokens than the same Agent working through the shell.

Metric | Cublet MCP, Shell = 100 | Reduction |
Recovery time | 27 | About 73% |
Total tokens | 34–42 | 58–66% |
Workload tokens | 50–69 | 31–50% |
Six paired repeated-use comparisons covered three cases: nested Rust worktrees, changed scope with stale history, and ongoing writes. Each case uses the median of its paired MCP / Shell ratios. Recovery time includes Agent startup, reasoning and tool calls until sustained free-space recovery. Total tokens = input + output; workload tokens = uncached input + output. Chart ranges span the three case medians, normalized to Shell = 100. These are development results for the tested tasks, not a typical-performance guarantee. See the method and scope.
Native scanner development pilot
The Rust core uses macOS bulk metadata reads, bounded workers and a local SQLite index. Retained measurements support navigation and comparisons; a fresh scan still checks filesystem metadata across the scope.
Synthetic fixture | Complete scan | Stored measurement restore |
8,329 folders · 643 file entries | 193 ms | 21 ms |
52,009 folders · 4,003 file entries | 1,128 ms | 75 ms |
Medians of five cache lifecycles per fixture, measured on one Mac running macOS 26.6.2 in an optimized development build. Each first scan began with an empty 256 MiB application cache and a warm operating-system filesystem cache; restore used a new scanner process. Independent filesystem checks verified totals. These timings measure native scanner requests on the listed fixtures, not UI latency or typical real-world scan speed. Method.
Install
Homebrew Cask (Recommended)
brew install --cask undertone0809/tap/cubletSigned DMG Installer
Download the Apple Silicon or Intel DMG from the official download page, open it, and move Cublet to Applications. Check Apple menu → About This Mac if you are unsure which build to choose. Cublet requires macOS 13 or later.
Follow the app’s disk-access guidance. Full Disk Access is managed in System Settings → Privacy & Security → Full Disk Access; reopen Cublet if macOS requests it. Installation and troubleshooting · APFS purgeable space guide · Rust target/ & Git worktree guide.
Build on macOS
Install Git, the Xcode Command Line Tools, Node.js 22 or later, and stable Rust with Cargo. Clone the repository so the packaging tools can record the exact source commit.
git clone https://github.com/Undertone0809/Cublet.git cublet
cd cublet
npm ci --include=dev
npm run build
cargo test --locked --manifest-path rust-core/Cargo.toml -- --test-threads=1
profile=$(mktemp -d "${TMPDIR:-/tmp}/cublet-dev.XXXXXX")
MSM_DISK_CACHE_ROOT="$profile/cache" CODEX_HOME="$profile/codex" \
npm run electron:dev -- --user-data-dir="$profile/profile"The isolated profile keeps development data separate when testing alongside an installed copy.
For an unsigned local app bundle:
rustup component add rust-docs
CSC_IDENTITY_AUTO_DISCOVERY=false npm run electron:packageThe Rust documentation component provides the standard library license files included in the bundle. Local packages have the official updater disabled. To cross-build, install the matching Rust target and set CUBLET_ARCH=arm64 or CUBLET_ARCH=x64.
Contribute
Found Cublet useful or want support for another build cache (such as Xcode DerivedData, node_modules, Docker, or uv)? Star the repository, open an issue, or share feedback with @zeewasd on X.
Read CONTRIBUTING.md for tests and issue guidelines. Report vulnerabilities using the private reporting instructions. Cublet is an independent project.
Cublet’s own code uses the MIT License. The source and distributions retain third-party notices.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for Superserve sandboxes: create, exec, and manage Firecracker microVMs
Remote MCP server for notes, tasks, kanban boards and docs - the Slates agentic workspace
Primary-source MCP server with epistemic compiler, dialectical grounding & session replay.
11Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Related MCP Servers
- AlicenseAqualityBmaintenanceMac file and terminal tools for local AI clients, plus an opt-in ChatGPT Developer Mode relay. Checked edits, bounded reads and real exit codes. Free MIT agent; OpenAI listing under review. Owner-level access, not a sandbox.13MIT
- AlicenseAqualityAmaintenanceDependency-free, locally sandboxed MCP stdio server. Tools run as WASM inside a capability-based WASI sandbox (wasmtime); every tools/call is attested with cost/policy and signed manifests fail-closed.3137 PyPI48Business Source 1.1
- AlicenseAqualityBmaintenanceLocal-first MCP server and auditing toolkit for isolating AI coding sandboxes via macOS Seatbelt and auditing Tailscale Serve exposure without Docker.3MIT
- AlicenseAqualityBmaintenanceLocal Go MCP server for AI coding agents that isolates edits inside Git task worktrees, runs 42 AST and security quality gates across 11 languages, and generates brownfield technical debt baselines. Exposes stdio tools, resources, and prompts for workspace status, 1-hop AST impact checks, and gate failure diagnostics.78Apache 2.0