Borrowing it
Nothing to install: this file belongs to rand/mnemosyne. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/rand/mnemosyne/main/.claude/commands/memory-context.mdgit clone --depth 1 https://github.com/rand/mnemosyneWrote 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.
[](https://agentmods.dev/commands/rand/mnemosyne/memory-context)<a href="https://agentmods.dev/commands/rand/mnemosyne/memory-context"><img src="https://agentmods.dev/badge/commands/rand/mnemosyne/memory-context/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.
<a href="https://agentmods.dev/commands/rand/mnemosyne/memory-context"><img src="https://agentmods.dev/badge/commands/rand/mnemosyne/memory-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00009 | $0.00711 |
| Opus 5.5 | $0.00004 | $0.00284 |
| Sonnet 5.5 | $0.00002 | $0.00142 |
| Haiku 4.5 | $0.00001 | $0.00071 |
Grade A, and why
memory-context 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 1mo 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.
What it actually says
I will load and display relevant project context from Mnemosyne to help orient you to the current project state.
Usage:
/memory-context- Load context for current project/memory-context <project-name>- Load context for specific project/memory-context --recent <days>- Only recent memories/memory-context --important- Only high-importance memories (8+)
Instructions for me:
-
Parse the arguments:
- Extract
<project-name>if provided as positional arg - Extract
--recent <days>flag if present - Extract
--importantflag if present
- Extract
-
Determine namespace:
- If
<project-name>provided: useproject:<project-name> - Otherwise auto-detect from git root + CLAUDE.md
- Use Bash:
git rev-parse --show-toplevel 2>/dev/null - Parse CLAUDE.md for project name
- If no project: use
global
- If
-
Fetch recent and important memories: Call
mnemosyne.listto get:- Recent memories (last 7 days or
--recentdays) - High-importance memories (importance >= 8 or
--important)
{ "name": "mnemosyne.list", "arguments": { "namespace": "<namespace>", "limit": 50, "sort_by": "recent" } } - Recent memories (last 7 days or
-
Build memory graph (optional, for connected decisions): If there are high-importance memories, call
mnemosyne.graphto see relationships:{ "name": "mnemosyne.graph", "arguments": { "seed_ids": [<top 5 important memory IDs>], "max_hops": 2 } } -
Format the output:
📚 Loading context for project: <project_name> ## Recent Activity (last <N> days): - <date>: <summary> - <date>: <summary> ... ## Critical Decisions (importance 8+): - <summary> (<type>) - <summary> (<type>) ... ## Active Constraints: - <constraint content> - <constraint content> ... ## Key Patterns: - <code_pattern summary> - <code_pattern summary> ... ## Related Files (most mentioned): - <file_path> - <file_path> ... ## Memory Statistics: - Total memories: <count> - High importance (8+): <count> - Recent (7 days): <count> - Most connected: "<summary>" (<link_count> links) --- Use /memory-search <query> to find specific information Use /memory-list to browse all memories -
Error handling:
- If MCP server not available: "Error: Mnemosyne MCP server not running"
- If no memories found: "No memories found for project: . Start storing with /memory-store"
- If project not detected: "No project detected. Showing global memories."
Please load and display the project context.
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.
- 1mo ago First seen · 102 lines · 9 tokens per session scan A 07caddd7e285
memory-context is a command published in the GitHub repository rand/mnemosyne (101 stars, last pushed 11mo ago), licensed MIT. It adds 9 tokens to every session and 711 once invoked, about $0.0000 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-08-30.
Other commands, from other repositories
diagnose-synapse
Run a comprehensive diagnostic of the SYNAPSE context engine, comparing expected vs. actual pipeline state, including session performance analysis with exact timing data.
memory
Read-side memory operations on the knowledge graph: search past decisions and patterns, load session context, view decision timelines, render Mermaid graph visualizations. Subcommands: search, load, history, viz, status. Use when finding or reviewing what memory already holds. For storing new knowledge instead, invoke…
compact-prep
Ask the agent to prepare for conversation compaction by updating any relevant state and providing guidance for the compaction agent and to kick off the session there after.
greet
Generate contextual agent greeting using GreetingBuilder infrastructure.
add-rule
Adds a new rule to an existing SYNAPSE domain file.
toggle-domain
Toggles a SYNAPSE domain between active and inactive in the manifest.