Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Markgatcha/memos --skill memos-maintenancegit clone --depth 1 https://github.com/Markgatcha/memosWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/markgatcha/memos/memos-maintenance)<a href="https://agentmods.dev/skills/markgatcha/memos/memos-maintenance"><img src="https://agentmods.dev/badge/skills/markgatcha/memos/memos-maintenance/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/markgatcha/memos/memos-maintenance"><img src="https://agentmods.dev/badge/skills/markgatcha/memos/memos-maintenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.01149 |
| Opus 5.5 | $0.00029 | $0.00460 |
| Sonnet 5.5 | $0.00015 | $0.00230 |
| Haiku 4.5 | $0.00007 | $0.00115 |
Grade A, and why
memos-maintenance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MemOS memory maintenance
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.
Consolidate
Consolidation merges near-duplicates, archives stale entries, supersedes decayed ones, and distills cluster notes.
- Run it after a session that stored many facts, or when recall starts returning overlapping results.
- Always preview first:
memos_consolidatewithdryRun: true. Apply only if the preview looks sane. - In Claude Code a
SessionEndhook does a fast pass automatically (MEMOS_SKIP_SESSION_CONSOLIDATE=1opts out). In Hermes and other hook-less harnesses nothing runs automatically — you have to call it.
Supersede, don't overwrite
When a fact changes:
memos_storethe corrected version.memos_supersedethe old one, optionally passing the new memory id asreplacementId.
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.
Diagnose poor recall
Work through these in order — they are the usual causes:
memos_diagnostics. LownodesWithEmbeddingscoverage means the embedding provider is not configured, so search has fallen back to lexical matching. SetMEMOS_EMBEDDING_*env vars, or runmemos reindex-embeddings --purge-stale.- After switching embedding models, run
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 changingembeddings.embedText: old nodes carry vectors from the previous text recipe, so runmemos reindex-embeddings --purge-staleonce. - If results are noisy rather than missing, narrow the pool
(
pool: ["note", "procedure"]) instead of lowering the bar. memos_graphon a memory id shows its edges (derived_from,supports,contradicts) — useful when recall misses something you know is linked.memos_explainwithmemoryIdis the direct answer to "why was this not recalled?": it reports namespace, pool, lifecycle (historical/expired/ quarantined), embedding-model mismatch, and lexical-overlap checks. WithoutmemoryId, it shows the per-leg score evidence and the relevance-gate verdict for a query.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 28d ago First seen · 105 lines · 73 tokens per session scan A 03291a001b83
memos-maintenance is a skill published in the GitHub repository Markgatcha/memos (12 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 1,149 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-02.
memos-maintenance compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memos-maintenanceMarkgatcha/memos | Skill | 12 | today | MIT | A | 73 | Claude Code |
| rememberlangchain-ai/deepagents | Skill | 32k | today | MIT | A | 71 | Claude Code, Codex |
| coding-prefslangchain-ai/deepagents | Skill | 32k | today | MIT | A | 36 | Claude Code, Codex |
| ax-agent-memory-skillsax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 128 | Claude Code, Codex |
| ax-cpp-agent-memory-skillsax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 42 | Claude Code, Codex |
| ax-go-agent-memory-skillsax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 48 | Claude Code, Codex |
| ax-python-agent-memory-skillsax-llm/ax | Skill | 3.0k | today | Apache-2.0 | A | 40 | Claude Code, Codex |