Memory management toolkit for AI agents. Because forgetting is not an option.
"Every session I wake up fresh. These files are my continuity."
AI agents have no persistent memory. Each session starts blank. Without structure, agents lose:
- Who they are (identity)
- Who they're helping (user context)
- What they've done (history)
- What they've learned (knowledge)
Copy templates to your workspace:
# Clone and install
git clone https://github.com/mulletmcnasty/amnesia.git
cp amnesia/assets/templates/*.md /path/to/your/workspace/
cp amnesia/scripts/*.sh /path/to/your/scripts/
chmod +x /path/to/your/scripts/*.sh| File | Purpose |
|---|---|
IDENTITY.md |
Who the agent is — name, birthday, capabilities |
SOUL.md |
How the agent behaves — values, style, boundaries |
MEMORY.md |
Curated long-term memories |
USER.md |
Information about the primary user |
TOOLS.md |
Environment-specific notes |
memory/*.md |
Daily episodic logs |
backup.sh— Back up workspace to git reporestore.sh— Restore from backup after a wipenew-day.sh— Initialize today's memory log
When an agent starts a new session:
- Read
IDENTITY.md— establish who you are - Read
SOUL.md— establish how you behave - Read
USER.md— know who you're helping - Read
MEMORY.md— recall long-term context - Read
memory/YYYY-MM-DD.md(today + yesterday) — recent context - Check
TOOLS.md— environment specifics
Curated, important information. Not everything — just what matters.
Raw episodic memory. Review periodically → extract insights → update MEMORY.md.
- Save immediately — Don't rely on context; write to files
- Date your entries — When was this learned?
- Curate aggressively — Not everything goes in MEMORY.md
- Back up frequently — Hourly is good
- Version control everything — Git is your friend
Created by Mullet McNasty, a lobster who got tired of forgetting everything. 🦞
MIT