/memos:memos-maintenancefrom MemOS Memory
Performs MemOS memory hygiene: consolidates near-duplicates, supersedes outdated facts, diagnoses recall quality, reindexes after embedding changes, and manages trust/validity windows. Run after sessions with many stored facts or when recall degrades.
Ships in MemOS 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.
Hygiene operations for a MemOS store. For storing and recalling facts, use
the memos-memory skill instead.
Rule of thumb: consolidation and supersede are safe and reversible
(superseded memories are kept as history, never deleted). memos_forget is
the only destructive operation here — confirm before running it.
Consolidation merges near-duplicates, archives stale entries, supersedes decayed ones, and distills cluster notes.
memos_consolidate with dryRun: true. Apply
only if the preview looks sane.SessionEnd hook does a fast pass automatically
(MEMOS_SKIP_SESSION_CONSOLIDATE=1 opts out). In Hermes and other
hook-less harnesses nothing runs automatically — you have to call it.When a fact changes:
memos_store the corrected version.memos_supersede the old one, optionally passing the new memory id as
replacementId.Historical versions stay queryable via memos_search_temporal, so superseding
never destroys information. memos_history (memory id) returns the full
version timeline: what it superseded, what superseded it, and derived notes.
Contradictions: if a new fact conflicts with existing search results, surface the conflict to the user rather than silently storing both. Storing both is how a memory store rots.
Work through these in order — they are the usual causes:
memos_diagnostics. Low nodesWithEmbeddings coverage means the embedding
provider is not configured, so search has fallen back to lexical matching.
Set MEMOS_EMBEDDING_* env vars, or run
memos reindex-embeddings --purge-stale.memos_reindex - embeddings from a
different model are not comparable and silently degrade ranking.
The same applies after turning on contextual embeddings
(MEMOS_CONTEXTUAL=1 / embeddings.contextual) or changing
embeddings.embedText: old nodes carry vectors from the previous text
recipe, so run memos reindex-embeddings --purge-stale once.pool: ["note", "procedure"]) instead of lowering the bar.memos_graph on a memory id shows its edges (derived_from, supports,
contradicts) — useful when recall misses something you know is linked.memos_explain with memoryId is the direct answer to "why was this not
recalled?": it reports namespace, pool, lifecycle (historical/expired/
quarantined), embedding-model mismatch, and lexical-overlap checks.
Without memoryId, it shows the per-leg score evidence and the
relevance-gate verdict for a query.Predicted relevance is not usefulness. After you act on recalled memories, tell MemOS which ones you actually used and whether the task worked:
memos_feedback with query, used: [ids], outcome: "success"."partial"."failure" so those memories are demoted in future
ranking.Only report memories you actually used; never infer "used" from rank order. The multiplier is bounded (default +/-20%) and is a no-op until feedback exists, so this cannot bury a strong relevance match. Do not call it after every turn; do call it after a task whose outcome is clear.
memos_health returns a graded report: unresolved contradictions, TTL
backlog, low-confidence share, quarantine count, and useful-recall rate.
Run it when the user asks whether memory is working, or before a maintenance
pass. Treat findings[].action as the next step; the score itself is a
heuristic, not a benchmark.
memos_set_trust — adjust confidence on a memory. Low-trust memories fall
below the trust floor and stop being injected.memos_set_validity — bound a fact with validFrom / validUntil. Use it
for things that stop being true ("the staging URL is X", "I have an exam
tomorrow").memos_forget — the only destructive call. Confirm the id with the user
before running it.memos_usage reports lifetime token savings of context packs versus raw
JSON — quote it if the user asks what memory is costing or saving.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: hooks: Invalid string: must start with "./", hooks: Invalid string: must end with ".json"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job