Ai Agent Memory
Description
File-based memory system for AI Agents with automatic TTL, LLM compression, and multi-agent sharing
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
AI Agent Memory Management System
[中文文档](README_CN.md)
A file-based memory system for AI Agents with automatic TTL, LLM compression, and multi-agent sharing.
Why File System?
| Solution | Complexity | Cost | Debuggability |
|---|---|---|---|
| Mem0 | High | Paid | Black box |
| Vector DB | High | Medium | Need tools |
| This | Low | Free | Open files directly |
Vector databases are great for large-scale semantic search. But for personal AI agents with hundreds of memories, file system is simpler, cheaper, and easier to debug.
Quick Start
1. Basic Setup (Minimum Viable)
MEMORY.md ← Long-term memory (read on every startup)
memory/YYYY-MM-DD.md ← Daily logs (raw material)
SESSION-STATE.md ← Work buffer (survives compression)
Copy `templates/MEMORY.md` and start using it.
2. Add Automation
# Run daily at 4 AM
python3 scripts/memory-janitor.py
# Options
python3 scripts/memory-janitor.py --dry-run # Test without changes
3. Multi-Agent Sharing (Optional)
shared/
├── MEMORY.md # Shared memory (all agents read/write)
├── SOUL-BASE.md # Shared principles
└── lessons/ # Shared lessons
Core Concepts
P0/P1/P2 Priority + TTL
- [P0] Timezone: US Eastern ← Never expires
- [P1][2026-02-24] Current project ← Expires in 90 days
- [P2][2026-02-24] Temp note ← Expires in 30 days
L0/L1/L2 Hierarchy
| Layer | Location | Content | When to Read |
|---|---|---|---|
| L0 | .abstract | Directory overview | Always first |
| L1 | insights/, lessons/ | Distilled patterns | On demand |
| L2 | YYYY-MM-DD.md | Full daily logs | Deep dive only |
90% of queries need only L0 + L1. Saves tokens.
Q1/Q2/Q3 Decision Framework
Before writing to MEMORY.md, ask:
- Q1: Will I make mistakes if I don't see this next time? → P0
- Q2: Might I need to look this up someday? → P1
- Q3: Neither? → Keep in
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI