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...
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.
Similar plugins
Find competitors to follow as you develop your plugin.
-
Save structured session context before /clear and auto-restore it next session. Smart Compact captures what was done, why, decisions made...
Shared terms: compact, decision, auto, session
-
Plugin description: Self-learning Claude Code plugin that automatically detects what project you're working on and injects the right file...
Shared terms: needed, file, session, code
-
Persistent cross-session memory for Claude Code. Neutrally auto-injects your project context, decisions, and tech stack at session start ...
Shared terms: decision, auto, session, code
-
Session journaling for Claude Code. Captures what you did in each working session — descriptions, commands, files touched, and auto-gener...
Shared terms: auto, file, session, code
-
Persistent memory for Claude Code. Markdown files, no database. Brain remembers ideas, decisions, features, and progress across sessions ...
Shared terms: decision, file, session, code
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
Technical details
- Sources
- Community
- First seen
- Oct 3, 2026 · 22:13 UTC
- Last seen
- Nov 7, 2026 · 06: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: freshly prepared. Prepared . Refreshed when catalog data changes or after 6 hours. Your account and Follow status are live.