persistent-memory

persistent-memory is a skill for Claude Code, Codex from yantrikos/yantrikdb-mcp. It costs 84 tokens per session (1,190 once invoked), scanned A, original, MIT.

A persistent-memory skill that stores and recalls information across coding-agent sessions using YantrikDB, a database for long-term agent context.

In plain words
What is it for?
Use it to load prior context, check current remembered information, track changed beliefs, and save durable project knowledge.
Why use it?
It prevents important decisions, preferences, and earlier context from being lost between sessions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to load prior context, check current remembered information, track changed beliefs, and save durable project knowledge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yantrikos/yantrikdb-mcp/persistent-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 yantrikos/yantrikdb-mcp --skill persistent-memory
Clone the repo
git clone --depth 1 https://github.com/yantrikos/yantrikdb-mcp

Made for: Claude Code, Codex.

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 persistent-memory

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/yantrikos/yantrikdb-mcp/persistent-memory"><img src="https://agentmods.dev/badge/skills/yantrikos/yantrikdb-mcp/persistent-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,190 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00084 $0.01190
Opus 5 $0.00042 $0.00595
Sonnet 5 $0.00017 $0.00238
Haiku 4.5 $0.00008 $0.00119

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

Security

Grade A, and why

persistent-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 9d 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.

skills/persistent-memory/SKILL.md · 101 lines

How it starts

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

Persistent memory (YantrikDB)

You have a persistent, semantic, typed memory that survives across sessions, provided by the yantrikdb MCP server. It is not a notes file: it does similarity recall, tracks belief revisions, detects contradictions, learns procedures, and answers "what did I believe at time t". Treat it as your long-term memory, not as optional tooling.

Tool names may carry a harness prefix (mcp_yantrikdb_recall, mcp__yantrikdb__recall, or bare recall). The unprefixed names are used below; map them to whatever your harness registered.

Session start — one call

Call session with action="digest" once. It returns a single briefing: narrative head, open decisions, unresolved conflicts, pending triggers, and stale high-importance memories. Do this before answering anything substantive; a session that starts blank when 500 memories exist is a bug, and it is this one.

Before acting — recall, the right way

  • Query with one short natural-language sentence (5–10 words), not a keyword list. Separate focused calls beat one broad one.
  • For "what is the CURRENT value of X" (latest config, current owner, present status), use memory with action="chain_head" — similarity search returns the most-similar revision, which for values that change over time is often stale. chain_head returns the actual current value.
  • Trust signals: hits whose why_retrieved says "aged", "superseded", or "rarely confirmed" are weak evidence. Prefer fresher hits, and say so if you act on a flagged one.
  • Before starting a task you may have done before, call procedure with action="surface" — a learned method beats re-deriving one.

During work — capture as you go

  • New durable fact → remember. Be specific and searchable ("Client Foo approved the March pricing tier", not "they said yes"). Set importance: 0.8–1.0 decisions and hard commitments, 0.5–0.7 useful context, 0.3–0.5 background. Set domain and source.
  • A stored fact changedcorrect with a reason — never a second remember. This preserves history and prevents the contradiction the next session would otherwise inherit.
  • Entity relationship learned → graph with action="relate".
  • A working method discovered (a scraping recipe that got past a blocker, a benchmark invocation that finally worked) → procedure with action="learn".
  • Do NOT store: secrets or credentials, ephemeral task chatter, anything derivable from the repo or files you already have. Memory is for what would otherwise be lost when this session ends.

Read the full file on GitHub · 101 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. 9d ago First seen · 101 lines · 84 tokens per session scan A c3c782923e39

Subscribe to this mod's changes

persistent-memory is a skill published in the GitHub repository yantrikos/yantrikdb-mcp (24 stars, last pushed yesterday), licensed MIT. It adds 84 tokens to every session and 1,190 once invoked, about $0.0004 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-08-30.