@yuenwinyun/memory-recall-optimizer
v0.1.0
Published
OpenClaw hook plugin to improve memory recall reliability and observability.
Readme
OpenClaw Memory Recall Optimizer
A lightweight OpenClaw hook plugin that improves memory recall consistency by shaping memory_search behavior and adding recall diagnostics.
What it does
- Normalizes
memory_searchparameters before execution (maxResults,minScore). - Adds a short recall guard prompt on memory-oriented turns.
- Logs per-call summaries for observability (
runId,hits,disabled,fallback).
Install
From npm (public)
openclaw plugins install @yuenwinyun/memory-recall-optimizer
openclaw plugins enable memory-recall-optimizerLocal development install
openclaw plugins install ./memory-recall-optimizer
openclaw plugins enable memory-recall-optimizerRestart the gateway/app after install when needed.
Configuration
plugins.entries.memory-recall-optimizer.config.enabled(default:true)plugins.entries.memory-recall-optimizer.config.enforceMemorySearchTuning(default:true)plugins.entries.memory-recall-optimizer.config.maxResults(default:10, 1..25)plugins.entries.memory-recall-optimizer.config.minScore(default:0.2, 0..1)plugins.entries.memory-recall-optimizer.config.minPromptLengthForGuard(default:18, 8..120)plugins.entries.memory-recall-optimizer.config.logMemorySearchSummary(default:true)
Validate
openclaw plugins list | rg memory-recall-optimizer
openclaw plugins inspect memory-recall-optimizer
openclaw memory status --deepThen run a memory-oriented turn. With logs enabled, you should see:
memory-recall-optimizer: tool=memory_search ...
License
MIT
