memory

Persistent shared notes for an organisation, stored in a MEMORY.md file and related playbooks.

In plain words
What is it for?
Use it to recall organisational knowledge, update shared facts, and save repeatable multi-step procedures for later work.
Why use it?
It prevents the agent from forgetting established facts, corrections, team practices, and procedures between conversations.

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

Made for: Claude Code, Codex.

Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 176 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.00000 $0.00176
Opus 5 $0.00000 $0.00088
Sonnet 5 $0.00000 $0.00035
Haiku 4.5 $0.00000 $0.00018

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

Security

Grade A, and why

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 2d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (tools.py), 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.

skills/memory/SKILL.md · 20 lines

What it actually says

You have persistent memory across conversations. Your MEMORY.md is already loaded — check it before asking the user something you might already know.

You operate across multiple channels in the same organisation. Knowledge is shared and cumulative — what you learn in one channel applies everywhere. Treat MEMORY.md as the single source of truth for this org's tribal knowledge.

Before writing to MEMORY.md: read it first. Update or correct existing entries rather than appending duplicates. Use overwrite mode to keep the file clean and structured. Only add facts that are genuinely new or that correct something stale.

After learning something new (infrastructure facts, error patterns, team norms, corrections), save it with memory_write so you remember next time across all channels.

For multi-step procedures that worked, save them as playbooks in playbooks/ so you can reference them later.

Files

What ships with it

1 file 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. 2d ago First seen · 20 lines · 0 tokens per session scan A 014378ea1de3

Subscribe to this mod's changes

memory is a skill published in the GitHub repository last9/mithai (18 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 176 tokens. 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.

Related

Other skills, from other repositories

create-launch-post

Create and publish concise Rivet launch or changelog posts through an approval-gated workflow, including release research, a required user-selected hero variation, local HTML-rendered social and technical images, an R2 hero upload, MDX authoring, a reviewed draft GitHub PR for manual merge, and a scheduled and…

rivet-dev/actors · 98 tokens

driver-test-runner

Methodically run the RivetKit driver test suite file by file across the native (NAPI) and wasm runtimes, tracking progress in /.agents/notes/driver-test-progress.md. Use when you need to validate the driver test suite after changes, bring up a new driver, or debug test failures systematically.

rivet-dev/actors · 68 tokens

stack-merge

Bulk-merge a Graphite stack into main via admin-bypass fast-forward push. Replaces the Graphite merge queue for rivet-dev/rivet. Invoke when the user says "merge the stack at ", "ship everything through ", "bulk-merge up to ", "fast-forward main to ", or any request to land multiple stacked PRs at once in one shot.…

rivet-dev/actors · 157 tokens

creating-docs-diagrams

Creates accessible hand-authored inline SVG architecture and sequence diagrams for documentation. Use when adding, replacing, or reviewing docs diagrams, especially Mermaid flowcharts.

rivet-dev/actors · 36 tokens

openspec-bulk-archive-change

Archive multiple completed changes at once. Use when archiving several parallel changes.

rivet-dev/actors · 23 tokens

openspec-ff-change

Fast-forward through OpenSpec artifact creation. Use when the user wants to quickly create all artifacts needed for implementation without stepping through each one individually.

rivet-dev/actors · 34 tokens