/agentdb-memory:agentdb-rememberfrom agentdb-memory
Stores memories (episodes, patterns, skills) into AgentDB for cross-session recall. Use after task completion or when the user says 'remember this'.
Ships in agentdb-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.
Persist a memory into AgentDB so a future session can recall it. Three flavors — pick the right one for what's being remembered:
| User phrasing | Use |
|---|---|
| "remember that X works for Y" | Pattern — agentdb_pattern_store |
| "save what happened when I tried X" | Episode (Reflexion) — agentdb_reflexion_store |
| "this is a reusable approach for problem X" | Skill — agentdb_skill_create |
agentdb_pattern_store(
content: "JWT refresh token rotation pattern: ...",
metadata: { topic, project, success: true }
)
Use for facts, conventions, anti-patterns, or anything that should resurface as a hint when a similar query comes up later.
agentdb_reflexion_store(
sessionId: <session>,
task: <what we were trying to do>,
input: <what we tried>,
output: <what happened>,
critique: <what we'd do differently>,
reward: 0..1,
success: true|false
)
Use right after a task completes — success OR failure. Failed episodes feed getCritiqueSummary; successful ones feed getSuccessStrategies.
agentdb_skill_create(
name: <short verb-noun>,
description: <what it does>,
precondition: <when to use>,
action: <how to do it>,
outcome: <what success looks like>
)
Use when a pattern has been validated 3+ times and you want it elevated to a first-class reusable skill (queryable by intent embedding).
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/agentdb-memory-guardScreen what goes into AgentDB memory for prompt injection with the opt-in aidefence guard (AGENTDB_INJECTION_GUARD=warn|block). Use when agents store text from untrusted sources (web pages, tool output, user uploads) into episodes, patterns or skills; when a recalled memory contains instructions; or when the user asks how to stop memory poisoning in AgentDB./agentdb-recallRetrieve relevant memories for the current task from AgentDB. Use at the start of a task to load prior knowledge, when stuck to surface what worked before, or when the user asks "what do we know about X" / "have we done this before?"/agentdb-skill-createPromote a validated pattern into a reusable Skill in AgentDB's skill library. Use when the same approach has worked 3+ times across episodes, or when the user explicitly says "make this a skill" / "save this as reusable".npx claudepluginhub ruvnet/agentdb --plugin agentdb-memoryOther plugins' skills for the same job