Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By EliaAlbertiv2.0.0MITIn 1 marketplace
Restores project context in a new session from curated logs you save, searchable by topic. Hooks save the raw transcript before each compaction and inject a memory brief at session start.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Persistent memory across sessions. Never lose context again.
Estimated ~66% reduction in session-restart token cost (analytical model, range 51-74%).
|
/cpr:preserve Save key learnings to CLAUDE.md |
/cpr:compress Capture the full session to a searchable log |
/cpr:resume Restore context from past sessions |
Three skills and two hooks that save, search, and restore your conversation context, so you can pick up exactly where you left off.
Is it for me? • Problem • Solution • Why It Saves Tokens • Installation • Usage • Workflow • Upgrading • FAQ
CPR is a Claude Code plugin. It adds three slash commands and two hooks:
| Piece | What it does |
|---|---|
/cpr:compress | Writes a structured, searchable session log. A script appends the raw transcript. |
/cpr:preserve | Updates CLAUDE.md with the learnings every future session should start with. |
/cpr:resume | Loads recent session summaries and searches past sessions by topic. |
| PreCompact hook | Saves the raw transcript before every compaction, manual or automatic. |
| SessionStart hook | Hands the model a short memory brief when a session starts or compacts. |
No build step, no dependencies beyond Python 3.10, and every file is plain markdown or a small script you can read.
Yes if you work on the same project across several Claude Code sessions and find yourself re-explaining what happened last time, or if you want the full conversation kept on disk and searchable by topic rather than flattened into a compaction summary.
No if your sessions are one-off fixes or throwaway scripts. There is no next session to pay the save back.
CPR sits next to CLAUDE.md and Claude Code's auto memory rather than replacing them. CLAUDE.md holds instructions, auto memory holds preferences, CPR holds the state of the work. Install takes one line, and removing it is /plugin uninstall cpr@cpr.
Claude Code has no memory of the work between sessions. When you close a conversation, the decisions, the fixes, the paths and the reasons go with it.
It gets worse:
7-day copy clicks
npx claudepluginhub eliaalberti/cpr-compress-preserve-resume --plugin cprBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground