memory-curator

memory-curator is a skill for Claude Code, Codex from Chemaclass/agnostic-ai. It costs 20 tokens per session (855 once invoked), scanned A, original, MIT.

A method for cleaning up an agent's stored project notes. It finds duplicate, outdated, or oversized notes and keeps the memory index usable.

In plain words
What is it for?
Use it to choose a memory store, review its index and topic files, remove duplicates, update old notes, and keep stored context within the tool's loading limits.
Why use it?
An agent may load only part of its memory, so stale or poorly organised notes can hide important project information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to choose a memory store, review its index and topic files, remove duplicates, update old notes, and keep stored context within the tool's loading limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chemaclass/agnostic-ai/memory-curator
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.

Any agent
npx skills add Chemaclass/agnostic-ai --skill memory-curator
Clone the repo
git clone --depth 1 https://github.com/Chemaclass/agnostic-ai

Made for: Claude Code, Codex.

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/skills/chemaclass/agnostic-ai/memory-curator/github.svg)](https://agentmods.dev/skills/chemaclass/agnostic-ai/memory-curator)
Your own site
<a href="https://agentmods.dev/skills/chemaclass/agnostic-ai/memory-curator"><img src="https://agentmods.dev/badge/skills/chemaclass/agnostic-ai/memory-curator/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-curator

Your own site · 80×15
<a href="https://agentmods.dev/skills/chemaclass/agnostic-ai/memory-curator"><img src="https://agentmods.dev/badge/skills/chemaclass/agnostic-ai/memory-curator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 855 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.00020 $0.00855
Opus 5.5 $0.00008 $0.00342
Sonnet 5.5 $0.00004 $0.00171
Haiku 4.5 $0.00002 $0.00085

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

.agnostic-ai/skills/memory-curator/SKILL.md · 45 lines

How it starts

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

memory-curator

Curates the auto memory store of the tool you are running in. The tool prunes its own store, during its own session, with the user watching.

Store

::target claude Auto memory usually lives in ~/.claude/projects/<project>/memory/, but the location is configurable: autoMemoryDirectory in any settings scope moves it, CLAUDE_CONFIG_DIR moves the whole config root, and CLAUDE_CODE_PROJECT_DIR_NAME changes the project segment. Never assume the default path. Run /memory, pick the auto memory folder, and curate whatever store it opens. With the memory built-in on, sync points autoMemoryDirectory at the resolved personal store. The default is .agnostic-ai/local/memory/; memory.personal: repo selects a shared store across worktrees. Use agnostic-ai memory path to resolve it. MEMORY.md is the index and every other file holds one topic.

Each session loads the first 200 lines or 25KB of MEMORY.md, whichever comes first. See the Claude memory reference. ::end

::target qoder Auto memory lives in ~/.qoder/projects/<project>/memory/, with a user-level store in ~/.qoder/memory/. Run /memory for the overview and /memory manage to view, edit, or delete topic files. Use the store the user named. If neither is selected and both are active, ask which to curate; handle one per run. MEMORY.md is the index and every other file holds one topic.

Qoder CLI reads the first 200 lines or about 25KB of each active MEMORY.md. See the Qoder memory reference. ::end

Steps

  1. Find the store first. Resolve it through the tool's /memory command or effective settings, and confirm MEMORY.md exists there. If the session cannot invoke the interactive command, inspect the settings instead of pretending to run it. If auto memory is turned off, say so and stop: there is nothing to curate until it is enabled.
  2. Read MEMORY.md and list the topic files beside it.
  3. Measure the index in lines and bytes against the load limit above, and report the space left.
  4. Group entries that state the same fact in different words. Those are merge candidates.
  5. Flag stale entries: a decision later work reversed, a path or command the repository no longer has, a preference the user has since contradicted. Check each claim against the repository before calling it stale.
  6. Flag entries that belong somewhere else: anything you can work out from the code, and anything the instructions files already say. The session already carries those.
  7. Report one table: file, entry, verdict (keep, merge, delete, move), and one line of evidence.
  8. Propose the edits. Show the replacement line for a merge, and name the file and entry for a deletion.
  9. Apply only the proposals the user has approved. If that approval is already explicit in the request or session, continue within its scope; otherwise ask with the concrete proposed edits.
  10. Apply only the confirmed items, then re-measure the index and report the new size.

Read the full file on GitHub · 45 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. 27d ago Changed · -11 tokens per session 2ee28b714153
  2. 1mo ago Changed 7910b65b6b78
  3. 1mo ago Changed 9b2545ab4d18
  4. 1mo ago Changed b7721ad6e1e7
  5. 2mo ago First seen · 45 lines · 31 tokens per session scan A 3ae0e9680d38

Subscribe to this mod's changes

memory-curator is a skill published in the GitHub repository Chemaclass/agnostic-ai (31 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 855 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-09-19.

Related

memory-curator compared with skills from other repositories

memory-curator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-curatorChemaclass/agnostic-aiSkill31todayMITA20Claude Code, Codex
handoffdeepklarity/harness-kitSkill10820d agoMITA50Claude Code
session-endslowdoctor-dev/workspace-mdSkill21mo agoApache-2.0A53Claude Code
dreamslowdoctor-dev/workspace-mdSkill21mo agoApache-2.0A100Claude Code, Codex
session-startslowdoctor-dev/workspace-mdSkill21mo agoApache-2.0A60Claude Code
agent-v3-memory-specialistruvnet/rufloSkill83ktodayMITA25Claude Code
hindsight-coding-agentvectorize-io/hindsightSkill64ktodayMITA74Claude Code, Codex