prep-compact
Listed in Community
Claude Code's auto-compact fires late and its generic summary often drops the files, decisions, and blockers you needed. The post-compact session then veers off course. prep-compact nudges you earlier: a UserPromptSubmit hook watches your transcript's byte delta since the last compact. When it crosses a configurable threshold (default 4 MB ≈ 450K tokens on Opus 4.7), Claude is prompted to invoke the prep-compact skill, which drafts a tailored /compact <mini-schema> covering goal/next/files/decisions/state. You paste, run /compact, and the post-compact session resumes correctly. Invoke /prep-compact:prep-compact manually any time to refresh the draft before compacting.
Where this came from
- Listing read from:
- https://raw.githubusercontent.com/anthropics/claude-plugins-community/2285a368b0eab744111db241f9a2273a9d34f233/.claude-plugin/marketplace.json
- Homepage (as listed):
- https://github.com/koenvdheide/prep-compact
- Read on:
- 15 August 2026