Install
openclaw skills install soul-memoryIntelligent memory management system v3.5.13 - 修復 heartbeat-trigger.py 改用上次 heartbeat 到現在的增量窗口抓取 important context,避免固定 3 小時窗口遺漏與重掃。
openclaw skills install soul-memoryLong-term memory framework for AI agents with full OpenClaw integration. v3.5.7 修復 get_active_session_id() 排除 cron session,避免誤選 HEARTBEAT session;v3.5.6 放寬 normalize_for_dedup() 保留時間戳差異;v3.5.5 提高 threshold 到 0.92 減少誤去重;v3.5.4 放寬 stable_cues 保存更多技術/項目/QST/文件內容。
8 Powerful Modules + OpenClaw Plugin Integration
| Module | Function | Description |
|---|---|---|
| A | Priority Parser | [C]/[I]/[N] tag parsing + semantic auto-detection |
| B | Vector Search | Keyword indexing + CJK segmentation + semantic expansion |
| C | Dynamic Classifier | Auto-learn categories from memory |
| D | Version Control | Git integration + version rollback |
| E | Memory Decay | Time-based decay + cleanup suggestions |
| F | Auto-Trigger | Pre-response search + Post-response auto-save |
| G | Cantonese Branch | 🆕 語氣詞分級 + 語境映射 + 粵語檢測 |
| H | CLI Interface | 🆕 Pure JSON output for external integration |
| Plugin | OpenClaw Hook | 🆕 before_prompt_build Hook for automatic context injection |
| Web | Web UI | FastAPI dashboard with real-time stats |
| Feature | Description |
|---|---|
| Auto Cleanup Script | Automatically cleans Heartbeat reports every 3 hours |
| Cron Job Integration | OpenClaw Cron system scheduled execution |
| Multi-format Support | Recognizes multiple Heartbeat formats |
| Memory Optimization | Reduces redundancy, improves quality score (7.9 → 8.5) |
| Feature | Description |
|---|---|
| Heartbeat Deduplication | MD5 hash tracking, automatically skips duplicate content |
| CLI Interface | Pure JSON output for external system integration |
| OpenClaw Plugin | Automatically injects relevant memories before responses (v0.2.1-beta) |
| Lenient Mode | Lower recognition thresholds, saves more conversation content |
event.prompt instead of messages history# Clone and install
git clone https://github.com/kingofqin2026/Soul-Memory-.git
cd Soul-Memory-
bash install.sh
# Clean install (uninstall first if needed)
bash install.sh --clean
from soul_memory.core import SoulMemorySystem
# Initialize system
system = SoulMemorySystem()
system.initialize()
# Search memories
results = system.search("user preferences", top_k=5)
# Add memory
memory_id = system.add_memory("[C] User likes dark mode")
# Pre-response trigger (auto-search before answering)
context = system.pre_response_trigger("What are user preferences?")
# Pure JSON output
python3 cli.py search "QST physics" --format json
# Get stats
python3 cli.py stats --format json
# Plugin is automatically installed to ~/.openclaw/extensions/soul-memory
# Restart Gateway to enable
openclaw gateway restart
Automatic Trigger: Executes before each response
prependContextEdit ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"soul-memory": {
"enabled": true,
"config": {
"topK": 5,
"minScore": 0.0
}
}
}
}
}
# Run full test suite
python3 test_all_modules.py
# Expected output:
# 📊 Results: 8 passed, 0 failed
# ✅ All tests passed!
Localized implementation:
Default categories (customizable):
soul-memory/
├── core.py # Core system
├── cli.py # CLI interface
├── install.sh # Auto-install script
├── uninstall.sh # Complete uninstall script
├── test_all_modules.py # Test suite
├── SKILL.md # ClawHub manifest (this file)
├── README.md # Documentation
├── modules/ # 6 functional modules
│ ├── priority_parser.py
│ ├── vector_search.py
│ ├── dynamic_classifier.py
│ ├── version_control.py
│ ├── memory_decay.py
│ └── auto_trigger.py
├── plugin/ # OpenClaw Plugin
│ ├── index.ts # Plugin source
│ └── openclaw.plugin.json
├── cache/ # Cache directory (auto-generated)
└── web/ # Web UI (optional)
Complete removal of all integration configs:
# Basic uninstall (will prompt for confirmation)
bash uninstall.sh
# Create backup before uninstall (recommended)
bash uninstall.sh --backup
# Auto-confirm (no manual confirmation)
bash uninstall.sh --backup --confirm
Removed Items:
~/.openclaw/openclaw.json)HEARTBEAT.md)MIT License - see LICENSE for details
Soul Memory System v3.2 is a personal AI assistant memory management tool, designed for personal use. Not affiliated with OpenClaw project.
© 2026 Soul Memory System