{"repo":"agynio/claude-map-reduce-memory","free":true,"listed":false,"github":"https://github.com/agynio/claude-map-reduce-memory","clone":"git clone https://github.com/agynio/claude-map-reduce-memory.git","description":"Global, unlimited persistent memory for Claude Code agents. Context-activated hints injected automatically via hooks using scatter-gather map-reduce.","language":"TypeScript","stars":29,"topics":["agent-memory","ai-agents","claude","claude-code","llm","map-reduce","prompt-caching","cli","cmr-memory"],"license":"MIT","category":"ai-agents","readme_excerpt":"cmr-memory Persistent, cross-session memory for Claude Code agents. Overview Without persistent memory, a Claude Code agent resets to zero every session — repeating the same mistakes, ignoring learned preferences, requiring the same rules re-prompted every time. Claude's built-in MEMORY.md is per-repo and read once at startup; notes fall off by position as the file grows, not by relevance. cmr-memory replaces that with context-activated retrieval. Notes are stored globally with a plain-language --when condition. Before every tool call, a PreToolUse hook reads the current transcript and runs retrieval against stored notes — using a small LLM that reasons about relevance rather than matching strings. Only hints that aren't already in the transcript are injected, so context stays bounded regardless of session length. At scale, retrieval uses a map-reduce pattern: notes are split into fixed-size chunks and queried in parallel (one Haiku call per chunk) that makes it fast. Chunk system prompts are stable, so prompt caching keeps per-call cost low. Everything ships as a single npm CLI. No extra processes, no MCP servers. cmr-memory init registers the hooks, injects instructions into CLAUDE.md , and configures the retrieval model in one command. Installation Authentication cmr-memory requires an API key for memory calls. Provide it with the --api-key flag or the ANTHROPIC API KEY environment variable. Configure or update the key later: Remove the key: Usage Agent-facing commands The","default_branch":null,"files":null,"tree":[],"storefront":"/r/agynio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/agynio/claude-map-reduce-memory/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}