π¦ ClawHub
Trident Memory System
by @shivaclaw
Three-tier persistent memory architecture for OpenClaw agents with daily episodic logs, curated long-term memory, semantic recall, and WAL-based continuity w...
π‘ Examples
Once installed, Trident exposes four memory tools for agents:
#### 1. Memory Search
# Full-text search across all memory
memory_search(query="job search", mode="full_text", scope="both", limit=50)Regex search
memory_search(query="^\\[lesson\\]", mode="regex", limit=20)
#### 2. Memory Expand
# Expand a specific compacted summary
memory_expand(summary_ids=["sum_aab3cd29ed348405"], max_depth=3)Search first, then expand top matches
memory_expand(query="backup cron", max_depth=2)
#### 3. Memory Update
# Append to today's daily log
memory_update(
entry="Deployed Trident v1.0 to ClawHub",
section="## Milestones",
tag="[project]"
)
#### 4. Memory Recall
# Answer a question using memory context
memory_recall(
prompt="What was the job search status as of last week?",
max_tokens=2000
)
βοΈ Configuration
Install with openclaw plugins install openclaw-trident, then configure:
{
"plugins": {
"trident": {
"enabled": true,
"memoryRoot": "/path/to/workspace",
"maxDailyLogSize": 5242880,
"enableSemanticRecall": true
}
}
}
TERMINAL
clawhub install trident-plugin