Claude Map Reduce Memory — Development skill for Claude Code
Global, unlimited persistent memory for Claude Code agents.
How to install Claude Map Reduce Memory
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open agynio/claude-map-reduce-memory and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Map Reduce Memory does
Global, unlimited persistent memory for Claude Code agents. Context-activated hints injected automatically via hooks using scatter-gather map-reduce.
Alternatives in Development
- Code Review Graph — Local knowledge graph for Claude Code 3.7k ★
- Portaljs Add Chart — Add a chart (line, bar, area, pie, or scatter) to a dataset's showcase in a PortalJS portal 2.3k ★
- Claude Supermemory — Persistent memory across sessions and projects using Supermemory 2.3k ★
README
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
npm install -g @agynio/cmr-memory
cmr-memory init --api-key sk-ant-...
Authentication
`cmr-memory` requires an API key for memory calls. Provide it with the `--api-key` flag or the `ANTHROPIC_API_KEY` environment variable.
cmr-memory init --api-key sk-ant-...
ANTHROPIC_API_KEY=sk-ant-... cmr-memory init
Configure or update the key later:
cmr-memory config --api-key sk-ant-...
Remove the key:
cmr-memory config --api-key off
Usage
Agent-facing commands
These are called by the agent via the Bash tool.
cmr-memory write "note content" --when "activation condition"
cmr-memory retrieve "rate limiter
Related Skills
Origin Of Memory
Persistent memory for Claude Code: hooks summarise each session into an Obsidian vault, daily logs compile int
Teardown
Remove the Memory Layer's global surface (MCP registration, hooks, skills), then guide plugin removal.
Agent Memory Kits
Persistent local-first semantic memory for any agent: (Hermes, claude code, codex, etc..) : plugin (auto-recal
Outline Expand
Map-reduce engine — take an outline, dispatch @paper-writer in parallel, one per section, produce first drafts
All Agent Shared Memory
Zero-dependency cross-agent memory + session bridge for Claude Code, Codex, opencode and ZCode: one auditable
Greenbelt
Greenbelt is Claude Code hooks that track token usage across Claude Code sessions and plants trees to reduce y
Related Agents
Claude Harness Engineer
Changes Claude Code harness configuration — settings.json, statusline.sh, CLAUDE.md global rules, hooks, rules
Bm Codebase Mapper
Explores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, a
Gsd Codebase Mapper
Explores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, a