{"slug":"prep-compact","title":"prep-compact","description":"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.\n\nprep-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.\n\nYou paste, run /compact, and the post-compact session resumes correctly. Invoke /prep-compact:prep-compact manually any time to refresh the draft before compacting.","developer":"Koen van der Heide","category":null,"reported_installs":null,"active":true,"first_seen_at":"2026-10-03T22:13:33.942Z","last_seen_at":"2026-11-07T06:00:03.345Z","last_changed_at":"2026-10-03T22:13:33.942Z","platform":"claude","sources":["Community"],"works_with":["Claude Code"],"marketplace_url":null,"repository_url":"https://github.com/koenvdheide/prep-compact.git","web_data":{},"github_data":{},"catalog_sources":{"community":[{"name":"prep-compact","source":{"sha":"f9a92854531cae390e15561a51d4a252376f4958","url":"https://github.com/koenvdheide/prep-compact.git","source":"url"},"homepage":"https://github.com/koenvdheide/prep-compact","description":"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.\n\nprep-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.\n\nYou paste, run /compact, and the post-compact session resumes correctly. Invoke /prep-compact:prep-compact manually any time to refresh the draft before compacting."}]},"manifest":{"url":"https://raw.githubusercontent.com/koenvdheide/prep-compact/f9a92854531cae390e15561a51d4a252376f4958/.claude-plugin/plugin.json","payload":{"name":"prep-compact","author":{"url":"https://github.com/koenvdheide","name":"Koen van der Heide"},"license":"MIT","version":"3.0.3","homepage":"https://github.com/koenvdheide/prep-compact","keywords":["compact","context-management","hooks","skill","session"],"repository":"https://github.com/koenvdheide/prep-compact","description":"When your Claude Code session's real token count crosses a configurable threshold (default 450K), an informational reminder names the warm handoff file. A Stop hook continuously maintains an on-disk handoff JSON (cumulative file paths, in-progress todos, active subagent launches, recent user-message quotes). The /prep-compact skill reads this warm handoff and adds an analytical layer (decisions, constraints, blockers, verb-anchored next-step) to emit a tailored /compact <instructions> block."},"observed_at":"2026-11-06T10:47:36Z"}}