leteo-memory

leteo-memory is a skill for Claude Code, Codex from asanabrial/leteo. It costs 38 tokens per session (3,208 once invoked), scanned A, original, MIT.

A persistent memory protocol for coding-agent sessions. It stores project decisions, conventions, bugs, and discoveries so they can be used after a session ends.

In plain words
What is it for?
Saving and searching project knowledge, starting or ending memory sessions, reviewing stored information, and updating or comparing memories.
Why use it?
It reduces the need to repeat context when work continues later or the conversation is shortened. It also helps keep important project knowledge from being lost.

Skill for Claude CodeCodex

Part of the leteo plugin — 1 skill, 4 hooks, 1 MCP server shipped together

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/asanabrial/leteo/memory
Any agent
npx skills add asanabrial/leteo --skill memory
Clone the repo
git clone --depth 1 https://github.com/asanabrial/leteo

Made for: Claude Code, Codex.

Or install leteo, the plugin that ships this one along with the rest of its 1 skill, 4 hooks, 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 leteo-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/asanabrial/leteo/memory.svg)](https://agentmods.dev/skills/asanabrial/leteo/memory)
Your own site
<a href="https://agentmods.dev/skills/asanabrial/leteo/memory"><img src="https://agentmods.dev/badge/skills/asanabrial/leteo/memory.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,208 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.00038 $0.03208
Opus 5 $0.00019 $0.01604
Sonnet 5 $0.00008 $0.00642
Haiku 4.5 $0.00004 $0.00321

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

Security

Grade A, and why

leteo-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/claude-code/skills/memory/SKILL.md · 293 lines

How it starts

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

Leteo Persistent Memory — Protocol

You have access to Leteo, a persistent memory system that survives across sessions and compactions. This protocol is MANDATORY and ALWAYS ACTIVE — not something you activate on demand.

AVAILABLE TOOLS

The plugin registers Leteo with the agent tool profile, so the everyday tools are present from the first message — no ToolSearch needed.

  • mem_save, mem_search, mem_context, mem_session_summary
  • mem_get_observation, mem_timeline, mem_suggest_topic_key, mem_update
  • mem_session_start, mem_session_end, mem_save_prompt
  • mem_current_project, mem_pin, mem_unpin, mem_review
  • mem_judge, mem_compare, mem_capture_passive, mem_doctor

Only the three that change or count the whole store are deferred; reach for ToolSearch when you need one: mem_stats, mem_delete, mem_merge_projects.

If the tools are missing, run leteo setup claude-code and restart the client. Verify the store itself with leteo doctor.

PROACTIVE SAVE TRIGGERS (mandatory — do NOT wait to be asked)

Call mem_save IMMEDIATELY after any of these:

After decisions or conventions

  • An architecture or design decision was made
  • A team convention was established
  • A tool or library was chosen, with its tradeoffs

After completing work

  • A bug was fixed — record the root cause, not just the symptom
  • A feature landed with a non-obvious approach
  • A configuration or environment change was made

After discoveries

  • Something non-obvious about the codebase
  • A gotcha, edge case, or surprising behaviour
  • A pattern worth repeating

After the user confirms or rejects something

  • The user accepts a recommendation ("go with that", "perfect", or the equivalent in their language)
  • The user rejects an option ("no, better X")
  • The user states a preference or constraint

Self-check after EVERY task

"Did we just decide something, fix a bug, learn something non-obvious, or establish a convention? If yes, call mem_save now."

Read the full file on GitHub · 293 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 · 293 lines · 38 tokens per session scan A d44959402649

Subscribe to this mod's changes

leteo-memory is a skill published in the GitHub repository asanabrial/leteo (2 stars, last pushed 6d ago), licensed MIT. It adds 38 tokens to every session and 3,208 once invoked, about $0.0002 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

memory-curation

When you have read / processed a workspace asset in this session and learned something durable about it, write a memory page so future sessions benefit. Maintain the workspace wiki's hierarchical structure as it grows.

Prismer-AI/PrismerCloud · 46 tokens

memory

Persist and retrieve agent memory across sessions — write durable notes, read by path, recall via semantic search, list/delete, and consolidate. Use whenever the user asks to remember/forget something, when you need to look up past decisions or context, or when episodic state matters beyond the current turn. Executes…

Prismer-AI/PrismerCloud · 76 tokens

recall

Recall this repository's OwnMem local memory before changing code, and keep it healthy. Use when a repository contains .ownmem/, when past debugging lessons could apply ("have we hit this before", "why is it done this way"), or when the user mentions ownmem, project memory, or recalling across sessions.

grpcer/ownmem · 66 tokens

dashboard

Open OwnMem Console, the local dashboard for this repository's memory. Use when the user asks to open the dashboard, see memory metrics, check adoption or recall quality, or set up the optional embedding lane. Requires a repository initialized with the dashboard layer.

grpcer/ownmem · 53 tokens

init

Install or update OwnMem in the current repository. Use when the user asks to set up OwnMem, add local project memory for coding agents, or refresh an existing OwnMem installation after a version bump.

grpcer/ownmem · 43 tokens

docmancer

Work from the same local memory as every other coding agent on this machine. Recall prior decisions, preferences, instructions, and project conventions that Claude Code, Codex, Cursor, and other agents wrote here, with cited sources, fully local. Also searches a separate local technical-documentation index.

docmancer/docmancer · 62 tokens