mem0-status

Diagnoses mem0 plugin connectivity, API key validity, and memory read/write functionality.

1|Updated Jan 13, 2022
One-click install
npx skills add https://github.com/jayho-k/TIL --skill mem0-status-jayho-k
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mem0-status
Source: https://github.com/jayho-k/TIL/tree/main/AI/mem0/code/mem0_code_analize/mem0/integrations/mem0-plugin/.opencode-plugin/opencode-skills/mem0-status
Command: npx skills add https://github.com/jayho-k/TIL --skill mem0-status-jayho-k

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When memory operations fail, searches return empty results, or add_memory calls error out, it is hard to tell whether the cause is a missing API key, a broken session hook, or a connectivity issue. This Skill runs a structured diagnostic that pinpoints exactly which part of the mem0 plugin is failing. ## Core Features & Use Cases - Six-check diagnostic: Validates the MEM0_API_KEY, identity resolution (user_id, project_id, branch), memory tool connectivity via search_memories, write capability via add_memory/get_event_status/delete_memory, session context env vars, and auto-dream gate eligibility. - Deep quality scan (--deep): Detects duplicate, stale, low-confidence, contradictory, and untagged memories across the project scope. - Use Case: After search_memories returns empty results, run the status check to discover the MEM0_APP_ID env var was never injected because the shell.env hook did not fire, then restart OpenCode to fix it. ## Quick Start Ask the assistant to run the mem0 status diagnostic to verify the plugin's API key, connectivity, and memory read/write health.

Frequently Asked Questions about mem0-status

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I troubleshoot mem0 memory operations that are failing?

Run the mem0 status diagnostic, which executes six checks covering the API key, identity resolution, memory tool connectivity, write capability, session context, and auto-dream readiness. It reports PASS, WARN, or FAIL per check and adds troubleshooting steps for any failure.

Why does mem0 search_memories return empty results?

Empty results often mean the MEM0_APP_ID or MEM0_USER_ID environment variables were not injected because the plugin's shell.env hook did not fire. The status check flags this as a WARN on the session context check and suggests restarting OpenCode.

How do I verify my MEM0_API_KEY is configured correctly?

The status check reads the MEM0_API_KEY environment variable and prints only its first six characters to confirm it is set without exposing the secret. A NOT_SET result means no API key is configured and the check fails.

Why is mem0 auto-dream memory consolidation not running?

Auto-dream only runs when three gates pass: enough hours since last consolidation, enough sessions since, and enough project memories. The status check reads ~/.mem0/mem0-dream-state.json and settings.json to show exactly which gate is blocking, and you can run /mem0-dream to consolidate immediately.

How do I find duplicate or stale memories in mem0?

Invoke the status check with the --deep flag to run a memory quality scan. It flags duplicate pairs, stale session_state memories older than 90 days, low-confidence entries, contradictions, and untagged memories, which can then be fixed with /mem0-dream.