Mem0 Pi Agent Plugin (v0.1.2)
Fixed
- Visible command feedback —
/mem0-remember,/mem0-forget,/mem0-pin, and/mem0-scopenow render their results as persistent message blocks (pi.sendMessage({ display: true })) instead ofctx.ui.notify(..., "info"). The Pi TUI draws"info"notifications as dim, collapsible status text that overwrites the previous line, so command results were easily missed (felt like "no feedback"). Warnings and errors still usectx.ui.notify, which renders prominently. - Relevance-filtered search —
/mem0-search,/mem0-forget, and/mem0-pinpass a similaritythreshold(searchThreshold, default0.3; configurable inmem0-config.json, shown in/mem0-status),top_k, andrerankto the mem0 search API, matching the Claude Code and OpenClaw integrations. mem0 ranks results by similarity with no relevance floor, so without a threshold an unrelated query returns the closest (weak) memories — and/mem0-forgetwould offer them for deletion. The server-side threshold makes a query with no sufficiently similar memory report no match, and reranking orders the genuine matches by deeper relevance. RaisesearchThresholdto be stricter; lower it if relevant results are missed.
Improved
- Richer feedback across every command — results now show what actually happened: an action heading plus the relevant scope, query, match count, and affected memories.
/mem0-rememberechoes the stored text and the scope it landed in, instead of a generic success line./mem0-searchadds anN matches for "<query>"header./mem0-forgetand/mem0-pinname the query when nothing matches, list the affected memory, and label the disambiguation dialog with the match count./mem0-scopeexplains where new memories will be saved.
- Cleaner
/mem0-dream— the consolidation protocol is now sent to the agent hidden (display: false, still included in LLM context) behind a concise "Dreaming…" status line, instead of dumping the raw protocol into the transcript.