memos-memory

memos-memory is a skill for Claude Code from Markgatcha/memos. It costs 63 tokens per session (614 once invoked), scanned A, original, MIT.

A persistent memory system for coding agents that saves durable facts in a local SQLite database, a file-based database on your computer.

In plain words
What is it for?
Use it to decide what to store, recall earlier context, update outdated memories, and avoid saving secrets or temporary task details.
Why use it?
It prevents useful preferences, project decisions, environment details, and corrections from being lost between sessions while keeping the data on the local machine.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the memos plugin — 1 skill, 2 commands, 1 MCP server shipped together

Good fit Use it to decide what to store, recall earlier context, update outdated memories, and avoid saving secrets or temporary task details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/markgatcha/memos/memos-memory
Install

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.

Any agent
npx skills add Markgatcha/memos --skill memos-memory
Clone the repo
git clone --depth 1 https://github.com/Markgatcha/memos

Made for: Claude Code.

Or install memos, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 1 MCP server.

Wrote 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.

agentmods badge for memos-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/markgatcha/memos/memos-memory/github.svg)](https://agentmods.dev/skills/markgatcha/memos/memos-memory)
Your own site
<a href="https://agentmods.dev/skills/markgatcha/memos/memos-memory"><img src="https://agentmods.dev/badge/skills/markgatcha/memos/memos-memory/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.

agentmods 80×15 button for memos-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/markgatcha/memos/memos-memory"><img src="https://agentmods.dev/badge/skills/markgatcha/memos/memos-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 614 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00614
Opus 5 $0.00032 $0.00307
Sonnet 5 $0.00013 $0.00123
Haiku 4.5 $0.00006 $0.00061

Measured 3d ago against content hash 796c509c5811, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

memos-memory 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 3d 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.

plugin/skills/memos-memory/SKILL.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MemOS persistent memory

MemOS gives you persistent, local-first memory across sessions. Everything stays in a local SQLite database — never send secrets to it (it is a plain file on disk).

When to STORE (memos_store)

Store durable, reusable facts — not chatter. Store when the user:

  • states a preference ("always use pnpm, never npm", "I like concise answers")
  • makes a project decision ("we chose Postgres over Mongo because of JSONB")
  • describes their environment ("Windows 11, RTX 5050 GPU, 16GB RAM")
  • corrects something you did ("don't run tests with --watch")
  • shares facts about people/projects ("the API base URL is staging.example.com")

Pick a sensible type: preference, fact, context, entity, relationship. Confirm briefly after storing ("Remembered: …").

Do NOT store: secrets/keys, session-ephemeral details (file contents you already see), task checklists, or anything the user asks you to forget later.

When to RECALL

  • Before answering questions like "why did we…", "what did I say about…", "how do I usually…" → call memos_context_pack with tokenBudget 2000. It returns a token-budgeted, relevance-ranked slice ready to use.
  • For raw exploration → memos_search (limit 10).
  • When the exact wording may have changed over time (renamed services, moved URLs) → memos_search_temporal with a past atTime to see what was true then.

Keeping memory clean

  • Outdated fact? Store the corrected version, then memos_supersede the old one (optionally passing the new memory id as replacementId). Historical versions stay queryable via memos_search_temporal.
  • Contradiction check: if a new fact conflicts with search results, surface the conflict to the user instead of silently storing both.
  • If tools feel slow or results look lexical-only, call memos_diagnostics: low nodesWithEmbeddings coverage means the embedding provider is not configured (set MEMOS_EMBEDDING_* env vars, or run memos reindex-embeddings --purge-stale after switching models).

Read the full file on GitHub · 54 lines

Changes

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.

  1. 3d ago First seen · 54 lines · 63 tokens per session scan A 796c509c5811

Subscribe to this mod's changes

memos-memory is a skill published in the GitHub repository Markgatcha/memos (6 stars, last pushed 4d ago), licensed MIT. It adds 63 tokens to every session and 614 once invoked, about $0.0003 per session on Opus 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-09-08.