Install
openclaw skills install correlation-memoryCorrelation-aware memory search plugin for OpenClaw — automatically retrieves related decision contexts when you query memory. Zero external dependencies. Install as an OpenClaw plugin.
openclaw skills install correlation-memoryCorrelation-aware memory search for OpenClaw — automatically retrieves related contexts when you query memory.
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.
max_results parameter prevents output bloatcorrelation-rules.json changesopenclaw/plugin-sdk)npm install fetches only openclaw (peerDep) + vitest (devDep, not bundled) — no postinstall scriptsRules 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
| 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 |
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.
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