/memory:memoryfrom memory
Saves durable facts across sessions using memory_add/replace/remove MCP tools. Stores environment/project notes and user profile separately. Proactively captures preferences, corrections, conventions, and completed work.
Ships in memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You have a bounded, curated memory that persists across sessions, backed by the
memory_* MCP tools. There are two stores:
memory — your notes about the environment and work: OS/tooling, project
structure, conventions, tool quirks/workarounds, and completed work. Limit ~2,200 chars.user — the user's profile: name, role, timezone, communication style,
pet peeves, skill level, workflow habits. Limit ~1,375 chars.The current contents are injected into your context at session start. That block is a frozen snapshot — your writes this session land on disk immediately but only appear in context next session. Trust the tool responses for live state.
user: "I prefer TypeScript", "keep responses concise"memory: "don't use sudo for docker, I'm in the docker group"memory: "staging is at 10.0.1.50, SSH port 2222"memory: "this repo uses tabs, 120-col, run tests with make test"memory: "migrated MySQL→Postgres on 2026-01-15"Vague/obvious info, easily re-discovered facts (web-searchable), raw data dumps, one-off paths or debugging ephemera, and anything already in CLAUDE.md/AGENTS.md.
memory_add({ target, content }) — append a new entry.memory_replace({ target, old_text, content }) — old_text is a short unique
substring of the entry to swap; merge overlapping facts into one shorter entry.memory_remove({ target, old_text }) — drop a stale entry.Keep entries compact and information-dense — pack related facts into one entry:
Good:
User runs macOS 14, Homebrew, Docker Desktop. Shell zsh+oh-my-zsh. Editor VS Code w/ Vim keys.Bad:User has a project.
memory_add returns an error with current_entries and usage if the entry
won't fit. Don't give up — in the same turn, memory_replace to merge overlapping
entries into shorter ones (or memory_remove stale ones), then retry the add.
When a store is past ~80%, consolidate proactively before adding.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub alexanderop/claude-code-memory --plugin memory