@globalcaos/openclaw-memory-enhancements
v0.1.0
Published
Same concept, twentieth time — why search again? O(1) hippocampus index layered on upstream memory-core.
Readme
Memory Enhancements
Same concept, twentieth time — why search again? O(1) hippocampus index layered on upstream memory-core.
Upstream's memory-core is a solid chassis — hybrid FTS + vector + MMR + temporal decay, markdown-first source of truth. This plugin adds four layered wins without touching its source.
- Hippocampus O(1) concept index (live in v0.1) — pre-computed anchor → chunk map. When a query contains a known concept, retrieval skips the hybrid search entirely and returns in constant time. Upstream always pays the full FTS + vector + MMR cost; this plugin recognizes "we've seen this twenty times" and short-circuits.
- Task-conditioned retrieval scoring (scaffolded for v0.2) — biases retrieval toward the current task context, not just the query text. If the agent is fixing cron, results lean cron-shaped even when the immediate query doesn't say "cron".
- Contradiction-gate on writes (scaffolded for v0.2) — before the nightly deep-dreaming sweep promotes short-term recalls to durable
MEMORY.md, candidates are checked against existing facts.warnlogs;blockvetoes the promotion. Stops slow self-corruption by wishful thinking. - Compaction-aware capture (live in v0.1, ingestion landing in v0.2) — snapshots messages on the way out of the context window so nothing important is lost to truncation.
Remove the plugin and memory-core works exactly as upstream ships it. You just lose the four wins.
Install
openclaw plugins install @globalcaos/openclaw-memory-enhancementsEnable it in openclaw.json:
"plugins": {
"allow": ["tinkerclaw-memory-enhancements"],
"entries": { "tinkerclaw-memory-enhancements": { "enabled": true } }
}Pairs Well With
- @globalcaos/openclaw-total-recall — ENGRAM is the deeper episodic store; this plugin is the fast lookup. Use both for full coverage: O(1) by-concept on the head, retrieval-by-similarity over the long tail.
- @globalcaos/openclaw-identity-persistence — the contradiction gate keeps your agent's self-model coherent. SOUL.md says one thing today; durable memory can't slowly disagree.
- @globalcaos/openclaw-fractal-reflection — reflections become candidate writes. The contradiction gate catches the ones that disagree with established memory before they become beliefs.
👉 https://github.com/globalcaos/tinkerclaw 👉 https://thetinkerzone.com
Clone it. Fork it. Break it. Make it yours.
