Back to browse
GitHub Repository

Global, unlimited persistent memory for Claude Code agents. Context-activated hints injected automatically via hooks using scatter-gather map-reduce.

28 starsTypeScript

Fixing Claude Code's amnesia with persistent memory

by NBenkovich·Mar 31, 2026·1 point·3 comments

AI Analysis

●●SolidBig BrainSolve My Problem

Scatter-gather retrieval with prompt caching beats naive vector search for Claude Code memory.

Strengths
  • PreToolUse hook deduplicates hints against transcript, keeping context bounded regardless of session length.
  • Map-reduce chunking with stable system prompts enables prompt caching to reduce per-call costs.
  • Single npm CLI with no MCP servers or extra processes—just runs as hooks.
Weaknesses
  • Requires separate Anthropic API key for memory calls, adding cost and configuration overhead.
  • Claude Code memory tools are emerging—Cursor and Continue have competing approaches.
Target Audience

Developers using Claude Code CLI

Similar To

Cursor · Continue · Sourcegraph Cody

Similar Projects