/yantrikdb:persistent-memoryfrom yantrikdb
Provides durable, semantic, typed memory across Claude Code sessions via YantrikDB. Loads prior context at session start, recalls facts and procedures, tracks belief revisions, and detects contradictions.
Ships in yantrikdb. 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.
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.
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.
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.why_retrieved says "aged", "superseded", or
"rarely confirmed" are weak evidence. Prefer fresher hits, and say so if
you act on a flagged one.procedure with
action="surface" — a learned method beats re-deriving one.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.correct with a reason — never a second
remember. This preserves history and prevents the contradiction the next
session would otherwise inherit.graph with action="relate".procedure with
action="learn".If you are a recurring job (scraper, lead-gen, benchmark, monitor) rather than a chat companion:
namespace="<pipeline-name>" on every
call so runs of different jobs never pollute each other's recall.idempotency_key on remember — same key + same text returns the same
record instead of writing twice.recall it. Already stored with the same outcome → skip. This
is what makes run #50 cheaper than run #1 instead of identical to it.trigger to have a memory come back at a
time or on a condition ("re-check this lead in two weeks") instead of
hoping a future run thinks of it.Only when the session was long or changed real state: call think to
consolidate and surface contradictions. If it reports conflicts, resolve them
with conflict action="resolve" or ask the user — do not leave a
contradiction for the next session to trip over. Short read-only sessions
skip this.
Every substantive turn either reads from memory (recall) or writes to it (remember). A turn that does neither leaves no trace, and the next session starts closer to blank than it should. If you notice three substantive turns without touching memory, pause and recall.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yantrikos/yantrikdb-mcp --plugin yantrikdbOther plugins' skills for the same job