guava-memoryStructured episodic memory system that records task outcomes with Q-values, searches past successes, and promotes reliable procedures for reuse.
Install via ClawdBot CLI:
clawdbot install koatora20/guava-memoryStructured episodic memory with Q-value scoring. Remember what worked, forget what didn't.
memory_search (Voyage AI compatible)mkdir -p memory/episodes memory/skills memory/meta
cat > memory/episodes/index.json << 'EOF'
{
"version": "1.0.0",
"name": "GuavaMemory",
"episodes": [],
"stats": { "total": 0, "avg_q_value": 0, "promotions": 0 },
"config": {
"promotion_threshold": 0.85,
"promotion_min_count": 3,
"max_episodes_per_search": 3,
"learning_rate": 0.3
}
}
EOF
Paste the following rules into your AGENTS.md:
### Episodic Memory Rules
1. **Task start** โ `memory_search` for related episodes. Use top 3 by Q-value
2. **Task complete** โ Record episode in `memory/episodes/ep_YYYYMMDD_NNN.md`
3. **Record content** โ Intent, Context, Success pattern, Failure pattern, Q-value, feel
4. **Skill promotion** โ 3 successes with same intent & Qโฅ0.85 โ promote to `memory/skills/`
5. **Anti-patterns** โ Record failures in `memory/episodes/anti_patterns.md`
6. **No loops** โ Record once per task at completion. No mid-task rewrites
7. **Update index** โ Keep `memory/episodes/index.json` in sync
Create files like memory/episodes/ep_20260211_001.md:
# EP-20260211-001: Short description
## Intent
What you were trying to do
## Context
- domain: what area
- tools: what tools used
## Experience
### โ
Success Pattern
1. Step one
2. Step two
3. Step three
### โ Failure Pattern
- What didn't work and why
## Utility
- reward: 0.0-1.0 (1.0 = one-shot success)
- q_value: 0.0-1.0 (updated over time)
- feel: flow | grind | frustration | eureka
Q_new = Q_old + 0.3 * (reward - Q_old)
Reward scale:
1.0 โ One-shot success0.7 โ Success with some trial and error0.3 โ Success but very roundabout0.0 โ Failed, solved differently-0.5 โ Failed, unresolvedWhen the same intent succeeds 3+ times with Q โฅ 0.85:
memory/skills/skill-name.mdstatus: "graduated"Copy scripts/ep-search.sh to your workspace:
#!/bin/bash
EPISODES_DIR="${HOME}/.openclaw/workspace/memory/episodes"
INDEX="${EPISODES_DIR}/index.json"
echo "๐ Searching episodes for: $1"
cat "$INDEX" | jq -r '.episodes | sort_by(-.q_value) | .[] | select(.status == "active") | "Q:\(.q_value) | \(.feel) | \(.intent) โ \(.file)"'
jq (for search script)Episodes are plain Markdown files in memory/. OpenClaw's memory_search (Voyage AI) indexes them automatically. When you search for a task, episodes rank by semantic similarity. Then filter by Q-value to find what actually worked.
AI Usage Analysis
Analysis is being generatedโฆ refresh in a few seconds.
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