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.