Fixing Claude Code's Amnesia (blog.fsck.com)

🤖 AI Summary
Anthropic expanded Claude.ai’s memory feature to Pro and Max users, but Claude Code itself still ships without an automated episodic memory. To fill that gap, the author built episodic-memory: a Superpowers marketplace plugin that turns Claude Code’s conversation logs into a searchable episodic memory so the agent can recall past sessions, decisions, and tool calls. By default Claude stores conversation .jsonl files in ~/.claude/projects and deletes them after a month (configurable via ~/.claude/settings.json cleanupPeriodDays), but episodic-memory hooks into startup to archive logs into ~/.config/superpowers/conversations-archive and ingests them into a SQLite-backed vector search index for semantic retrieval. Technically, episodic-memory combines an archival hook, a vectorized SQLite DB for semantic search, a CLI to format/share sessions as markdown/HTML, an MCP helper tool, a “skill” that teaches Claude when to query memory, and a small “haiku” subagent to limit context bloat. The result is near-perfect recall across session histories, enabling faster troubleshooting, fewer repeated explanations, and more context-aware suggestions — i.e., preserving the “why” behind past decisions, not just the “what.” Install via the Superpowers marketplace (add obra/superpowers-marketplace, then /plugin install episodic-memory@superpowers-marketplace) to try it out.
Loading comments...
loading comments...