agent-memory-curator
Skill550 starsChanged 7 months agoMITView on GitHub
Use after a session to promote useful episodic notes from logs/episodic/ into distilled, dated entries in MEMORY.md and memory/semantic/.
In this repository11 other files it gives its agents.
- llms-full.txtllms.txt
- llms.txtllms.txt
- adr-writerSkill
- api-design-reviewerSkill
- dataset-profilerSkill
- incident-postmortemSkill
- pr-summarizerSkill
- sprint-plannerSkill
- mcp-security-reviewerSkill
- repo-auditorSkill
- research-summarizerSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
After resolving an incident worth remembering
- Very specific: line 12
When MEMORY.md has grown stale or contradictory
- Distinctive: line 28
Reconcile: if a new entry contradicts an existing one, *update* the existing one rather than appending.
- Distinctive: line 31
Verify: no PII / secrets leaked into memory
- Distinctive: line 38
Every new entry is dated
- Distinctive: line 39
No duplicate entries (search before adding)
- Distinctive: line 40
No PII / secret values
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent Memory Curator
When to use
- End of a working session
- After resolving an incident worth remembering
- When
MEMORY.mdhas grown stale or contradictory
When NOT to use
- During a session (don't write memory mid-flight from low-confidence signals)
- For raw transcripts (those stay in
logs/)
Inputs
| Name | Type | Required | Notes |
since | date | no | default: last curation time |
categories | list | no | restrict to e.g. [user, project, decision] |
Workflow
- Read new episodic logs in
logs/episodic/sincesince - Distill each notable event into a one-line dated entry
- Categorize into: user / project / decision / feedback / open question
- Reconcile: if a new entry contradicts an existing one, update the existing one rather than appending; move the old fact to "Outdated"
- Apply rules from
references/memory-distillation-rules.md - Write to
MEMORY.md(index) andmemory/semantic/<topic>.md(details) - Verify no PII / secrets leaked into memory
- Report summary of additions / updates / deletions
References
references/memory-distillation-rules.md
Success criteria
- Every new entry is dated
- No duplicate entries (search before adding)
- No PII / secret values
- Outdated entries moved, not deleted in-place
Failure modes
- Conflicting evidence → mark as "Open question" rather than guessing
- Source untrusted (e.g., from MCP/web fetch) → require human confirm before promotion
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

