Amnesia

•

Ensures seamless context continuity for Claude Code agents by capturing and reinjecting structured handoffs before and after context compaction.

Amnesia is a vital plugin for Claude Code users, addressing the critical problem of context loss during model compaction. AI agents often suffer from degraded memory and working state after a `/compact` command, as their detailed working memory is replaced by a high-level summary. Amnesia intercepts this process, proactively capturing a structured handoff of the agent's current task, working theory, active files, and verbatim user constraints. This comprehensive information is then seamlessly reinjected upon session start or after compaction, ensuring the agent maintains its coherent thought process, reduces drift, and enhances long-term productivity without requiring manual intervention.

주요 기능

01Perfect-recall escape hatch using on-disk JSONL transcript for lost detail
02Continuous capture of working state via tool calls into an append-only JSONL transcript
03Invisible background operation with no required UI or commands
04Multi-layer handoff mechanism (mechanical, Opus enrich, Stop refine, preemptive snapshot)
05Integrated read-only MCP server for agent-driven retrieval of handoffs
060 GitHub stars

사용 사례

01Maintaining AI agent memory and working state across Claude Code compaction events
02Recalling specific past details or archived project states for improved agent performance and continuity
03Ensuring AI agents retain specific user constraints, ongoing tasks, and working theories