Skip to content

v0.6.2 — add-time duplicate warning + auto-embed at session end

Choose a tag to compare

@cremenescu cremenescu released this 15 Jun 18:11

Two guards that keep the memory store from rotting on its own — born from a real session where four near-duplicate, partly-contradictory memories had piled up unnoticed.

New

  • Duplicate warning at write timemem.py add now searches semantically before saving and, if a near-duplicate memory of the same type already exists, prints a warning (it never blocks) with the closest matches and a ready-to-run supersede command. So overlapping memories get merged instead of accumulating. Cosine threshold MEM_DUP_THRESHOLD (default 0.62); lexical Jaccard fallback when no embedder is up; mute with --no-dup-check or MEM_DUP_CHECK=0.
  • Auto-embed at session end — the SessionEnd hook now refreshes the semantic vectors automatically (detached, non-blocking, incremental), so hybrid search and the Links page suggestions reflect memories written this session without running mem.py embed by hand.

Together they close the loop: new memories are embedded as soon as the session ends, and the next add can warn you before you duplicate one.

Install / upgrade: claude plugin marketplace add cremenescu/mem0ry4ai then claude plugin install mem0ry4ai@mem0ry4ai. Full docs in the README.