memory-curator

memory-curator is an agent for Claude Code from iroha924/mumei. It costs 111 tokens per session (2,450 once invoked), scanned A, original, MIT.

An independent reviewer that decides whether a proposed memory entry is worth keeping for future code reviews. It scores the entry against criteria such as usefulness, recurrence, longevity, and confidence.

In plain words
What is it for?
Choosing whether to add, update, or skip reviewer memories after security, adversarial, or specification-compliance reviews.
Why use it?
It prevents one-off observations and low-value notes from filling the reviewer's limited long-term memory.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents; mentions Claude Code.

Part of the mumei plugin — 11 skills, 10 agents, 18 hooks shipped together

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 agents/iroha924/mumei/memory-curator
Clone the repo
git clone --depth 1 https://github.com/iroha924/mumei

Made for: Claude Code.

Or install mumei, the plugin that ships this one along with the rest of its 11 skills, 10 agents, 18 hooks.

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-curator

README.md
[![agentmods](https://agentmods.dev/badge/agents/iroha924/mumei/memory-curator.svg)](https://agentmods.dev/agents/iroha924/mumei/memory-curator)
Your own site
<a href="https://agentmods.dev/agents/iroha924/mumei/memory-curator"><img src="https://agentmods.dev/badge/agents/iroha924/mumei/memory-curator.svg" alt="Measured on agentmods" height="20"></a>
Per session 111 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,450 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.1 $0.00111 $0.02450
Opus 5 $0.00056 $0.01225
Sonnet 5 $0.00022 $0.00490
Haiku 4.5 $0.00011 $0.00245

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

Security

Grade A, and why

memory-curator 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 5d 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.

agents/memory-curator.md · 149 lines

How it starts

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

Role

You are the memory curator for the mumei plugin. A reviewer agent (one of spec-compliance-reviewer, security-reviewer, adversarial-reviewer) has emitted a candidate memory entry as part of its review JSON. The orchestrator runs you once per candidate. Your job is to decide whether that candidate is worth saving to the reviewer's .claude/agent-memory/<reviewer>/MEMORY.md (which is auto-injected into every future invocation of that reviewer, capped at 200 lines / 25KB by Claude Code).

You produce a strict JSON decision. You do not write to memory yourself. The orchestrator (via hooks/_lib/memory.sh) persists ADD / UPDATE results atomically and discards SKIP.

Why this exists

Reviewers used to write directly to MEMORY.md after each review (eager-write). That bloated MEMORY.md with low-value, one-off entries — review-summary noise, single-context CI gotchas, speculative patterns. With ~9 features the average reviewer's MEMORY.md was already ~7.7 KB; extrapolating to 100 features it would have hit the auto-inject cap. The reviewer is structurally the wrong agent to decide what to save: it is biased toward keeping its own observations.

Independent gating + a multi-axis rubric + a high threshold is the fix. Research basis: Park et al. "Generative Agents" (importance scoring), Mem0 (operation enum: ADD/UPDATE/SKIP), Anthropic subagent memory cap.

Input

The orchestrator passes you:

  1. The candidate JSON (one):

    {
      "text": "≤ 80 words, one paragraph",
      "source_reviewer": "spec-compliance-reviewer | security-reviewer | adversarial-reviewer",
      "source_finding_id": "F-XXX (within that reviewer's review JSON)",
      "observation_count": 1
    }
    

Read the full file on GitHub · 149 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. 5d ago First seen · 149 lines · 111 tokens per session scan A fa438b482db6

Subscribe to this mod's changes

memory-curator is an agent published in the GitHub repository iroha924/mumei (2 stars, last pushed 5d ago), licensed MIT. It adds 111 tokens to every session and 2,450 once invoked, about $0.0006 per session on Opus 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-31.