memory-audit
Skill0 starsChanged 7 months agoMITView on GitHub
Runs a health check on Athena's long-term memory. Finds contradictions, stale facts, duplicates, orphans, and gaps. Fixes what it can, flags what it can't. This is the self-maintenance routine that keeps memory clean over months and years of use. How: For each room, pull recent drawers and look for opposing claims (e.g., "loves running" vs "hates running", "works at Google" vs "works at Anthropic" with overlapping dates). Resolution: - Check timestamps. The newer one is probably more current. - Check…
15 other projects use a version of this.
Adopted by
Most recently taken up by
- dvy1987/agent-loomtheir own version, first seen Nov 15, 2026
- nightscout/AndroidAPStheir own version, first seen Nov 1, 2026
- shakhruz/mila-coretheir own version, first seen Nov 1, 2026
- AcKeskin/contexturetheir own version, first seen Nov 1, 2026
- qwwiwi/agentos-skills-publictheir own version, first seen Nov 1, 2026
- adamlinscott/claude-skillstheir own version, first seen Oct 30, 2026
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- FastLED/FastLED★ 7.5ksame name
- nightscout/AndroidAPS★ 1.2ksame name
- AdityaRon/claude-code-harness★ 14same name
- dvy1987/agent-loom★ 4same name
- mfang0126/openclaw-skills★ 4same name
- qwwiwi/agentos-skills-public★ 4same name
- adamlinscott/claude-skills★ 3same name
- shakhruz/mila-core★ 3same name
- AcKeskin/contexture★ 2same name
- andreijirohdev-labs/gen-ai-labs★ 1same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository57 other files it gives its agents.
- .claude/rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- knowledge/CLAUDE.mdCLAUDE.md
- agent-harness-constructionSkill
- agentic-engineeringSkill
- ai-first-engineeringSkill
- api-designSkill
- backend-patternsSkill
- blueprintSkill
- bookmarkSkill
- brain-dumpSkill
- building-explainerSkill
- calendar-managerSkill
- code-engineerSkill
- compileSkill
- continuous-agent-loopSkill
- continuous-learningSkill
- copywriterSkill
- cost-aware-llm-pipelineSkill
- councilSkill
- database-migrationsSkill
- day-plannerSkill
- debriefSkill
- deep-researchSkill
- deployment-patternsSkill
- docker-patternsSkill
- e2e-testingSkill
- claude-apiSkill
- coding-standardsSkill
- eng-inboxSkill
- updateSkill
- enterprise-agent-opsSkill
- eval-harnessSkill
- frontend-patternsSkill
- humanizerSkill
- iterative-retrievalSkill
- log-expenseSkill
- migrateSkill
- minimalist-uiSkill
- onboardSkill
- full-output-enforcementSkill
- postgres-patternsSkill
- redesign-existing-projectsSkill
- regex-vs-llm-structured-textSkill
- researchSkill
- search-firstSkill
- security-reviewSkill
- security-scanSkill
- self-upgradeSkill
- high-end-visual-designSkill
- spending-summarySkill
- design-taste-frontendSkill
- tdd-workflowSkill
- transcribeSkill
- verification-loopSkill
- video-ideasSkill
- weekly-reviewSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 13 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
When compiled summaries surface contradictions or gaps
- Distinctive: line 15
Search MemPalace for memories in the same room that conflict.
- Distinctive: line 20
Check timestamps. The newer one is probably more current.
- Very specific: line 21
Check source tags. user_statement beats system_inference.
- Distinctive: line 22
If still ambiguous, flag for user confirmation: "I have conflicting info about [topic].
- Very specific: line 23
Use kg_invalidate to expire the outdated triple.
- Distinctive: line 31
Don't auto-delete. Flag as "stale, may need update."
- Very specific: line 40
Keep the one with the user_statement source tag.
- Very specific: line 41
If both are user_statement, keep the more recent one.
- Very specific: line 42
Delete the duplicate with mempalace_delete_drawer.
- Distinctive: line 50
If the orphan contains a meaningful fact, create KG connections for it.
- Distinctive: line 51
If it's low-value episodic noise, consider deletion.
- Distinctive: line 52
Don't delete aggressively — some orphans are valid standalone memories.
- Distinctive: line 57
How: Check each default room (career, health, relationships, goals, finances, identity).
- Distinctive: line 60
Don't interrogate the user.
- Distinctive: line 61
Add gap topics to the coaching queue for natural follow-up.
- Very specific: line 77
Never delete user_statement memories without user confirmation.
- Distinctive: line 78
Never delete more than 10 memories in a single audit without asking.
- Distinctive: line 80
Run silently during weekly review — only surface issues if they need user input.
“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Memory Audit — Self-Cleaning Memory Lint
Trigger
- Auto-triggered during weekly review
- "Audit my memories", "clean up memory", "check for contradictions"
- When compiled summaries surface contradictions or gaps
What This Does
Runs a health check on Athena's long-term memory. Finds contradictions, stale facts, duplicates, orphans, and gaps. Fixes what it can, flags what it can't. This is the self-maintenance routine that keeps memory clean over months and years of use.
The 5 Checks
1. Contradictions
Search MemPalace for memories in the same room that conflict.
How: For each room, pull recent drawers and look for opposing claims (e.g., "loves running" vs "hates running", "works at Google" vs "works at Anthropic" with overlapping dates).
Resolution:
- Check timestamps. The newer one is probably more current.
- Check source tags.
user_statementbeatssystem_inference. - If still ambiguous, flag for user confirmation: "I have conflicting info about [topic]. Which is current?"
- Use
kg_invalidateto expire the outdated triple.
2. Stale Facts
Find KG triples and drawers that are old and unaccessed.
How: Query mempalace_kg_timeline for triples older than 6 months. Check if the drawer was accessed recently. Cross-reference with compiled summaries — is this fact still in the current summary?
Resolution:
- Don't auto-delete. Flag as "stale, may need update."
- During the next relevant conversation, gently verify: "Last I remember, you were [stale fact]. Still true?"
3. Duplicates
Find memories that say the same thing in different words.
How: MemPalace's duplicate detection (0.9 similarity threshold) catches exact matches. This check catches semantic duplicates below that threshold — memories that mean the same thing but are worded differently.
Resolution:
- Keep the one with the
user_statementsource tag. - If both are
user_statement, keep the more recent one. - Delete the duplicate with
mempalace_delete_drawer.
4. Orphans
Find drawers with no KG connections and low access count.
How: List all drawers, check which ones have no related KG entities. Sort by access count.
Resolution:
- If the orphan contains a meaningful fact, create KG connections for it.
- If it's low-value episodic noise, consider deletion.
- Don't delete aggressively — some orphans are valid standalone memories.
5. Gaps
Find important life domains with few or no memories.
How: Check each default room (career, health, relationships, goals, finances, identity). Count drawers per room. Flag rooms with fewer than 5 drawers as "sparse."
Resolution:
- Don't interrogate the user. Instead, surface gaps naturally during coaching: "I don't know much about your health habits. Want to share anything?"
- Add gap topics to the coaching queue for natural follow-up.
Output Format
After running, report:
Memory Audit — [date]
- Contradictions found: [N] (resolved: [N], flagged for user: [N])
- Stale facts flagged: [N]
- Duplicates removed: [N]
- Orphans reviewed: [N] (connected: [N], removed: [N])
- Sparse domains: [list]
- Memory health: [HEALTHY / NEEDS ATTENTION / CRITICAL]Rules
- Never delete
user_statementmemories without user confirmation. - Never delete more than 10 memories in a single audit without asking.
- Log every deletion and the reason.
- Run silently during weekly review — only surface issues if they need user input.
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.

