Memory Hygiene

Discipline for writing and reading persistent agent memory without self-poisoning: two-tier session-vs-durable split, explicit write triggers (never LLM-inferred), scoped writes, small purpose-specific documents over one dump, contradiction and staleness handling, decay, no-secrets rule, retrieve-before-answer, and cite-source. Use when designing or reviewing memory for coding agents (CLAUDE.md / AGENTS.md / MEMORY.md / /memories/), agent frameworks (Mem0, Letta, Cognee, Zep, LangGraph Store, Anthropic Managed Agents memory stores), or repo/session/user memory tiers. Complements 1337-brain (Obsidian vault workflow), untrusted-input-hygiene (memory chunks are still untrusted), and reading-budget-discipline (long-context memory pollution).

AeonDave ff4ced4 8.4 KB Updated

File contents

AeonDave/malskill/tree/main/behaviours/memory-hygiene commit ff4ced43c7

Frequently asked questions

npx skillmds@latest add aeondave/memory-hygiene