🦀 ClawHub
Metaclaw
by @donmeusi
Generischer Skill für Memory-Management, Hybrid Retrieval und Skill Evolution mit PluginEval Integration
💡 Examples
CLI Interface
# Hybrid Retrieval (default: 0.6 semantic + 0.4 keyword)
python3 scripts/memory-vector-wrapper.py "query" --mode hybridSemantic Search
python3 scripts/memory-vector-wrapper.py "query" --mode semanticKeyword Search (FTS)
python3 scripts/memory-vector-wrapper.py "query" --mode keywordMemory Extraction
python3 scripts/memory-extract.py [--date YYYY-MM-DD] [--dry-run]Session Counter
./scripts/session-counter.sh --increment
./scripts/session-counter.sh --check # exit 0 = consolidation readyPluginEval Quality Check
python3 scripts/skill-eval.py --layer1 skills/metaclaw/Auto-Fix (mit --allow-write zum Schreiben)
python3 scripts/skill-eval.py --auto-fix --allow-write skills/metaclaw/
Output
#### Memory Vector Search (JSON)
{
"id": "memory/2026-04-01.md",
"path": "/Users/donmeusi/.openclaw/workspace/memory/2026-04-01.md",
"snippet": "Extrahierter Inhalt...",
"date": "2026-04-01",
"type": "daily",
"tags": [],
"score": 0.0,
"relevance": 0.0,
"method": "hybrid",
"combined_score": 0.0
}
#### Memory Extraction (JSON)
{
"extracted": "2026-04-01",
"type": "project_state",
"confidence": 0.85,
"items": [
{
"category": "Project",
"content": "MetaClaw Integration Phase 1",
"type": "update",
"source": "session"
}
],
"preferences": [],
"project_state": []
}
#### Session Counter
$ ./scripts/session-counter.sh --check
exit 0: consolidation ready
exit 1: not ready yet
⚙️ Configuration
memory/config.yaml
# Hybrid Retrieval Settings
retrieval:
default_mode: "hybrid" # semantic, keyword, fts, hybrid
semantic_weight: 0.6 # 0.6 semantic + 0.4 keyword/fts
default_limit: 5Consolidation Settings
consolidation:
interval_sessions: 10 # alle N Sessions
min_interval_hours: 6 # min 6h zwischen Consolidations
max_memory_lines: 200 # Maximum Zeilen in MEMORY.mdLogging
logging:
level: "INFO" # DEBUG, INFO, WARNING, ERROR
file: "~/.openclaw/workspace/memory/.log"
📋 Tips & Best Practices
Problem: "Dependencies nicht verfügbar"
Lösung:
source .venv-metaclaw/bin/activate
pip install lancedb sentence-transformers numpy
Problem: "Tabelle nicht gefunden"
Lösung:
python3 skills/metaclaw/scripts/memory_vector_init.py
Problem: Session-Counter füllt sich nicht auf
Lösung:
./scripts/session-counter.sh --status
Prüfe ob --increment in Heartbeat aufgerufen wird
TERMINAL
clawhub install metaclaw