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 88plugFSL-1.1-ALv2In 1 marketplace
Seamless context continuity across Claude Code and Grok compaction. Multi-layer background capture (continuous tool-call capture, mechanical PostCompact handoff, async Opus 4.7 enrichment at --effort max, async Stop-hook refinement, and preemptive snapshot before the next compact) keeps the agent working state intact across every compaction and resume. All summarization is isolated from CLAUDE.md/auto-memory and invisible to the user.
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
claude-code, claude, anthropic, ai, llm, ai-agents, developer-tools, automation ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Context continuity for Claude Code and Grok across compaction — structured handoffs that keep agent memory and working state intact through every /compact, auto-compact, and resume.
Inside Claude Code, from the 88plug marketplace:
/plugin marketplace add 88plug/claude-code-plugins
/plugin install amnesia@88plug
grok plugin marketplace add 88plug/claude-code-plugins
grok plugin install amnesia@88plug --trust
[!TIP] That is the whole setup. After install, amnesia runs in the background — no commands, no files to manage, no visible interruptions.
/compact (or auto-compact) fire mid-task.Confirm it is active:
/amnesia:status
You will see the captured handoff for the current project.
When Claude Code compacts, the model's working memory is replaced by a one-shot summary. Exact file contents, prior tool outputs, verbatim user constraints, and mid-task reasoning get paraphrased away. Long AI agent sessions drift after every compact.
amnesia is a Claude Code plugin for context engineering and agent memory. Background hooks capture a structured handoff at every compaction boundary — and proactively before the next one — then re-inject it on session start. The agent resumes knowing:
Read[!NOTE] Recommended install is the 88plug marketplace. Installing from this repo works but will not auto-update with curated releases. The plugin package is the repository root (standard 88plug layout).
| Feature | Detail |
|---|---|
| Invisible by default | Background hooks only; no UI, no required commands |
| Multi-layer handoff | L1 mechanical (sync), L2 Opus enrich, L3 Stop refine, preemptive snapshot |
| Continuous capture | Every tool call appends to working-state.jsonl in under 50 ms |
| Perfect-recall escape hatch | On-disk JSONL is append-only; handoff cites [L:N-M] ranges |
| Isolated summarization | claude -p runs with CLAUDE.md and auto-memory disabled |
| Subagent inject | Trimmed handoff on every SubagentStart |
| Power-user commands | Snapshot, recall, status, promote, sessions, diff, why, migrate |
| Read-only MCP server | recall and handoff_get for agent-driven retrieval |
| Continuity skill | continuity-protocol teaches silent post-compact recovery |
amnesia runs as background hooks. Each event is invisible to you.
| Event | When | Latency | What it does |
|---|---|---|---|
| Continuous capture | Every matched tool call | <50 ms sync | Appends a one-line record to working-state.jsonl |
| PreCompact sidecar | Before compaction | <100 ms sync | Tails the transcript into a sidecar for L1 |
| L1 mechanical | After every compaction | <500 ms sync | Deterministic handoff from JSONL + working-state + git state |
| L2 enrich | After every compaction | asyncRewake, no kill timeout | Opus 4.7 --effort max rewrites the handoff with narrative |
| L3 refine | First Stop after compaction | asyncRewake, no kill timeout | Opus refines the handoff using post-compact work |
| Preemptive | At ~75% of context (~2 MB since last boundary) | async, no kill timeout | Snapshots state before the next compact, while it is still in the window |
| Restore | SessionStart (compact / resume / startup) | <100 ms sync | Injects the handoff into additionalContext |
| Subagent inject | Every subagent spawn | sync | Injects a trimmed handoff (default ≤3 KB) |
| Session end | Session teardown | sync | Final archive snapshot + optional opt-in git push |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
amnesia@88plug is listed by 88plug/claude-code-plugins — review the source before installing
npx claudepluginhub 88plug/claude-code-plugins --plugin amnesiaPlugins from other owners that cover similar ground