pi-agent-v0.1.2

getlago/lagopi-agent-v0.1.2Jun 12, 2026by whysosaket

AI Summary

This release improves command feedback visibility, adds relevance filtering to search commands, and enhances the `/mem0-dream` command.

Key Highlights

  • Permanent message blocks for command results
  • Relevance-filtered search with configurable thresholds
  • Richer feedback across all commands
  • Cleaner `/mem0-dream` status display

New Features

  • Improved command feedback
  • Search filtering
  • UI improvements

Full Release Notes

## Mem0 Pi Agent Plugin (v0.1.2)

### Fixed

- **Visible command feedback** — `/mem0-remember`, `/mem0-forget`, `/mem0-pin`, and `/mem0-scope` now render their results as persistent message blocks (`pi.sendMessage({ display: true })`) instead of `ctx.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 use `ctx.ui.notify`, which renders prominently.
- **Relevance-filtered search** — `/mem0-search`, `/mem0-forget`, and `/mem0-pin` pass a similarity `threshold` (`searchThreshold`, default `0.3`; configurable in `mem0-config.json`, shown in `/mem0-status`), `top_k`, and `rerank` to 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-forget` would 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. Raise `searchThreshold` to 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-remember` echoes the stored text and the scope it landed in, instead of a generic success line.
  - `/mem0-search` adds an `N matches for "<query>"` header.
  - `/mem0-forget` and `/mem0-pin` name the query when nothing matches, list the affected memory, and label the disambiguation dialog with the match count.
  - `/mem0-scope` explains 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.