TrimReaper

•

Reclaims disk space consumed by AI coding agents and development environments by safely purging caches, abandoned worktrees, and build artifacts.

TrimReaper is an automated disk cleanup and garbage-collection engine built specifically for macOS to handle the debris left behind by AI coding agents like Claude Code, Cursor, and Codex. Rather than indiscriminately purging directories, it uses a proof-based deletion system—verifying that jobs are complete, git repositories have no unpushed commits, no active processes are using the files, and uncommitted changes are safely archived before deletion. TrimReaper can operate as both a CLI tool and an MCP server, using an intelligent escalation ladder alongside native APFS deduplication and compression to reliably hit target disk watermarks.

Key Features

01Escalation ladder featuring native APFS clone deduplication and transparent log compression
02Proof-based safety checks ensuring no unpushed git changes, active processes, or unpreserved secrets are lost
03Automated identification and pruning of idle agent worktrees and scratch directories
04Coordinated cleaning of standard developer tool caches including npm, uv, bun, Docker, and Homebrew
05Archive-first safety mechanisms with SHA-256 verification and durable plan receipts before removing uncommitted work
060 GitHub stars

Use Cases

01Preventing disk exhaustion on machines running automated multi-agent coding loops and swarms
02Automating scheduled background disk maintenance via launchd to enforce target storage watermarks
03Safely cleaning orphaned Git worktrees, build targets, and stale node_modules across extensive project directories