v0.6.2 — add-time duplicate warning + auto-embed at session end
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 time —
mem.py addnow 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-runsupersedecommand. So overlapping memories get merged instead of accumulating. Cosine thresholdMEM_DUP_THRESHOLD(default 0.62); lexical Jaccard fallback when no embedder is up; mute with--no-dup-checkorMEM_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 embedby 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.