Cublet Engineering Benchmarks

Benchmark: Cublet MCP vs Shell disk cleanup on macOS APFS.

Matched repeated-use APFS cleanup tests comparing a coding agent using shell utilities against the same agent using Cublet’s local MCP server, alongside native Rust scanner timings.

Evaluated November 18–21, 2026 · Published · macOS APFS

Executive summary: Across six paired repeated-use APFS cleanup runs with the same Codex configuration, Cublet Cleaner (MCP) reached sustained free-space recovery in ~73% less time (index 27 vs 100), used 58–66% fewer total tokens (34–42 vs 100), and used 31–50% fewer workload tokens (50–69 vs 100). Separately, Cublet’s Rust native scanner scanned 52,009 directories in 1,128 ms and restored stored measurements from SQLite in 75 ms.

1. Coding Agent Cleanup: Cublet MCP vs Shell Baseline

When a Mac runs low on disk mid-build, a shell-driven agent typically chains du, find, lsof, rm -rf, and df across multiple reasoning turns—burning tokens on raw directory listings and risking active builds. Cublet Cleaner consolidates scope validation, active-build checks, deletion, and post-cleanup space verification into one local MCP operation.

Agent with and without MCP

Same cleanup task. Shell baseline = 100. Lower is better.

Recovery time

~73% less
Without MCP100
With MCP27

Total tokens

58–66% fewer
Without MCP100
With MCP34–42

Workload tokens

31–50% fewer
Without MCP100
With MCP50–69

Repeated-use macOS / Rust cleanup tests. Ranges span the paired medians of three cases; results vary by task.

MetricShell BaselineCublet MCPObserved Savings
Recovery time10027~73% less time
Total tokens10034–4258–66% fewer tokens
Workload tokens (uncached input + output)10050–6931–50% fewer tokens

Three Controlled APFS Test Scenarios

  • Nested Rust Git worktrees: Multiple branches holding separate rebuildable target/ directories alongside an active build.
  • Changed scope with stale history: Previously retained scan data no longer matches current directory contents, requiring fresh verification before deletion.
  • Ongoing disk writes: Background writes continue during cleanup, testing whether the agent achieves sustained available space rather than a transient dip.

Pass gate for every run: At least 320 MiB of sustained available space on the APFS volume, followed by a real 96 MiB write test and an offline cargo continuation check.

2. Native Rust Filesystem Scanner & SQLite Restore

Cublet’s scanning core is written in Rust and reads macOS filesystem metadata in bounded parallel batches, persisting directory totals in a local SQLite index so reopened views and Growth baselines load without re-walking untouched trees.

Synthetic FixtureComplete Fresh ScanStored Measurement Restore (SQLite)
8,329 directories · 643 file entries193 ms21 ms
52,009 directories · 4,003 file entries1,128 ms75 ms

3. Methodology & Honest Caveats

  • Agent evaluation (Nov 18, 2026): Six repeated-use pairs using the same requested Codex configuration on controlled APFS fixtures. Normalized ratios reflect per-scenario paired medians (shell = 100). Recovery time includes agent startup, reasoning, and tool execution.
  • Scanner pilot (Nov 21, 2026): Medians of 5 cache lifecycles per synthetic fixture in an optimized development build on one Mac running macOS 26.6.2, starting each cold scan with an empty 256 MiB app cache budget and a warm OS filesystem cache. Restore timings were measured in a new scanner process, and totals were independently verified.
  • Scope caveat: Both datasets are development evaluations on controlled fixtures. Real-world results vary by drive speed, directory depth, APFS snapshot pressure, active writers, and model/client versions.

Frequently asked questions

What does the 75 ms number measure?

75 ms is the median time to restore stored directory measurements for a 52,009-directory synthetic fixture from Cublet’s local SQLite index in a new scanner process. A complete fresh scan of that same fixture took 1,128 ms.

How was sustained free-space recovery verified in the MCP benchmark?

Each of the six repeated-use paired runs on controlled APFS volumes had to reach at least 320 MiB of sustained available space and pass a real 96 MiB write followed by an offline Cargo build continuation.

Will every Mac and coding agent see the exact same 73% time reduction?

No. These numbers come from controlled APFS development fixtures with a consistent Codex configuration. Actual time and token savings depend on your repository layout, active writers, model, and client prompt overhead.

Test Cublet on your own Mac

brew install --cask undertone0809/tap/cublet