automem
Persistent memory plugin that recalls and stores project context across Claude Code sessions.
- CCM score
- 58 of 100
- version
- 0.19.3
- GitHub stars
- 67
Own this plugin? Claim it
What it does
- Adds
/memory-recall,/memory-store, and/memory-healthcommands plus amemory-managementskill for AutoMem - Starts each session with a SessionStart hook that injects a two-phase recall prompt for project context
- Provides store, recall, associate, update, and health tools via a bundled MCP server; delete is available
- Tags memories with a project slug and bare category tags, and ties decisions, fixes, and preferences to importance scores
Persistent memory across conversations. Remember preferences, decisions, and project context with AutoMem.
Add marketplace
/plugin marketplace add verygoodplugins/mcp-automemRun it inside Claude Code once, then install the plugin below.
Install
/plugin install automem@verygoodplugins-mcp-automemRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceMemory Management Skill
Use AutoMem to maintain persistent context across conversations and coding sessions.
Tool examples below use short names (recall_memory, store_memory); call
them on whichever AutoMem MCP server is wired in (plugin installs namespace
them as mcp__plugin_automem_memory__*, user-level servers as mcp__memory__*).
Other hosts, including Grok Bot, assign their own connector/tool names; discover
the available AutoMem tools and use the names exposed by that host.
This skill teaches the current AutoMem playbook: Recall early, store durable outcomes, avoid session-summary noise.
Phase 1: Session Start (Recall)
Always Recall For
- Project context questions (architecture, tooling, deployment)
- Architecture discussions or decisions
- User preferences and code style
- Debugging issues (search for similar past problems)
- Refactoring (understand why current structure exists)
- Integration or API work (check past implementations)
- Performance optimization discussions
Standard Recall Pattern
- Preferences first: recall with
tags: ["preference"],limit: 20,sort: "updated_desc" - Task context second: one semantic query built from actual nouns in the request, optional project slug if unambiguous
- Debugging on demand: recall with the error text as the semantic query and NO tags — bugfix/solution tagging is incomplete, and a tag gate hides cross-corpus fixes
Skip Recall For
- Pure syntax questions ("How does Array.map work?")
- Trivial edits (typos, formatting, simple renames)
- Direct factual queries about current code
- File content requests that can be answered by reading
Recall Examples
// Preferences first
recall_memory({
tags: ["preference"],
limit: 20,
sort: "updated_desc"
})
// Task context recall
recall_memory({
query: "authentication timeout PostgreSQL auth.ts retry logic",
tags: ["myapp"], // drop if ambiguous
time_query: "last 90 days",
limit: 30
})
// Debug similar errors (no tag gate — a hard gate hides cross-corpus fixes)
recall_memory({
query: "TimeoutError authentication request timed out",
limit: 20
})
Phase 2: During Work (Store)
What to Store with Importance Levels
Bug fixes: Insight, importance 0.75, confidence 0.85. Articulated patterns: Pattern, importance 0.8. User corrections: Preference, importance 0.9, confidence 0.95.
| Type | Importance | When to Store |
|---|---|---|
| Decision | 0.9 | Architecture, library choices, pattern decisions |
| Insight | 0.75 | Root cause discoveries, key learnings, bug fixes |
| Pattern | 0.8 | Reusable approaches, best practices |
| Preference | 0.9 for corrections | User config choices, style preferences |
| Context | 0.5-0.7 | Feature summaries, refactoring notes |
Storage Format
Content: "Brief title. Context and details. Impact/outcome."
Tags: [category, project-slug, language]
Type: Decision | Pattern | Insight | Preference | Style | Habit | Context
Use bare tags only. No namespace prefixes (project/*, lang/*), no platform tags, and no date-stamped tags. Keep source attribution in metadata and dates in timestamp / t_valid / t_invalid.
Storage Examples
Decision:
store_memory({
content: "Chose PostgreSQL over MongoDB. Need ACID guarantees for transactions. Impact: Ensures data consistency.",
type: "Decision",
tags: ["decision", "myapp", "database"],
importance: 0.9,
confidence: 0.9,
metadata: {
alternatives_considered: ["MongoDB", "DynamoDB"],
deciding_factors: ["ACID", "relationships", "team_expertise"]
}
})
Bug Fix:
store_memory({
content: "Auth timeout on slow connections. Root: Missing retry logic. Solution: Added exponential backoff with 3 retries.",
type: "Insight",
tags: ["bugfix", "solution", "myapp", "auth"],
importance: 0.75,
confidence: 0.85,
metadata: {
error_signature: "TimeoutError: Authentication request timed out",
solution_pattern: "exponential-backoff-retry",
files_modified: ["src/auth/client.ts"]
}
})
User Correction:
store_memory({
content: "User corrected the previous nesting preference: use early returns over nested conditionals in validation code.",
type: "Preference",
tags: ["preference", "correction", "code-style"],
importance: 0.9,
confidence: 0.95
})
Recall the prior preference and invalidate it with INVALIDATED_BY when it exists.
After Storing: Create Associations
Link related memories to build a knowledge graph:
associate_memories({
memory1_id: "related-memory-id",
memory2_id: "new-memory-id",
type: "INVALIDATED_BY", // or PREFERS_OVER, LEADS_TO, EXEMPLIFIES
strength: 0.9
})
Prefer update_memory over near-duplicate stores when a fact changed in place.
Best Practices
Do
- Load context automatically at session start
- Store high-signal events (decisions, bugs, patterns)
- Create specific relationship types when the link is explicit
- Include rich metadata in memories
- Present recalled information naturally
- Tag consistently with bare tags only
Don't
- Store secrets, API keys, or sensitive data
- Store trivial changes (typos, formatting)
- Create associations without verifying relevance
- Use platform tags or date tags
- Announce "I'm searching my memory" constantly
- Store large code blocks (store patterns/decisions instead)
- Store end-of-session summaries by default
Natural Integration
When recalling memories, weave context seamlessly into responses. Avoid robotic phrases like "searching my memory database" and present memories as normal working context.
Readme
AutoMem Plugin
Persistent memory via the AutoMem MCP server, packaged once for Claude Code, Cursor, and Grok Bot. In Claude Code this plugin is the recommended install: install and updates are handled by Claude Code itself, configuration is prompted at enable time, and uninstall is atomic.
Installation
# In Claude Code:
/plugin marketplace add verygoodplugins/mcp-automem
/plugin install automem@verygoodplugins-mcp-automem
When you enable the plugin, Claude Code prompts for:
- AutoMem API URL — your service endpoint (e.g.
http://127.0.0.1:8001or your Railway URL). Leave empty to useAUTOMEM_API_URLfrom your environment; falls back tohttp://127.0.0.1:8001. - AutoMem API key — only if your deployment requires auth. Stored in the
system keychain, never in
settings.json.
Requirements
- AutoMem service running (see main README)
- Claude Code with plugin support
Migrating from the CLI installer
If you previously ran npx @verygoodplugins/mcp-automem claude-code, remove
that install first so hooks don't fire twice and the memory tools don't appear
under two servers:
npx @verygoodplugins/mcp-automem uninstall claude-code --clean-all
Then install the plugin as above.
What's Included
- Session Start (Recall) — a SessionStart hook injects the two-phase recall prompt at the start of each session
- During Work (Store) — Claude stores decisions, patterns, and fixes via the MCP tools as they stabilize; a PostToolUse hook tracks that a store happened
- Silent Session End — the plugin does not register a Stop hook by default, so AutoMem does not add end-of-session feedback to the chat stream
The hooks are pure bash+sed+grep — no Python or jq required.
Cursor and Grok Bot
The same directory carries .cursor-plugin/plugin.json, which Cursor and Grok
Bot read before the Claude manifest. It adds the configuration form
(AUTOMEM_API_URL, AUTOMEM_API_KEY), an always-on rule
(rules/automem.mdc), a Cursor-native sessionStart hook (cursor/hooks.json
and cursor/session-start.mjs) that derives the project slug from the
workspace folder, and hides delete_memory through enabledTools. Claude
Code ignores those files; Cursor ignores hooks/hooks.json because the
manifest declares its own hooks. The guided installer configures its local
copy automatically. If you copy this directory by hand into
~/.cursor/plugins/local/automem, configure the connection under Cursor →
Customize → Automem → Configure.
Slash Commands
| Command | Description |
|---|---|
/memory-recall | Search and recall relevant memories |
/memory-store | Store an insight, decision, or pattern |
/memory-health | Check AutoMem service status |
MCP Server
The bundled MCP server provides: store_memory, recall_memory,
associate_memories, update_memory, delete_memory, and
check_database_health.
Tool naming note: Claude Code namespaces plugin MCP tools, so they appear
as mcp__plugin_automem_memory__store_memory (etc.) rather than
mcp__memory__*. You'll be asked to approve each tool on first use; to
pre-approve, add the mcp__plugin_automem_memory__* names to
permissions.allow in ~/.claude/settings.json.
Memory Types
Bug fixes: Insight, importance 0.75, confidence 0.85. Articulated patterns: Pattern, importance 0.8. User corrections: Preference, importance 0.9, confidence 0.95.
| Type | Importance | Use For |
|---|---|---|
| Decision | 0.9 | Architecture, library, pattern choices |
| Insight | 0.75 | Bug fixes, root causes, learnings |
| Pattern | 0.8 | Reusable approaches, best practices |
| Preference | 0.9 for corrections | User preferences, style choices |
| Context | 0.5-0.7 | Feature summaries, notes |
Tagging Convention
Use bare tags only:
- Project slug when the memory is clearly project-scoped
- Category tags like
decision,bugfix,deployment,test - Language tags only when they add recall value
Use bare tags only. No namespace prefixes (project/*, lang/*), no platform tags, and no date-stamped tags. Keep source attribution in metadata and dates in timestamp / t_valid / t_invalid.
Example: ["mcp-automem", "bugfix", "typescript"]
Settings-Level Alternative
If you prefer hooks and permissions written directly into ~/.claude/
(e.g. locked-down environments without plugin support):
npx @verygoodplugins/mcp-automem claude-code
See INSTALLATION.md for details.
More Information
Details
- Marketplace
- verygoodplugins/mcp-automem
- Source
- plugins/automem
- Author
- Very Good Plugins
- Category
- Community
- Listed since
- Apr 7, 2026
Questions
What does the AutoMem plugin add to Claude Code?
The automem plugin gives Claude Code persistent memory through the AutoMem MCP server, which provides store_memory, recall_memory, associate_memories, update_memory, delete_memory and check_database_health. It adds a SessionStart hook that injects a two-phase recall prompt, plus the slash commands /memory-recall, /memory-store and /memory-health.
How do I install the automem plugin in Claude Code?
Run /plugin marketplace add verygoodplugins/mcp-automem first, then run /plugin install automem@verygoodplugins-mcp-automem inside Claude Code. When you enable the plugin, Claude Code prompts for the AutoMem API URL and an optional API key, which it keeps in its own credential store.
Which category does the automem plugin belong to, and what sets it apart?
The automem plugin is in the Memory & Context category on Claude Marketplaces, alongside caveman, claude-mem, cmem-pro, agentdb and ruflo-agentdb. It stands out by storing decisions, patterns and fixes through MCP tools with typed memories and bare tags, and by using hooks that are pure bash, sed and grep with no Python or jq needed.
What do I need before using the automem plugin?
You need a running AutoMem service, which the main README describes, and Claude Code with plugin support. If you previously installed the CLI version with npx @verygoodplugins/mcp-automem claude-code, uninstall it first so hooks do not fire twice.
Similar to automem
More Memory & Contextmem-foreverPluginadsorgcn/DeepSeekHarness20 starsEvery AI tool forgets you. This one doesn't. Ever. Auto-saves your preferences, decisions, and lessons. Survives every session, every tool, every migration.
MCP AutoMemMCP serververygoodplugins67 starsPersistent graph-vector memory via FalkorDB and Qdrant: store, recall, relate, update, and delete memories.
episodic-memoryPluginobra/superpowers-marketplace1.3K starsSemantic search for Claude Code and Codex conversations. Remember past discussions, decisions, and patterns across sessions. Gives you memory that persists betw
cprPluginEliaAlberti/cpr-compress-preserve-resume529 starsPersistent memory for Claude Code. Save, search, and restore conversation context across sessions.
agentmemoryPluginrohitg00/agentmemory30.6K starsPersistent memory for AI coding agents -- captures tool usage, compresses via LLM, injects context into future sessions
ai-memoryPluginakitaonrails/ai-memory16.6K starsLong-term memory across sessions and harnesses.