โจ๏ธ
Category
โจ๏ธCLI & Utilities
Author
ktpriyatham
Last Updated
Unknown
Source
โกVoltAgent
๐Security Analysis
Risk ScoreLow Risk
Safe0/10Risky
Required Permissions
๐๏ธ
Database
Database access
๐
File System
Can read/write files
โ ๏ธ
Sudo/Root
Requires elevated privileges
Security Notes
Requires elevated privileges. Database access. File system access.
Minimal system access, safe to use
Source Code
View on GitHubSKILL.md Documentation
---
name: triple-memory
version: 1.0.0
description: 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 across sessions, or when managing decisions/preferences/tasks with multiple memory backends working together.
metadata:
clawdbot:
emoji: "๐ง "
requires:
plugins:
- memory-lancedb
skills:
- git-notes-memory
---
# Triple Memory System
A comprehensive memory architecture combining three complementary systems for maximum context retention across sessions.
## Architecture Overview
```
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
```
## The Three Systems
### 1. LanceDB (Conversation Memory)
- **Auto-recall:** Relevant memories injected before each response
- **Auto-capture:** Preferences/decisions/facts stored automatically
- **Tools:** `memory_recall`, `memory_store`, `memory_forget`
- **Triggers:** "remember", "prefer", "my X is", "I like/hate/want"
### 2. Git-Notes Memory (Structured, Local)
- **Branch-aware:** Memories isolated per git branch
- **Entity extraction:** Auto-extracts topics, names, concepts
- **Importance levels:** critical, high, normal, low
- **No external API calls**
### 3. File Search (Workspace)
- **Searches:** MEMORY.md, memory/*.md, any workspace file
- **Script:** `scripts/file-search.sh`
## Setup
### Enable LanceDB Plugin
```json
{
"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
}
}
}
}
}
```
### Install Git-Notes Memory
```bash
clawdhub install git-notes-memory
```
### Create File Search Script
Copy `scripts/file-search.sh` to your workspace.
## Usage
### Session Start (Always)
```bash
python3 skills/git-notes-memory/memory.py -p $WORKSPACE sync --start
```
### Store Important Decisions
```bash
python3 skills/git-notes-memory/memory.py -p $WORKSPACE remember \
'{"decision": "Use PostgreSQL", "reason": "Team expertise"}' \
-t architecture,database -i h
```
### Search Workspace Files
```bash
./scripts/file-search.sh "database config" 5
```
### Conversation Memory (Automatic)
LanceDB handles this automatically. Manual tools:
- `memory_recall "query"` - search conversation memory
- `memory_store "text"` - manually store something
- `memory_forget` - delete memories (GDPR)
## Importance Levels
| 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 |
## When to Use Each System
| System | Use For |
|--------|---------|
| **LanceDB** | Conversation context, auto-retrieval |
| **Git-Notes** | Structured decisions, searchable by entity/tag |
| **File Search** | Workspace docs, daily logs, MEMORY.md |
## File Structure
```
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
```
## Silent Operation
Never announce memory operations to users. Just do it:
- โ "I'll remember this"
- โ "Saving to memory"
- โ
(silently store and continue)
Related Skills
clawddocs
@nicholasspisak ยท CLI & Utilities
Low Risk
Clawdbot documentation expert with decision tree navigation, search scripts, doc fetching.
CLI & Utilities
โbankr dev - arbitrary transactions
@bankrbot ยท CLI & Utilities
High Risk
Development tools for bankr dev arbitrary transactions
CLI & Utilities
โbankr dev - api basics
@bankrbot ยท CLI & Utilities
High Risk
Development tools for bankr dev api basics
CLI & Utilities
โExplore More Skills
Discover hundreds more Claude Code skills with security analysis.
Browse All Skills