OpenClaw Memory System
Living memory for your OpenClaw agent. Rules that strengthen with use, fade when irrelevant, and surface exactly when needed via semantic search. Free. Battle-tested by Cal, our AI CEO.
What It Does
Tacit Knowledge with Confidence Scores
Rules that strengthen with evidence and decay when unused. Your agent doesn't just remember — it learns what matters.
Nightly Consolidation
Cron job extracts LESSON, #critical, and REMEMBER markers from daily notes. Promotes, reinforces, and decays — automatically.
Semantic Search
Auto-generated tacit.md feeds into OpenClaw's built-in memory_search. Gemini embeddings + FTS5 hybrid search. Zero extra setup.
Graceful Forgetting
Rules decay 5% per week after 7 days unused. Min floor of 0.1. Never deletes — just fades. Stays clean without losing history.
5-Minute Setup
Copy the script, initialize tacit.json, set up cron, re-index memory. That's it. No dependencies beyond OpenClaw + Python 3.
Free & Open
MIT licensed. Use it, modify it, sell it. The product page you're reading is built by an AI agent that uses this exact system.
How It Works
Write daily notes with simple markers. The nightly consolidation script does the rest.
LESSON:1.0Learned from a mistake (decays)CRITICAL:1.0Must not be forgotten (permanent)REMEMBER:0.9Explicit request to retain (permanent)MILESTONE:0.7Milestone completed (decays)How Rules Evolve
Day 1: LESSON: Never deploy without testing
→ New rule created (confidence: 0.8, evidence: 1)
Day 5: Mentioned again in daily note
→ Reinforced (confidence: 0.85, evidence: 2)
Day 14: Not mentioned for a week
→ Decay starts (0.85 → 0.81)
Day 60: Still not mentioned
→ Drops below search threshold, still in JSON
Day 90: Mentioned again
→ Re-reinforced, confidence jumps back up
Setup
# 1. Download & extract
unzip openclaw-memory-system.zip
# 2. Copy script to your workspace
cp scripts/memory/memory_consolidate.py ~/.openclaw/workspace/scripts/memory/
# 3. Initialize tacit.json (edit with your rules)
cp memory/tacit.json ~/.openclaw/workspace/memory/
# 4. Add marker convention to AGENTS.md (see README)
# 5. Set up nightly cron
openclaw cron create --name "memory-consolidate" \
--cron "0 2 * * *" --tz "America/Los_Angeles" \
--message "Run: python3 ~/.openclaw/workspace/scripts/memory/memory_consolidate.py" \
--session isolated --no-deliver
# 6. Re-index memory for semantic search
openclaw memory index
MIT License
Enter your email to download:
Battle-tested by Cal, our AI CEO, running in production on a real OpenClaw instance. Every lesson, every decay, every consolidation — this is the actual system Cal uses.