By strml
Persistent cross-session memory for Claude Code. Hooks extract learnings automatically; Sonnet + Opus maintain MEMORY.md files per project and globally.
npx claudepluginhub strml/cc-simple-memory --plugin cc-simple-memoryPersistent cross-session memory for Claude Code. Hooks extract learnings automatically into per-project and global MEMORY.md files that Claude reads at the start of every session.
Session → Claude writes MEMORY.md proactively (instructed via SessionStart hook)
Stop → extract-learnings.sh → claude-memory extract → background Sonnet writes MEMORY.md
/clear → capture-learnings.sh → background Sonnet writes project CLAUDE.md
Every 10th extraction → gc-memory.sh → Opus consolidates + archives stale entries
/plugin marketplace add STRML/cc-simple-memory
/plugin install cc-simple-memory
Restart Claude Code.
In your terminal (not inside Claude):
PLUGIN_DIR=$(ls -dt ~/.claude/plugins/cache/*/cc-simple-memory 2>/dev/null | head -1)
[ -z "$PLUGIN_DIR" ] && echo "Plugin not found in cache" && exit 1
bash "${PLUGIN_DIR}/bin/setup.sh"
Or run /memory-setup inside Claude to check status and get the exact command.
Setup adds nine permission entries to ~/.claude/settings.json, creates a ~/bin/claude-memory (or ~/.local/bin/) symlink, and scrubs any legacy hook entries from the old manual install.
Permission changes require a restart to take effect.
Memory updates happen automatically. Use claude-memory in your terminal to inspect:
claude-memory show # Display project + global memory
claude-memory stats # Sizes, transcript counts, log activity
claude-memory log # Recent extraction log
claude-memory search "query" # Search project transcripts
claude-memory extract --dry-run # Preview what extraction would find
claude-memory gc --dry-run # Preview GC without writing
claude-memory compact-archive # Deduplicate bloated archive files
claude-memory show archive # View cold storage
Or use the /memory-setup slash command to check configuration status.
| File | Purpose | Auto-loaded |
|---|---|---|
~/.claude/projects/<encoded>/memory/MEMORY.md | Per-project memory | ✅ |
~/.claude/projects/<encoded>/memory/ARCHIVE.md | Per-project cold storage | ❌ |
~/.claude/rules/global-memory.md | Cross-project memory | ✅ everywhere |
~/.claude/memory/global-archive.md | Global cold storage | ❌ |
Path encoding: Claude Code replaces both / and . with -.
Add SKIP_MEMORY_EXTRACTION on its own line in a session to skip Stop hook extraction for that session.
Set CLAUDE_SKIP_SESSION_LEARNINGS=1 before starting a session to skip all extraction.
| Operation | Model | Frequency | Cost |
|---|---|---|---|
| Extraction (Stop hook) | Sonnet medium | Max 1/hr/project | ~$0.10 |
| Condensation pre-pass | Haiku low | Long sessions only | ~$0.01 |
| /clear capture | Sonnet low | On /clear | ~$0.05 |
| GC pass | Opus low | Every 10 extractions | ~$0.15 |
Claude Mind - Give Claude photographic memory in ONE portable file. Share, version, and transfer your Claude's brain.
Persistent memory for Claude Code. Capture work across sessions and recall relevant context.
Long-term memory for Claude Code. Recalls architecture, conventions, and decisions across sessions — so Claude explains your codebase without file traversal, follows your patterns, and never re-asks what it already learned.
Persistent local memory for Claude Code. Cross-session recall with vector search, automatic archiving, zero cloud dependencies.
Persistent memory system for Claude Code with enforced context
Runs pre-commands
Contains inline bash commands via ! syntax
Bash prerequisite issue
Uses bash pre-commands but Bash not in allowed tools
Share bugs, ideas, or general feedback.
Qiushi Skill: methodology skills for AI agents guided by seeking truth from facts, with Claude Code, Cursor, OpenClaw, Codex, OpenCode, and Hermes guidance.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim