← Claude plugins
CLAUDE PLUGIN

prep-compact

Koen van der Heide v3.0.3

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 ear...

Create a free account to save this plugin.

From the developer

License

MIT

Works with

Claude Code

Description

From the marketplace listing

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.

What changed

No changes recorded yet. Follow this plugin to keep track of future changes.

Keywords

Files & skills

prep-compact · catalog manifest

Saved declaration

{}
prep-compact · catalog manifest

Saved declaration

{
  "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."
}
prep-compact · catalog manifest

Saved declaration

{
  "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."
}

plugin.json observed Nov 6, 2026 · 10:47 UTC. Manifest source ↗

Catalog declarations and available plugin.json metadata are saved. Referenced skills and executable source files are not downloaded or tested. Missing components in a manifest do not prove that the plugin has none.

Installation instructions

Community

/plugin marketplace add anthropics/claude-plugins-community
/plugin install prep-compact@claude-community

Claude Code installation documentation

Technical details
Sources
Community
First seen
Oct 3, 2026 · 22:13 UTC
Last seen
Nov 7, 2026 · 12:00 UTC
Latest observed change
Oct 3, 2026 · 22:13 UTC
Collection status
Listed
Reported installs
Not provided

Installation counts are source-reported, not independently verified active users. Observation dates are not release dates.

Download plugin data (JSON)

Plugin history: served from cache. Prepared . Refreshed when catalog data changes or after 6 hours. Your account and Follow status are live.