cc-memory — Claude Code persistent memory plugin (anti-patch + forced handoff + live plan anchor)
npx claudepluginhub skymanbp/cc-memoryPersistent memory for Claude Code — automatic save/restore across compactions and sessions. Anti-patch reconcile-on-write, forced PROGRESS.md handoff, live PLAN.md anchor with plan-refiner / plan-guardian subagents, FTS5 search, AI-judged extraction with Haiku + local Ollama fallback.
Claude Code persistent memory plugin — automatic LLM-powered save/restore of conversation context across compactions and sessions via SQLite + lifecycle hooks.
Claude Code compresses (compacts) conversations when the context window fills up, causing information loss: decisions, experiment results, task lists, and project knowledge disappear. Conversations that end normally (user closes terminal) also lose context.
cc-memory provides three layers of automatic memory capture so no important information is ever lost:
Plus a Stop hook that reminds Claude to call /save-memories before the conversation ends.
~/.claude/.credentials.json (no separate API key needed)memory/ directory with SQLite DBmem.py with full SQL accesscc-memory-installer.exe from Releases# Clone the repo
git clone https://github.com/skymanbp/cc-memory.git
# Run the installer GUI
python cc-memory/cc_memory/installer.py
# Or CLI setup
python cc-memory/cc_memory/setup.py
# Initialize a project
python cc-memory/cc_memory/setup.py --init /path/to/your/project
The installer will:
~/.claude/hooks/cc-memory/~/.claude/settings.jsonmemory/ directory in the specified projectcc-memory auto-detects your Claude OAuth token from ~/.claude/.credentials.json. No manual API key setup is needed if you're logged into Claude Code.
If auto-detection fails (e.g., running outside Claude Code), you can:
# Set env var manually
setx ANTHROPIC_API_KEY "sk-ant-..." # Windows
export ANTHROPIC_API_KEY="sk-ant-..." # Linux/macOS
# Or use the Dashboard Settings dialog
API key resolution order: manual setting → ANTHROPIC_API_KEY env var → Claude OAuth token
Copy the skill template into any project for Claude-judged memory saves:
mkdir -p <project>/.claude/skills/save-memories
cp cc_memory/skill_template.md <project>/.claude/skills/save-memories/SKILL.md
Then invoke with /save-memories during any conversation, or add a CLAUDE.md rule to auto-trigger it.
Global (installed once, shared by all projects)
├── ~/.claude/hooks/cc-memory/ ← Plugin code (14 .py files + config.json)
├── ~/.claude/settings.json ← Hook trigger configuration
└── ~/.claude/.credentials.json ← OAuth token (read-only, managed by Claude Code)
Claude Code marketplace entries for the plugin-safe Antigravity Awesome Skills library and its compatible editorial bundles.
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations
No description available.