Diagnoses Mem0 connectivity, API key validity, and memory read/write functionality. Use when memory operations fail, searches return empty, or to verify the plu
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-status-640dd06b4395 ,按照其中的说明把「status」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Run a diagnostic check on the Mem0 plugin. Useful for troubleshooting.
Run ALL checks, then display a single summary. Do not stop on the first failure.
Verify the API key is configured. The plugin loads it from MEM0_API_KEY env var or ~/.pi/agent/mem0-config.json.
...Report the resolved identity:
user_id: from config, env, or system userproject_id: auto-detected from current directorysession_id: current session identifierPASS if user_id and project_id are non-empty. WARN if any falls back to defaults.
Use mem0_memory tool with action="search", query="health check".
Use mem0_memory tool with action="add", content="Health check probe — safe to delete.".
## mem0 health
PASS API Key m0-dVe...
PASS Identity user=kartik, project=my-app, session=abc123
PASS Connectivity 142ms
PASS Write/Read write + delete OK
All checks passed.
If any check fails, add a ## Troubleshooting section with specific fix steps.
When invoked with --deep (e.g., /mem0-status --deep), run the standard checks above plus a memory quality scan.
Fetch all memories with mem0_memory action="get_all". Compare pairs within the same category for high textual overlap (shared nouns > 60%). Report:
Potential duplicates: <N> pairs
[mem0:<id1>] ~ [mem0:<id2>] — both about "<shared topic>"
Flag memories older than 180 days that haven't been accessed recently.
Within each category, flag pairs that assert opposing facts.
## Memory Quality
Duplicates: <N> · Stale: <N> · Contradictions: <N>
If all counts are 0: Memory quality: clean.
If any non-zero, list the affected memory IDs so the user can review them with the normal search and forget commands.