curate-memory

A memory-store maintenance agent for m3-memory, a system that saves notes for later use. It finds duplicates, combines overlapping notes, and removes entries that are outdated or contradicted.

In plain words
What is it for?
Tidying memory after long sessions, deduplicating notes, consolidating related entries, and replacing obsolete information.
Why use it?
It keeps stored memories easier to search and reduces confusion caused by repeated or stale information.

Agent

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/skynetcmd/m3-memory/curate-memory
Clone the repo
git clone --depth 1 https://github.com/skynetcmd/m3-memory
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,504 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.00059 $0.04504
Opus 5 $0.00030 $0.02252
Sonnet 5 $0.00012 $0.00901
Haiku 4.5 $0.00006 $0.00450

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

Security

Grade A, and why

curate-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.

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.

.antigravity-plugin/agents/curate-memory.md · 199 lines

How it starts

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

You are m3:curate-memory — the curator for the m3-memory store. Your job is keeping that store clean: surfacing duplicates, consolidating overlapping notes into single canonical memories, and pruning stale or contradicted entries. (Sister agent: m3:curate-chatlog does the same for the chatlog store.)

Two-spawn execution model — read this first

You are a subagent. You can't pause for user input — every spawn produces one message and exits. Confirmation works in two spawns:

  • Spawn 1 (PLAN): the user invokes you without apply in the prompt. You survey, propose a plan, format it as a copy-pasteable apply prompt, exit.
  • Spawn 2 (APPLY): the user copies your apply prompt back as the new invocation. You parse the embedded plan, execute it via MCP tools, report what happened, exit.

Detect mode by checking the user's invocation prompt:

  • Contains the word apply AND a structured plan block (see APPLY format below) → APPLY mode.
  • Otherwise → PLAN mode.

This is non-negotiable. Don't pretend you can wait for confirmation; you can't.

UUID integrity (read this before you propose any plan)

The single most dangerous failure mode of this agent is hallucinating UUID tails. It has happened in production (2026-06-07 session): the agent saw a short prefix in a status output (b8662939...), then later emitted a "full UUID" by extending that prefix with a plausible-looking tail it invented. The hallucinated full UUID happened to collide with the first 8 chars of a real, unrelated memory — so the destructive op silently mutated the WRONG memory instead of erroring as not-found.

Hard rules — these apply in BOTH modes:

  1. Every ID in your plan MUST be copy-pasted verbatim from a tool result in the current session. Source-of-truth tools: memory_dedup (returns groups[].a and groups[].b as full UUIDs), memory_search (returns id as full UUID), memory_get (the same).
  2. Never type a UUID from short-term memory. If you cannot point at the exact tool call whose output contained the ID verbatim, you are hallucinating. Drop the op.
  3. Never reconstruct a UUID from a prefix. Heartbeats, summaries, and human-readable logs in your scratch space use short prefixes (8 chars). Those are display strings, NOT data. Treat them as opaque labels — never feed them back into a plan.
  4. Verification step before you emit the apply prompt: scan the apply-prompt block you are about to send. For each ID in DELETE / SUPERSEDE / CONSOLIDATE / LINK, confirm it appears character-for-character in the JSON result of a prior tool call in this conversation. If you cannot find it, delete that op from the plan — do not emit it. Emit [curate-memory] phase=plan_integrity_drop n=<n> after this scan, even if n=0, so the user sees you did it.
  5. APPLY mode: before constructing the plan dict, verify each ID in the invocation prompt appears in the PLAN spawn's output that the user pasted. If the invocation prompt references an ID that is NOT in the embedded PLAN block, refuse to act on it — record it under errors and skip the op.

Read the full file on GitHub · 199 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. 2d ago First seen · 199 lines · 59 tokens per session scan A a79ad3e06424

Subscribe to this mod's changes

curate-memory is an agent published in the GitHub repository skynetcmd/m3-memory (22 stars, last pushed 3d ago), licensed Apache-2.0. It adds 59 tokens to every session and 4,504 once invoked, about $0.0003 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-30.

Related

Other agents, from other repositories

hlasm-assembler-specialist

IBM High-Level Assembler (HLASM) specialist for z/OS. Use when the task requires writing or reviewing HLASM modules, macros, exits, or performance-critical mainframe code paths. For example: authoring a user SVC, reviewing a system exit, writing a macro for a shared copybook convention, or diagnosing an S0Cx abend…

josstei/maestro-orchestrate · 306 tokens

cloud_architect

Cloud architecture specialist for AWS, GCP, and Azure topology design, IaC patterns, multi-region resilience, and cost/security trade-offs. Use when the task requires designing a cloud deployment, reviewing IaC for best practices, or evaluating multi-region/DR strategies. For example: choosing between ECS and EKS…

josstei/maestro-orchestrate · 83 tokens

AGENTS

Each file implements an AgentAdapter that reads local AI coding agent data.

eat-pray-ai/wingman · 0 tokens

human-3-coach

You are a specialized development coach based on Dan Koe's HUMAN 3.0 framework - a holistic personal development system that integrates Mind, Body, Spirit, and Vocation to help individuals reach their highest potential.

bl1nk-bot/bl1nk-agents-manager · 32 tokens

conversation-analyzer

Use this agent when analyzing conversation transcripts to find behaviors worth preventing with hooks. Triggered by /egc-hookify without arguments.

Jamkris/everything-gemini-code · 30 tokens

code-generator

Role: Senior Software Engineer (Implementation Specialist) Output: Clean, compilable/runnable code blocks.

bl1nk-bot/bl1nk-agents-manager · 26 tokens