memory

memory is a command for Claude Code from monoes/monomind. It costs 25 tokens per session (1,712 once invoked), scanned A, original, Apache-2.0.

A persistent memory system that stores information in a local database and lets you retrieve or search it later. Persistent memory remains available across sessions and can be shared across agents.

In plain words
What is it for?
Saving, finding, editing, listing, importing, exporting, and deleting project memories.
Why use it?
It prevents useful project information from being lost when a session ends or another agent takes over.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Saving, finding, editing, listing, importing, exporting, and deleting project memories.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/monoes/monomind/memory
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.

Clone the repo
git clone --depth 1 https://github.com/monoes/monomind

Made for: Claude Code.

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 memory

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/monoes/monomind/memory"><img src="https://agentmods.dev/badge/commands/monoes/monomind/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,712 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.00025 $0.01712
Opus 5.5 $0.00010 $0.00685
Sonnet 5.5 $0.00005 $0.00342
Haiku 4.5 $0.00003 $0.00171

Measured yesterday against content hash abf0f40b6890, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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.

.claude/commands/mastermind/memory.md · 200 lines

How it starts

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

Monomind Memory System

Persistent memory in local SQLite (sql.js/WASM when no native driver is available) with on-device embeddings for semantic search. Above 5,000 entries (MONOMIND_HNSW_THRESHOLD) search switches to an HNSW approximate-nearest-neighbour index; below it, brute-force cosine is faster. Supports cross-session and cross-agent collaboration.

Subcommands

Subcommand Alias Description
init — Initialize the SQLite memory database
store — Store a key/value entry
edit — Edit an existing entry
retrieve get Retrieve entry by key
search — Semantic/vector search
list ls List memory entries
delete rm Delete an entry
templates — Show best-practice entry templates
stats — Show memory statistics
configure config Configure memory backend
export — Export memory to file
import — Import memory from file

init — Initialize Database

npx monomind memory init
npx monomind memory init --backend sqlite --verbose --verify
npx monomind memory init --force  # Overwrite existing

Flags: --backend hybrid|sqlite (default: hybrid; lancedb is accepted as a legacy alias for SQLite), --path, --force, --verbose, --verify (default: true), --load-embeddings

store — Store Data

# Store with specific namespace
npx monomind memory store --key "arch/api-design" --value "RESTful microservices" --namespace arch

# With tags and TTL
npx monomind memory store --key "pattern/auth" --value "JWT + refresh tokens" --namespace patterns --tags "auth,security" --ttl 86400

# Upsert (update if exists)
npx monomind memory store --key "bug/null-check" --value "Fixed null check in parser" --upsert

Flags:

Flag Short Default Description
--key -k — Storage key (required)
--value — — Value to store (required)
--namespace -n default Memory namespace
--ttl — — Time to live in seconds
--tags — — Comma-separated tags
--vector — false Store as vector embedding
--upsert -u false Update if key exists

Read the full file on GitHub · 200 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. yesterday First seen · 200 lines · 25 tokens per session scan A abf0f40b6890

Subscribe to this mod's changes

memory is a command published in the GitHub repository monoes/monomind (23 stars, last pushed yesterday), licensed Apache-2.0. It adds 25 tokens to every session and 1,712 once invoked, about $0.0001 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-10-26.