Design tiered memory for persistent agents
Working, episodic, and semantic memory tiers with promotion/forgetting policies that stay coherent.
Track: 🤖 AI Engineering · Domain: Agent Memory · Level: advanced · ~45 min
Who this is for: AI Engineers, ML Engineers, LLM App Developers, Agent Builders
When to Use This Skill
Working, episodic, and semantic memory tiers with promotion/forgetting policies that stay coherent. Use it whenever a matching task appears in conversation — the agent loads these instructions on demand.
Steps
- Keep working memory as curated context window, not raw transcript
- Write episodic summaries at session boundaries with salience scores
- Promote recurring facts to semantic store only after N corroborations
- Implement forgetting: decay scores, TTL on stale entries
- Give agents explicit memory-write tools with structured schemas
- Audit memory contents monthly for PII and contradiction buildup
Common Pitfalls
- Everything stored forever until retrieval drowns in noise
- Contradictory memories surfacing whichever was written last
Commands
Install with skills CLI
npx skills add aniruddhaadak80/skills --skill agent-memory-agent-memory-tiers
Install globally
npx skills add aniruddhaadak80/skills --skill agent-memory-agent-memory-tiers -g
Part of aniruddhaadak80/skills · Browse all at https://skills.sh/aniruddhaadak80/skills