litopys-memory

litopys-memory is a skill for Claude Code, Codex from litopys-dev/litopys. It costs 131 tokens per session (1,620 once invoked), scanned A, original, MIT.

A persistent memory skill that stores project facts, decisions, people, systems, and recurring problems as a connected graph across sessions.

In plain words
What is it for?
Use it to search and connect project history, resolve conflicting facts, and retain useful knowledge between sessions.
Why use it?
It helps the agent recover relevant context and check previous information instead of relying only on the current conversation.

Skill for Claude CodeCodex

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.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/litopys-dev/litopys/litopys-memory.svg)](https://agentmods.dev/skills/litopys-dev/litopys/litopys-memory)
Your own site
<a href="https://agentmods.dev/skills/litopys-dev/litopys/litopys-memory"><img src="https://agentmods.dev/badge/skills/litopys-dev/litopys/litopys-memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,620 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00131 $0.01620
Opus 5 $0.00066 $0.00810
Sonnet 5 $0.00026 $0.00324
Haiku 4.5 $0.00013 $0.00162

Measured 4d ago against content hash 5e56fc8c08c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

litopys-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 4d 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/litopys-memory/SKILL.md · 154 lines

How it starts

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

Litopys Memory

Persistent graph memory across sessions. The MCP server already injects 5 baseline rules (SEARCH FIRST · CREATE ON LEARNING · LINK AFTER CREATING · AVOID DUPLICATES · QUALITY THRESHOLD). This skill goes further — covers what those rules don't: graph traversal, temporal awareness, conflict resolution, constraint-aware writes.

Customize this skill

After installing, open SKILL.md and replace the generic trigger description above with the exact project and system names from your graph. Run litopys startup-context or ask litopys_search("projects") to see them. This makes the skill fire at the right moments instead of relying on generic phrasing.

Iron Law

No factual claim about user-specific things without searching the graph first.

Applies to: the user's projects, systems, infrastructure, people, past decisions, recurring problems.

Does NOT apply to: generic programming questions, library docs, syntax, code review unrelated to the user's stack.

Four Disciplines

1. Reading — Search + Traverse (top pain)

Plain litopys_search returns flat results. The graph carries meaning in edges. Every search must be followed by traversal when the answer needs context.

Step 1: litopys_search("keyword")     → find candidate nodes
Step 2: litopys_get(id)               → full body if needed
Step 3: litopys_related(id)           → MANDATORY for any non-trivial answer
Step 4: Check supersedes chains       → incoming supersedes = node is outdated, jump to the newer source
Step 5: Check until field             → until < today = tombstoned, ignore

Red flag: answering after step 1 alone. If you didn't traverse, you're using the graph as a flat key-value store — exactly the failure mode this skill exists to prevent.

Details and examples → references/search-and-traverse.md

2. Writing — Decide before creating

Three mutually exclusive paths when new information arrives:

Situation Action
Genuinely new entity, no similar node found litopys_create + litopys_link
Existing fact has changed (RAM upgraded, version bumped, role changed) Create new node, litopys_link with supersedes from NEW to OLD ("new supersedes old")
Two facts disagree but both valid in different contexts litopys_link with conflicts_with
Same thing already exists Don't create — update the existing node body via dashboard or skip

Read the full file on GitHub · 154 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 154 lines · 131 tokens per session scan A 5e56fc8c08c4

Subscribe to this mod's changes

litopys-memory is a skill published in the GitHub repository litopys-dev/litopys (3 stars, last pushed 1mo ago), licensed MIT. It adds 131 tokens to every session and 1,620 once invoked, about $0.0007 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-31.

Related

Other skills, from other repositories

ori-memory

Persistent agent memory with learning retrieval. Knowledge graph on markdown files — capture insights, decisions, research, and learnings during work, then retrieve them weeks or months later. Use when knowledge is too valuable to lose but too much to inject into every prompt.

aayoawoyemi/Ori-Mnemos · 54 tokens

kb

Set up, evolve, or operate a hraness/kb local-first Markdown knowledge base for coding-agent memory. Use when a user asks to design KB conventions or a recurring KB ritual; search or query a KB or Obsidian vault; load or recover repository context, plans, decisions, concepts, backlinks, semantic search, or Git…

hraness/kb · 155 tokens

zettelkasten-brain

第二记忆大脑 — 自动保存知识到 Zettelkasten,建立双向链接, 评估知识健康度,需要时检索。.

cx2002302-lang/zettelkasten-second-memory · 36 tokens

personal-knowledge-graph

Use when maintaining a LoomKG/Obsidian knowledge graph.

gl00mt1t4n/loom-kg · 19 tokens

mneme-prime

Use when the user starts a new task that may have prior vault context worth surfacing. Invokes the mnemeprime MCP tool to build a token-budgeted preamble of recent sessions and topic matches.

OnourImpram/mneme · 46 tokens

mneme-search

Use when the user asks a factual question whose answer might live in the vault. Invokes mnemesearch. Production mnemesearch is FTS5 BM25. The experimental feature-hashed lexical-vector backend is not wired into MCP. KG enrichment is gated to summarize or timeline when full-profile graph state is active.

OnourImpram/mneme · 69 tokens