mneme-review

mneme-review is a command for Claude Code from MnemeHQ/mneme. It costs 7 tokens per session (250 once invoked), scanned A, a copy of review, MIT.

A command for checking the current code changes against decisions and rules stored in project memory. It reviews each changed file and reports whether the file follows those recorded rules.

In plain words
What is it for?
Use it during code review to inspect modified files, run strict memory checks, and report passing files or violations with their decision identifiers.
Why use it?
It catches conflicts with earlier architectural decisions that ordinary tests may not detect. The check uses a description of the file’s domain to find relevant project guidance.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it during code review to inspect modified files, run strict memory checks, and report passing files or violations with their decision identifiers.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mnemehq/mneme/mneme-review
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/MnemeHQ/mneme

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 mneme-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/mnemehq/mneme/mneme-review.svg)](https://agentmods.dev/commands/mnemehq/mneme/mneme-review)
Your own site
<a href="https://agentmods.dev/commands/mnemehq/mneme/mneme-review"><img src="https://agentmods.dev/badge/commands/mnemehq/mneme/mneme-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 250 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 100% copy Near-identical to another mod 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.00007 $0.00250
Opus 5 $0.00003 $0.00125
Sonnet 5 $0.00001 $0.00050
Haiku 4.5 $0.00001 $0.00025

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

Security

Grade A, and why

mneme-review 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 8d 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.

Origin

This is a copy

100% identical to review — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

integrations/claude-code/commands/mneme-review.md · 31 lines

What it actually says

Run git diff to capture pending changes, then for each modified file check the new content against project memory.

Steps:

  1. Use Bash: git diff --name-only to list modified files.
  2. For each modified file, use Bash: git show :0:<file> or read the file directly to get the current content.
  3. Run mneme check for each file, using a descriptive --query that names the file's domain (not just its path):
mneme check \
  --memory .mneme/project_memory.json \
  --input <file> \
  --query "<domain description for this file>" \
  --mode strict
  1. Aggregate verdicts and report:
    • Files that PASS
    • Files with violations — include decision id and triggered rule

Note on retrieval: Use a meaningful --query per file (e.g. "storage layer" for db.py, "auth middleware" for auth.py). The file path alone may not retrieve all relevant decisions — describe the domain of the file, not just its name.

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. 8d ago First seen · 31 lines · 7 tokens per session scan A d592bc45f827

Subscribe to this mod's changes

mneme-review is a command published in the GitHub repository MnemeHQ/mneme (20 stars, last pushed yesterday), licensed MIT. It adds 7 tokens to every session and 250 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to review, differing in 0 lines, and is treated as a copy.