Note: This is the canonical spec. All scripts are embedded here with their full content. When editing scripts, update this spec to include the complete file content — no stubs or references to external files.
A two-layer memory system for Claude Code that compounds knowledge across sessions. Primary mechanism is proactive in-session note-taking (via CLAUDE.md instructions). Safety net is a Stop hook that spawns background Sonnet (medium effort) to extract missed learnings from transcripts. Periodic Opus (low effort) GC prevents unbounded growth. On /clear, a fast Sonnet (low effort) pass captures learnings before context is discarded.