mnemon

mnemon is a skill for Claude Code, Codex from mnemon-dev/mnemon. It costs 68 tokens per session (979 once invoked), scanned A, original, Apache-2.0.

A long-term memory workflow for storing and recalling durable facts, decisions, preferences, and project context across sessions. It uses a memory store through a supplied command-line bridge.

In plain words
What is it for?
Use it when someone asks what was discussed before, or when saving information they will expect to be remembered. It supports finding, saving, viewing, relating, and checking stored memories.
Why use it?
It prevents important user preferences and past decisions from being forgotten or confused with temporary session notes. It also limits memory searches to situations where earlier context matters.

Skill for Claude CodeCodex

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

Good fit Use it when someone asks what was discussed before, or when saving information they will expect to be remembered. It supports finding, saving, viewing, relating, and checking stored memories.

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

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 mnemon

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mnemon-dev/mnemon/alma"><img src="https://agentmods.dev/badge/skills/mnemon-dev/mnemon/alma.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 979 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.00068 $0.00979
Opus 5.5 $0.00027 $0.00392
Sonnet 5.5 $0.00014 $0.00196
Haiku 4.5 $0.00007 $0.00098

Measured 6d ago against content hash 19d01f3a18db, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mnemon 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 6d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (mem.sh, prime.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

internal/memory/setup/assets/alma/SKILL.md · 94 lines

How it starts

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

mnemon

mnemon is the source of truth. Alma's own memory/YYYY-MM-DD.md notes are a per-session log, not the long-term store; durable facts belong in mnemon.

Use the shim, not the raw CLI

~/.config/alma/mnemon-bridge/mem is the only supported entry point. It pins the store, keeps reads read-only, resolves short ids, and owns the MEMORY.md block. Call it with Bash:

MEM=~/.config/alma/mnemon-bridge/mem

$MEM find "<query>" [--limit 5] [--chars 240] [--cat preference|decision|fact|insight|context]
$MEM save "<content>" --cat decision --imp 4 [--tags a,b] [--entities X,Y] [--source user|agent]
$MEM show <id-prefix>
$MEM related <id-prefix> [--edge causal|entity|semantic|supersedes|temporal]
$MEM recent [N]
$MEM status

Calling mnemon directly is only correct when the shim is missing. The raw CLI needs a full UUID for show/related/forget, does not share the shim's store pinning, and its recall --cat flag is accepted but ignored in 0.2.13.

Recall

Do not query on every turn. A recall costs 0.3–1.2 s and most turns do not need one. Recall when:

  • the user asks "记不记得 / 之前 / 上次 / 我们说过 / do you remember"
  • the topic switches to a specific project, service, repo, or host
  • the user names something you do not recognise but that clearly comes from their history
  • you are about to make a decision that may already have been made

Skip it for greetings, small talk, self-contained code questions, and any turn where the user already supplied the context.

Use the result silently. Do not narrate "I checked my memory".

Remember

Store one claim per entry, self-contained enough to make sense months later (with dates, file names, numbers). A conversation usually yields 0–3 durable entries; store nothing rather than padding the store.

kind example --cat --imp
user preference wording, taste, working style preference 4
decided course "use A not B, because …" decision 3–5
durable technical fact root cause, config shape, measured number insight / fact 3–4
project background what a module currently is context 3

Read the full file on GitHub · 94 lines

Files

What ships with it

2 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. 6d ago First seen · 94 lines · 68 tokens per session scan A 19d01f3a18db

Subscribe to this mod's changes

mnemon is a skill published in the GitHub repository mnemon-dev/mnemon (693 stars, last pushed 6d ago), licensed Apache-2.0. It adds 68 tokens to every session and 979 once invoked, about $0.0003 per session on Opus 5.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-11-01.

Related

mnemon compared with skills from other repositories

mnemon next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mnemonmnemon-dev/mnemonSkill6936d agoApache-2.0A68Claude Code, Codex
innate-memoryvima-tech/InnateSkill224d agoMITA156Claude Code
innate-memoryvima-tech/InnateSkill224d agoMITA156Claude Code
brain-pagemindmuxai/brain.mdSkill594yesterdayApache-2.0A47Claude Code
brain-setupmindmuxai/brain.mdSkill594yesterdayApache-2.0A63Claude Code
brain-bootstrapmindmuxai/brain.mdSkill594yesterdayApache-2.0A79Claude Code, Codex
brain-ingestmindmuxai/brain.mdSkill594yesterdayApache-2.0A48Claude Code, Codex