Jvrd97

Claude Compact Keeper — Development skill for Claude Code

Development community

Compaction without amnesia: the summarizer is told to keep your goal, constraints, decisions and paths verbatim, a card with your goal, prompts, pinned notes, edited files and open todos follows the s.

How to install Claude Compact Keeper

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

What Claude Compact Keeper does

Compaction without amnesia: the summarizer is told to keep your goal, constraints, decisions and paths verbatim, a card with your goal, prompts, pinned notes, edited files and open todos follows the summary, and the full transcript before compaction is archived as markdown.

Alternatives in Development

README

compact-keeper

A Claude Code mod that makes compaction keep what matters: your goal, your own words, the files touched and the open work, plus a full markdown copy of the conversation before it was compacted.

compacted — kept goal, 1 note, 14 prompts, 6 files · archive saved

Right after the summary, the model reads a card like this:

[compact-keeper] What the user asked for before this compaction, kept word for word ...

## Goal
Migrate the billing service to the new Stripe API, keep the v1 webhooks working

## Notes the user pinned with /keep
- Never push to main

## User prompts, oldest first (last 14)
- Do not touch the tests folder
- ...

## Files edited or created
- /repo/billing/api.py
- /repo/billing/stripe_v2.py

## Open todos
- [in_progress] Port refunds

## Full transcript before compaction
/Users/you/.claude/compact-keeper/-Users-you-repo//2026-10-06T12-00-00Z.md
Read it when a detail is missing from the summary.

Why

After a compaction Claude "forgets everything": the summary drops the goal, the constraints you set, the decisions and the file paths, and the conversation before it can't be viewed again.

Existing fixes work around compaction rather than inside it: claude-mem keeps memory across sessions, which is a different job, and PreCompact shell hooks can only run a script beside it. This mod hooks the compaction itself (`session.compact`), so it can change what the summarizer is told and wh