Correlation Memory Search
/install correlation-memory
Correlation Memory Plugin
Correlation-aware memory search for OpenClaw — automatically retrieves related contexts when you query memory.
What It Does
When you search memory for topic X, this plugin also fetches related contexts Y and Z that consistently matter together — based on correlation rules you define.
Example: search for "backup error" → plugin also retrieves "last backup time", "recovery procedures", and "similar errors" — because those contexts are correlated by rule.
Key Features
- Decision-context retrieval — surfacing related information before you ask for it
- Word-boundary keyword matching — no false positives from partial matches
- Confidence scoring — filter/sort by how reliable a correlation is
- Multiple matching modes — auto, strict, lenient
- Result limiting —
max_resultsparameter prevents output bloat - mtime cache — rules reloaded only when
correlation-rules.jsonchanges - LRU regex cache — bounded at 500 entries, no memory leaks
- Debug tool — understand why a given context triggered specific correlations
- Lifecycle states — rules can be promoted/archived/disabled without deletion
Security
- Zero external runtime dependencies (index.ts only imports
openclaw/plugin-sdk) - Read-only local file operations (no network, no writes)
- No credential or environment variable access
- Workspace path resolved via OpenClaw SDK only
npm installfetches onlyopenclaw(peerDep) +vitest(devDep, not bundled) — no postinstall scripts
Correlation Rules
Rules live in memory/correlation-rules.json in your workspace. Example:
{
"id": "cr-config-001",
"trigger_context": "config-change",
"trigger_keywords": ["config", "setting", "openclaw.json", "modify"],
"must_also_fetch": ["backup-location", "rollback-instructions"],
"relationship_type": "constrains",
"confidence": 0.95,
"lifecycle": { "state": "promoted" }
}
Active states: promoted, active, testing, validated, proposal
Tools Provided
| Tool | Description |
|---|---|
memory_search_with_correlation |
Enhanced memory search — automatically fetches correlated contexts from correlation rules |
correlation_check |
Debug tool — shows which rules matched and why without performing searches |
Installation
cd ~/.openclaw/extensions
git clone https://github.com/ether-btc/openclaw-correlation-plugin.git correlation-memory
cd correlation-memory && npm install
# Add to openclaw.json
openclaw plugins install correlation-memory
openclaw gateway restart
Requires OpenClaw >= 2026.1.26.
Note: npm install pulls the OpenClaw peer dependency and vitest (dev/test only). The runtime plugin makes no network calls and has zero external dependencies.
See Also
README.md— Full documentation with examples, configuration, architecturecorrelation-rules.example.json— Production-quality rule examplesdocs/schema.md— Full rule schema reference.sanitization-audit.md— Security audit resultstests/correlation.test.ts— Unit tests
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install correlation-memory - 安装完成后,直接呼叫该 Skill 的名称或使用
/correlation-memory触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Correlation Memory Search 是什么?
Correlation-aware memory search plugin for OpenClaw — automatically retrieves related decision contexts when you query memory. Zero external dependencies. In... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 113 次。
如何安装 Correlation Memory Search?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install correlation-memory」即可一键安装,无需额外配置。
Correlation Memory Search 是免费的吗?
是的,Correlation Memory Search 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Correlation Memory Search 支持哪些平台?
Correlation Memory Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Correlation Memory Search?
由 austrian_guy(@ether-btc)开发并维护,当前版本 v2.1.0。