Triple Memory
Complete memory system combining LanceDB auto-recall, Git-Notes structured memory, and file-based workspace search. Use when setting up comprehensive agent memory, when you need persistent context acr
Complete memory system combining LanceDB auto-recall, Git-Notes structured memory, and file-based workspace search. Use when setting up comprehensive agent memory, when you need persistent context acr
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
A comprehensive memory architecture combining three complementary systems for maximum context retention across sessions.
User Message ↓ [LanceDB auto-recall] → injects relevant conversation memories ↓ Agent responds (using all 3 systems) ↓ [LanceDB auto-capture] → stores preferences/decisions automatically ↓ [Git-Notes] → structured decisions with entity extraction ↓ [File updates] → persistent workspace docs
memory_recall, memory_store, memory_forgetscripts/file-search.sh{ "plugins": { "slots": { "memory": "memory-lancedb" }, "entries": { "memory-lancedb": { "enabled": true, "config": { "embedding": { "apiKey": "${OPENAI_API_KEY}", "model": "text-embedding-3-small" }, "autoRecall": true, "autoCapture": true } } } } }
Add to your Clawdbot config to automatically preserve context before compaction:
{ "agents": { "defaults": { "compaction": { "mode": "safeguard", "memoryFlush": { "enabled": true, "softThresholdTokens": 8000, "systemPrompt": "Session nearing compaction. Preserve context using triple memory system (git-notes, LanceDB, files).", "prompt": "Context is at ~80%. Write session summary to memory/YYYY-MM-DD.md, update MEMORY.md if needed, store key facts to git-notes. Reply NO_REPLY when done." } } } } }
This triggers automatic memory dump when context reaches ~80%, before any information is lost to compaction.
clawdhub install git-notes-memory
Copy
scripts/file-search.sh to your workspace.
python3 skills/git-notes-memory/memory.py -p $WORKSPACE sync --start
python3 skills/git-notes-memory/memory.py -p $WORKSPACE remember \ '{"decision": "Use PostgreSQL", "reason": "Team expertise"}' \ -t architecture,database -i h
./scripts/file-search.sh "database config" 5
LanceDB handles this automatically. Manual tools:
memory_recall "query" - search conversation memorymemory_store "text" - manually store somethingmemory_forget - delete memories (GDPR)| Flag | Level | When to Use |
|---|---|---|
| Critical | "always remember", explicit preferences |
| High | Decisions, corrections, preferences |
| Normal | General information |
| Low | Temporary notes |
| System | Use For |
|---|---|
| LanceDB | Conversation context, auto-retrieval |
| Git-Notes | Structured decisions, searchable by entity/tag |
| File Search | Workspace docs, daily logs, MEMORY.md |
workspace/ ├── MEMORY.md # Long-term curated memory ├── memory/ │ ├── active-context.md # Current session state │ └── YYYY-MM-DD.md # Daily logs ├── scripts/ │ └── file-search.sh # Workspace search └── skills/ └── git-notes-memory/ # Structured memory
Never announce memory operations to users. Just do it:
No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.