mcpField
M
memory-reviewer

memory-reviewer

github.com/mem0aiAgent workflows68.0k107 installsUpdated 2d ago
Repository

About memory-reviewer

memory-reviewer is a read-only skill for auditing memories in the active project. It identifies duplicates, contradictions, low-confidence entries, missing types, and stale records, then reports findings for review.

Key features

  1. 01Scans up to 200 project memories
  2. 02Groups entries by metadata type
  3. 03Detects duplicates and contradictions
  4. 04Flags low-confidence, untagged, and stale entries
  5. 05Reports issue details with memory IDs

Use cases

  1. 01Review memory quality after many writes
  2. 02Investigate issues found by a deep health check
  3. 03Find conflicting or redundant project memories

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mem0ai/mem0 --skill memory-reviewer

After installing, type/memory-reviewerin Claude Code to confirm it loaded.

Details

From the project README

Memory Reviewer

Audits memory quality for the active project. Finds duplicates, contradictions, and low-confidence entries.

When to use

  • User asks "check my memories", "memory quality", "any duplicates?"
  • User runs /mem0:memory-reviewer directly
  • After a session with 5+ memory writes (suggest proactively)
  • After /mem0:health --deep identifies issues

Steps

  1. Fetch all memories for active project via get_memories with filters={"AND": [{"user_id": "<active_user_id>"}, {"app_id": "<active_project_id>"}]}, page_size=200. Paginate if needed — cap at 200 memories.

  2. Group by metadata.type. Common types: decision, convention, anti_pattern, task_learning, project_profile, user_preference, session_state.

  3. Scan each group for issues:

    IssueDetection method
    Near-duplicates>60% noun overlap within same type. Compare memory text after stripping stop words.
    ContradictionsOpposing facts about same topic (e.g., "use PostgreSQL" vs "use MySQL" for same component)
    Low-confidencemetadata.confidence < 0.3
    Missing typeNo metadata.type set
    Stalecreated_at older than 180 days with no updates
  4. Output compact summary:

memory-reviewer: project=<id> total=<N>
  duplicates:      <N> found
  contradictions:  <N> found
  low_confidence:  <N> found
  untagged:        <N> found
  stale:           <N> found
  1. If issues found, list them with memory IDs:
Issues:
  [duplicate] "<memory_a>" ≈ "<memory_b>" [mem0:<id_a>, mem0:<id_b>]
  [contradiction] "<memory_x>" vs "<memory_y>" [mem0:<id_x>, mem0:<id_y>]
  [low_conf] "<memory_z>" (confidence: 0.1) [mem0:<id_z>]
  1. Suggest action: "Run /mem0:dream to consolidate duplicates and resolve contradictions."

Constraints

  • Read-only — never modify or delete memories (that's /mem0:dream's job)
  • Max 200 memories per scan
  • Report findings, let user decide on action

Comments

Markdown supported