/memento:memento-memory-loopfrom Memento Memory
Use at the start of any non-trivial task to load prior context from Memento, and at the end to persist what was decided or learned. Also use when the user says "what did we decide", "remember this", "기억해", "지난번에", or asks about past sessions.
Ships in Memento 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.
Memento is an MCP memory server. Memory only compounds if you both read it before working and write it after.
Call recall with the key words of what you are looking for, not a full sentence. Put the issue number, feature name, or file first and drop particles and endings. The text lane only matches the first 8 words of the query, so the topic has to come early.
recall(query: "JWT expiry handling", type: "episodic")
type (working | episodic | semantic | procedural). It is required; calls without it are rejected.memory_injection when you want a token-budgeted summary rather than raw hits.project_id or owner_id when several projects or agents share one database.If a recalled memory actually changed what you did, say so with feedback:
feedback(memory_id: "mem_...", helpful: true)
That signal feeds ranking. Skipping it is how a memory store rots.
Write the outcome back. Pick the type by what the information is, not by when it happened:
| Type | Use for | Lifetime |
|---|---|---|
working | in-flight state for the current session | soft-deleted after 48h |
episodic | what happened: decisions, incidents, completed work | 30d unused |
semantic | durable knowledge: how a thing works, why a rule exists | 180d unused |
procedural | repeatable steps: deploy, release, review checklist (versioned) | 90d unused |
"Unused" means not returned by recall or injection. For episodic, semantic, and procedural, those days are the earliest point, not the deletion date: the memory is soft-deleted only once its forget score also reaches 0.6. Higher importance delays that, and some type and importance combinations never reach it. Pinned memories and memories tagged user-directive are never removed by the automatic cleanup.
remember(
content: "Release 1.29.0 shipped; registry publish runs after the GitHub Release step.",
type: "episodic",
tags: ["release", "ci"],
importance: 0.8
)
For a completed episodic task, pass record instead of putting the five labels in content. failed may be an empty string. Recall renders the labels. Embeddings and FTS see the field values only.
remember(
type: "episodic",
tags: ["completed"],
record: {
decision: "What was decided",
rationale: "Measurement, error text, or file:line",
rejected: "Option reviewed and why it lost",
failed: "",
next_blocker: "What will stop the next session"
}
)
Do not paste source into a memory. Record the repository-relative path, the function or class you changed, the signature that changed, and any constant or regular expression you settled.
Save semantic and procedural memories only when all three hold. The problem recurs. The note is a decision reason, a multi-step workaround, or a reusable procedure. The next agent searches for it and uses the result. A completed episodic record is exempt.
Write a memory whenever a turn produced real work — a code change, a decision, a configuration, a fix. Search first (recall) so you update instead of duplicating.
To update, pass memory_id with update_mode. content is never merged: every mode stores exactly what you send, so send the whole text. Input fields you omit, such as tags, source, steps, or record, are cleared or reset to defaults; project_id is kept. For a memory saved with record, send the whole record again rather than the labelled text that recall shows.
Without memory_id, incremental can still overwrite an existing memory: a close near-duplicate, or for procedural the one with the same workflow_name and skill_name.
replace overwrites the row.incremental overwrites too, but appends steps. For working, episodic, and semantic it also unions tags and keeps the higher importance.versioned writes a new row and keeps the old one.Everything below this line uses tools the server does not advertise by default. Memento registers 22 tools but lists only recall, remember, memory_injection, and feedback, because tool definitions occupy your context for the whole session and Memento is a server people leave running. The unlisted tools are still registered and still execute — but a tool you never saw in tools/list is a tool you cannot call.
To get all 22, add MEMENTO_TOOLSET=full to the memento server's env block in your MCP config:
"env": {
"DB_PATH": "${CLAUDE_PLUGIN_DATA}/memory.db",
"MEMENTO_TOOLSET": "full"
}
Editing the plugin's own .mcp.json will not survive a plugin update — set it in your user or project MCP config instead. If the tools below are missing, this is why; say so rather than working around it.
Store repeated processes with remember_procedure. When a step changes, save the new version and use procedural_diff / procedural_rollback to see or undo the change — that history is the point.
set_anchor pins the context a long task keeps needing; get_anchor restores it in a fresh session. Use it for the one or two facts you would otherwise re-explain every time.
If recall responses carry an introspection_hint, low-confidence or high-failure memories have accumulated. Report it to the user and point them at get_introspection_summary — do not silently keep injecting bad context.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jee1/memento --plugin memento