Blackman99

Spoilheap — Git skill for Claude Code

Git community

See what your coding agents left on disk (Codex, Claude Code, OpenCode, Gemini CLI, Cline): worktrees, sessions, crash dumps, half-written git packs, bloated SQLite.

How to install Spoilheap

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Blackman99/spoilheap and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Spoilheap does

See what your coding agents left on disk (Codex, Claude Code, OpenCode, Gemini CLI, Cline): worktrees, sessions, crash dumps, half-written git packs, bloated SQLite. SAFE/REVIEW/KEEP per item with the reason; dry run first; a guard hook stops the agent before the disk is full.

Alternatives in Git

  • Star Us On GitHub — It helps us keep building 7k ★
  • 40+ Claude Code Tips — Tips for getting the most out of Claude Code, including a custom status line script, cutting the system prompt 5.8k ★
  • CCometixLine — A high-performance Claude Code statusline tool written in Rust with Git integration and real-time usage tracki 2.4k ★

README

spoilheap logo: a spoil heap of soil layers with a red-and-white ranging rod and a lime SAFE flag on top

spoilheap

What did my coding agents leave on this disk, and what is safe to delete?
Every worktree, session, crash dump, half-written git pack and bloated SQLite file that Codex, Claude Code, OpenCode, Gemini CLI and Cline left behind, each marked SAFE, REVIEW or KEEP with the reason. It clears only what is safe, and it can stop the agent before the disk hits zero.

CI release MIT website · docs

spoilheap on a demo home with 3.1 GB free: 117 GB of agent leftovers in 28 places, then clean --safe prints a dry-run plan for 56.5 GB, then guard exits 2 and tells the agent to stop

The problem

Coding agents keep their own state on your disk, and none of them tells you the total.

  • "~/.codex alone 59 GB": a post with more than 100k views and close to 2k bookmarks, from people checking their own machines.
  • One Codex run left 263.7 GB of tmp_pack_* from a git that died mid-write (openai/codex#54955). The Codex desktop app can crash-loop and write a Crashpad dump about every second ([openai/codex#25921](https://gith