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
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% lessTotal tokens
58–66% fewerWorkload tokens
31–50% fewerRepeated-use macOS / Rust cleanup tests. Ranges span the paired medians of three cases; results vary by task.
| Metric | Shell Baseline | Cublet MCP | Observed Savings |
|---|---|---|---|
| Recovery time | 100 | 27 | ~73% less time |
| Total tokens | 100 | 34–42 | 58–66% fewer tokens |
| Workload tokens (uncached input + output) | 100 | 50–69 | 31–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 Fixture | Complete Fresh Scan | Stored Measurement Restore (SQLite) |
|---|---|---|
| 8,329 directories · 643 file entries | 193 ms | 21 ms |
| 52,009 directories · 4,003 file entries | 1,128 ms | 75 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.