$ show davegoldblatt/total-recall
Total Recall is a memory system for Claude Code that provides persistent, curated memory across sessions. It implements a tiered architecture with daily logs for raw capture, registers for structured domain knowledge, working memory for essential context (auto-loaded every session), and archive for historical data. The core innovation is its write gate mechanism that evaluates whether information should be saved based on whether it changes future behavior, preventing memory bloat. The system includes automatic hooks for session context loading and pre-compaction flushing, a sophisticated ID-based metadata system for tracking memory entries, and maintenance routines for pressure-based cleanup. It's designed as both a plugin and standalone installation with comprehensive slash commands for all memory operations.
The LLM identified 4 files worth highlighting for reuse:
Contains the core protocol and write gate logic that determines what information gets saved. Implements the innovative 'write gate' concept where only behavior-changing facts are preserved, preventing memory bloat. Self-contained and reusable as a memory filtering pattern for any system needing selective persistence.
Implements the write gate evaluation logic that checks if information should be saved. Balances automation with user control by evaluating notes against criteria like future behavior impact, commitments, decisions, stable facts, and explicit 'remember this' requests. Demonstrates skilled conditional writing that could be extracted for any note-taking or memory system.
Implements pressure-based memory cleanup with sophisticated scoring algorithm for demoting, archiving, or pinning entries when working memory exceeds budget. Uses word count and staleness scores to identify candidates, with user-controlled actions. Shows non-obvious skill in memory pressure management that could serve as a general-purpose maintenance tool.
Session start hook that injects open loops and recent daily log highlights as additional context. Works with Claude Code's hook system to prime each session with relevant memory context. Demonstrates skilled integration with Claude Code's extensibility points and could be extracted as a hook template for other plugins.