triple-memory-skillComplete 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 across sessions, or when managing decisions/preferences/tasks with multiple memory backends working together.
Install via ClawdBot CLI:
clawdbot install ktpriyatham/triple-memory-skillA 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 |
|------|-------|-------------|
| -i c | Critical | "always remember", explicit preferences |
| -i h | High | Decisions, corrections, preferences |
| -i n | Normal | General information |
| -i l | 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:
Generated Mar 1, 2026
A support agent uses Triple Memory to retain customer preferences and past issues across sessions, automatically recalling relevant context when a user returns. It stores decisions like preferred contact methods and product details in Git-Notes, while searching workspace files for troubleshooting guides.
A project manager employs Triple Memory to track decisions, task assignments, and meeting notes across multiple projects. LanceDB auto-captures preferences, Git-Notes structures key decisions with tags, and file search accesses project documentation for quick reference.
A health coaching AI uses Triple Memory to remember client goals, dietary preferences, and progress logs persistently. It auto-recalls past conversations via LanceDB, stores structured health decisions in Git-Notes, and searches workspace files for workout plans or nutrition guides.
A legal assistant leverages Triple Memory to maintain case histories, client preferences, and research findings across sessions. LanceDB provides conversation context, Git-Notes organizes critical legal decisions with importance levels, and file search accesses case files and statutes.
Offer Triple Memory as a premium feature in a monthly subscription plan for AI agents, targeting businesses that need persistent context across user interactions. Revenue comes from tiered pricing based on memory storage capacity and integration support.
Provide consulting services to help companies integrate Triple Memory into their existing AI systems, customizing setups for specific industries like customer support or project management. Revenue is generated through one-time project fees and ongoing maintenance contracts.
License Triple Memory as part of an enterprise AI platform, selling to large organizations that require scalable, secure memory systems with compliance features like GDPR support. Revenue includes upfront licensing costs and annual renewal fees.
š¬ Integration Tip
Start by enabling LanceDB with auto-recall for basic conversation memory, then gradually add Git-Notes for structured decisions and file search for workspace docs to avoid overwhelming the system.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection