[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-mem0-health":3,"mdc-2macqq-key":47,"related-org-mem0-health":1288,"related-repo-mem0-health":1433},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":42,"sourceUrl":45,"mdContent":46},"health","diagnose Mem0 connectivity and health","Diagnoses mem0 connectivity, API key validity, and memory read\u002Fwrite functionality. Use when memory operations fail, searches return empty, add_memory errors occur, MCP connection drops, or to verify the plugin is working correctly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"mem0","Mem0","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmem0.png","mem0ai",[13,17,20],{"name":14,"slug":15,"type":16},"Monitoring","monitoring","tag",{"name":18,"slug":19,"type":16},"Memory","memory",{"name":21,"slug":22,"type":16},"Debugging","debugging",60691,"https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0","2026-07-13T06:13:06.569475",null,7066,[29,30,31,32,33,34,35,36,37,19,38,39,40,41],"agents","ai","ai-agents","application","chatbots","chatgpt","genai","llm","long-term-memory","memory-management","python","rag","state-management",{"repoUrl":24,"stars":23,"forks":27,"topics":43,"description":44},[29,30,31,32,33,34,35,36,37,19,38,39,40,41],"Universal memory layer for AI Agents","https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\u002Ftree\u002FHEAD\u002Fintegrations\u002Fmem0-plugin\u002Fskills\u002Fhealth","---\nname: health\ndescription: Diagnoses mem0 connectivity, API key validity, and memory read\u002Fwrite functionality. Use when memory operations fail, searches return empty, add_memory errors occur, MCP connection drops, or to verify the plugin is working correctly.\n---\n\n# Mem0 Health Check\n\nRun a diagnostic check on the mem0 plugin. Useful for troubleshooting.\n\n## Execution\n\nRun ALL checks, then display a single summary. Do not stop on the first failure.\n\n### Check 1: API key\n\n```bash\n_KEY=\"${MEM0_API_KEY:-${CLAUDE_PLUGIN_OPTION_MEM0_API_KEY:-}}\"\n[ -n \"$_KEY\" ] && echo \"${_KEY:0:6}...\" || echo \"NOT_SET\"\n```\n\n- If `NOT_SET`: FAIL — \"No API key configured\"\n- If set: PASS — the command already prints only the first 6 chars\n\n### Check 2: Identity resolution\n\nResolve identity using the plugin's own resolver scripts to match what hooks use:\n\n```bash\nSCRIPT_DIR=\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${CURSOR_PLUGIN_ROOT:-}}}\u002Fscripts\"\nsource \"$SCRIPT_DIR\u002F_identity.sh\" 2>\u002Fdev\u002Fnull\necho \"user_id=${MEM0_RESOLVED_USER_ID:-}\"\necho \"project_id=${MEM0_PROJECT_ID:-}\"\necho \"branch=${MEM0_BRANCH:-}\"\n```\n\nIf `CLAUDE_PLUGIN_ROOT` is not available, fall back to:\n- `user_id`: from `MEM0_USER_ID` or `$USER`\n- `project_id`: from `MEM0_PROJECT_ID` or check `~\u002F.mem0\u002Fproject_map.json` for `$PWD`\n- `branch`: from `git branch --show-current`\n\nPASS if all three are non-empty. WARN if any falls back to defaults.\n\n### Check 3: MCP server connectivity\n\nCall `search_memories` with:\n- `query=\"health check\"`\n- `filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}]}`\n- `top_k=1`\n\n- If returns successfully (even empty): PASS\n- If errors: FAIL — show the error message\n\n### Check 4: Memory write capability\n\nCall `add_memory` with:\n- `text=\"Health check probe — safe to delete.\"`\n- `user_id=\u003Cactive_user_id>`\n- `app_id=\u003Cactive_project_id>`\n- `metadata={\"type\": \"health_check\", \"probe\": true}`\n- `infer=False`\n\nThe response returns `event_id` (v3 writes are async). Call `get_event_status(event_id=\u003Cevent_id>)` to check processing.\n\n- If status is `SUCCEEDED`: PASS — extract the memory ID from the event result, then call `delete_memory` with that ID to clean up.\n- If status is `PENDING` after 5 seconds: PASS (write accepted, processing delayed)\n- If errors: FAIL — show the error.\n\n### Check 5: Session stats tracker\n\nCheck if the session stats file exists and is readable:\n\n```bash\nSTATS_FILE=\"\u002Ftmp\u002Fmem0_session_stats_${USER}.json\"\nif [ -f \"$STATS_FILE\" ] && python3 -c \"import json; json.load(open('$STATS_FILE'))\" 2>\u002Fdev\u002Fnull; then\n  echo \"OK\"\nelse\n  echo \"FAIL\"\nfi\n```\n\nThis file is created by the SessionStart hook and updated by PostToolUse hooks throughout the session. If it doesn't exist, the session hooks may not have fired yet — try sending a message first, then recheck.\n\n### Display\n\n```\n## mem0 health\n\nPASS  API Key          m0-dVe...\nPASS  Identity         user=kartik, project=mem0, branch=main\nPASS  MCP Connection   142ms\nPASS  Write\u002FRead       write + delete OK\nPASS  Session Tracker  stats file active\n\nAll checks passed.\n```\n\nIf any check fails, add a `## Troubleshooting` section with specific fix steps for each failure.\n\n## Extended mode: Memory Quality Analysis\n\nWhen invoked with `--deep` (e.g., `\u002Fmem0:health --deep`), run the standard 5 checks above **plus** a memory quality scan.\n\n### Quality Check 1: Duplicates\n\nCall `get_memories` with `filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}]}`, `page_size=200`. Compare all pairs within the same `metadata.type` group for high textual overlap (shared nouns\u002Fkeywords > 60%). Report:\n\n```\nPotential duplicates: \u003CN> pairs\n  [mem0:\u003Cid1>] ≈ [mem0:\u003Cid2>] — both about \"\u003Cshared topic>\"\n```\n\n### Quality Check 2: Stale memories\n\nFlag memories where:\n- `metadata.type` is `session_state` or `compact_summary` AND older than 90 days\n- `metadata.confidence` \u003C 0.3 AND older than 30 days\n\n```\nStale candidates: \u003CN>\n  [mem0:\u003Cid>] — session_state, 142d old\n```\n\n### Quality Check 2b: Low-confidence memories\n\nFlag memories where `metadata.confidence` \u003C 0.5 (regardless of age). Report separately from stale:\n\n```\nLow-confidence memories: \u003CN>\n  [mem0:\u003Cid>] — confidence=0.3, \"\u003Ccontent preview>\"\n```\n\n### Quality Check 3: Contradictions\n\nWithin each `metadata.type` group, flag pairs that assert opposing facts about the same topic. Use semantic judgment — look for negation patterns, conflicting tool\u002Fframework choices, or reversed decisions.\n\n```\nPossible contradictions: \u003CN>\n  [mem0:\u003CidA>] vs [mem0:\u003CidB>] — conflicting on \"\u003Ctopic>\"\n```\n\n### Quality Check 4: Orphan memories\n\nMemories with no `metadata.type` set, or with `metadata.type` not in the 17 known coding categories. These were likely written without proper tagging.\n\n```\nUntagged\u002Forphan memories: \u003CN>\n```\n\n### Quality summary\n\n```\n## Memory Quality\n\nDuplicates: \u003CN> · Stale: \u003CN> · Contradictions: \u003CN> · Orphans: \u003CN>\n```\n\nIf all counts are 0: `Memory quality: clean.`\nIf any non-zero: append `Run \u002Fmem0:dream to fix.`\n\nTo fix issues found by `--deep`, run `\u002Fmem0:dream` for automated consolidation (merges, prunes, conflict resolution).\n",{"data":48,"body":49},{"name":4,"description":6},{"type":50,"children":51},"root",[52,61,67,74,79,86,252,274,280,285,474,485,560,565,571,584,624,630,641,689,710,751,757,762,962,967,973,983,996,1002,1031,1037,1072,1081,1087,1092,1131,1140,1146,1158,1167,1173,1185,1194,1200,1219,1228,1234,1243,1262,1282],{"type":53,"tag":54,"props":55,"children":57},"element","h1",{"id":56},"mem0-health-check",[58],{"type":59,"value":60},"text","Mem0 Health Check",{"type":53,"tag":62,"props":63,"children":64},"p",{},[65],{"type":59,"value":66},"Run a diagnostic check on the mem0 plugin. Useful for troubleshooting.",{"type":53,"tag":68,"props":69,"children":71},"h2",{"id":70},"execution",[72],{"type":59,"value":73},"Execution",{"type":53,"tag":62,"props":75,"children":76},{},[77],{"type":59,"value":78},"Run ALL checks, then display a single summary. Do not stop on the first failure.",{"type":53,"tag":80,"props":81,"children":83},"h3",{"id":82},"check-1-api-key",[84],{"type":59,"value":85},"Check 1: API key",{"type":53,"tag":87,"props":88,"children":93},"pre",{"className":89,"code":90,"language":91,"meta":92,"style":92},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","_KEY=\"${MEM0_API_KEY:-${CLAUDE_PLUGIN_OPTION_MEM0_API_KEY:-}}\"\n[ -n \"$_KEY\" ] && echo \"${_KEY:0:6}...\" || echo \"NOT_SET\"\n","bash","",[94],{"type":53,"tag":95,"props":96,"children":97},"code",{"__ignoreMap":92},[98,141],{"type":53,"tag":99,"props":100,"children":103},"span",{"class":101,"line":102},"line",1,[104,110,116,121,126,131,136],{"type":53,"tag":99,"props":105,"children":107},{"style":106},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[108],{"type":59,"value":109},"_KEY",{"type":53,"tag":99,"props":111,"children":113},{"style":112},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[114],{"type":59,"value":115},"=",{"type":53,"tag":99,"props":117,"children":118},{"style":112},[119],{"type":59,"value":120},"\"${",{"type":53,"tag":99,"props":122,"children":123},{"style":106},[124],{"type":59,"value":125},"MEM0_API_KEY",{"type":53,"tag":99,"props":127,"children":128},{"style":112},[129],{"type":59,"value":130},":-${",{"type":53,"tag":99,"props":132,"children":133},{"style":106},[134],{"type":59,"value":135},"CLAUDE_PLUGIN_OPTION_MEM0_API_KEY",{"type":53,"tag":99,"props":137,"children":138},{"style":112},[139],{"type":59,"value":140},":-}}\"\n",{"type":53,"tag":99,"props":142,"children":144},{"class":101,"line":143},2,[145,150,155,160,165,170,175,180,186,191,195,200,205,209,214,219,225,229,234,238,242,247],{"type":53,"tag":99,"props":146,"children":147},{"style":112},[148],{"type":59,"value":149},"[",{"type":53,"tag":99,"props":151,"children":152},{"style":112},[153],{"type":59,"value":154}," -n",{"type":53,"tag":99,"props":156,"children":157},{"style":112},[158],{"type":59,"value":159}," \"",{"type":53,"tag":99,"props":161,"children":162},{"style":106},[163],{"type":59,"value":164},"$_KEY",{"type":53,"tag":99,"props":166,"children":167},{"style":112},[168],{"type":59,"value":169},"\"",{"type":53,"tag":99,"props":171,"children":172},{"style":112},[173],{"type":59,"value":174}," ]",{"type":53,"tag":99,"props":176,"children":177},{"style":112},[178],{"type":59,"value":179}," &&",{"type":53,"tag":99,"props":181,"children":183},{"style":182},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[184],{"type":59,"value":185}," echo",{"type":53,"tag":99,"props":187,"children":188},{"style":112},[189],{"type":59,"value":190}," \"${",{"type":53,"tag":99,"props":192,"children":193},{"style":106},[194],{"type":59,"value":109},{"type":53,"tag":99,"props":196,"children":197},{"style":112},[198],{"type":59,"value":199},":",{"type":53,"tag":99,"props":201,"children":202},{"style":106},[203],{"type":59,"value":204},"0",{"type":53,"tag":99,"props":206,"children":207},{"style":112},[208],{"type":59,"value":199},{"type":53,"tag":99,"props":210,"children":211},{"style":106},[212],{"type":59,"value":213},"6",{"type":53,"tag":99,"props":215,"children":216},{"style":112},[217],{"type":59,"value":218},"}",{"type":53,"tag":99,"props":220,"children":222},{"style":221},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[223],{"type":59,"value":224},"...",{"type":53,"tag":99,"props":226,"children":227},{"style":112},[228],{"type":59,"value":169},{"type":53,"tag":99,"props":230,"children":231},{"style":112},[232],{"type":59,"value":233}," ||",{"type":53,"tag":99,"props":235,"children":236},{"style":182},[237],{"type":59,"value":185},{"type":53,"tag":99,"props":239,"children":240},{"style":112},[241],{"type":59,"value":159},{"type":53,"tag":99,"props":243,"children":244},{"style":221},[245],{"type":59,"value":246},"NOT_SET",{"type":53,"tag":99,"props":248,"children":249},{"style":112},[250],{"type":59,"value":251},"\"\n",{"type":53,"tag":253,"props":254,"children":255},"ul",{},[256,269],{"type":53,"tag":257,"props":258,"children":259},"li",{},[260,262,267],{"type":59,"value":261},"If ",{"type":53,"tag":95,"props":263,"children":265},{"className":264},[],[266],{"type":59,"value":246},{"type":59,"value":268},": FAIL — \"No API key configured\"",{"type":53,"tag":257,"props":270,"children":271},{},[272],{"type":59,"value":273},"If set: PASS — the command already prints only the first 6 chars",{"type":53,"tag":80,"props":275,"children":277},{"id":276},"check-2-identity-resolution",[278],{"type":59,"value":279},"Check 2: Identity resolution",{"type":53,"tag":62,"props":281,"children":282},{},[283],{"type":59,"value":284},"Resolve identity using the plugin's own resolver scripts to match what hooks use:",{"type":53,"tag":87,"props":286,"children":288},{"className":89,"code":287,"language":91,"meta":92,"style":92},"SCRIPT_DIR=\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${CURSOR_PLUGIN_ROOT:-}}}\u002Fscripts\"\nsource \"$SCRIPT_DIR\u002F_identity.sh\" 2>\u002Fdev\u002Fnull\necho \"user_id=${MEM0_RESOLVED_USER_ID:-}\"\necho \"project_id=${MEM0_PROJECT_ID:-}\"\necho \"branch=${MEM0_BRANCH:-}\"\n",[289],{"type":53,"tag":95,"props":290,"children":291},{"__ignoreMap":92},[292,345,381,414,444],{"type":53,"tag":99,"props":293,"children":294},{"class":101,"line":102},[295,300,304,308,313,317,322,326,331,336,341],{"type":53,"tag":99,"props":296,"children":297},{"style":106},[298],{"type":59,"value":299},"SCRIPT_DIR",{"type":53,"tag":99,"props":301,"children":302},{"style":112},[303],{"type":59,"value":115},{"type":53,"tag":99,"props":305,"children":306},{"style":112},[307],{"type":59,"value":120},{"type":53,"tag":99,"props":309,"children":310},{"style":106},[311],{"type":59,"value":312},"CLAUDE_PLUGIN_ROOT",{"type":53,"tag":99,"props":314,"children":315},{"style":112},[316],{"type":59,"value":130},{"type":53,"tag":99,"props":318,"children":319},{"style":106},[320],{"type":59,"value":321},"CODEX_PLUGIN_ROOT",{"type":53,"tag":99,"props":323,"children":324},{"style":112},[325],{"type":59,"value":130},{"type":53,"tag":99,"props":327,"children":328},{"style":106},[329],{"type":59,"value":330},"CURSOR_PLUGIN_ROOT",{"type":53,"tag":99,"props":332,"children":333},{"style":112},[334],{"type":59,"value":335},":-}}}",{"type":53,"tag":99,"props":337,"children":338},{"style":221},[339],{"type":59,"value":340},"\u002Fscripts",{"type":53,"tag":99,"props":342,"children":343},{"style":112},[344],{"type":59,"value":251},{"type":53,"tag":99,"props":346,"children":347},{"class":101,"line":143},[348,353,357,362,367,371,376],{"type":53,"tag":99,"props":349,"children":350},{"style":182},[351],{"type":59,"value":352},"source",{"type":53,"tag":99,"props":354,"children":355},{"style":112},[356],{"type":59,"value":159},{"type":53,"tag":99,"props":358,"children":359},{"style":106},[360],{"type":59,"value":361},"$SCRIPT_DIR",{"type":53,"tag":99,"props":363,"children":364},{"style":221},[365],{"type":59,"value":366},"\u002F_identity.sh",{"type":53,"tag":99,"props":368,"children":369},{"style":112},[370],{"type":59,"value":169},{"type":53,"tag":99,"props":372,"children":373},{"style":112},[374],{"type":59,"value":375}," 2>",{"type":53,"tag":99,"props":377,"children":378},{"style":221},[379],{"type":59,"value":380},"\u002Fdev\u002Fnull\n",{"type":53,"tag":99,"props":382,"children":384},{"class":101,"line":383},3,[385,390,394,399,404,409],{"type":53,"tag":99,"props":386,"children":387},{"style":182},[388],{"type":59,"value":389},"echo",{"type":53,"tag":99,"props":391,"children":392},{"style":112},[393],{"type":59,"value":159},{"type":53,"tag":99,"props":395,"children":396},{"style":221},[397],{"type":59,"value":398},"user_id=",{"type":53,"tag":99,"props":400,"children":401},{"style":112},[402],{"type":59,"value":403},"${",{"type":53,"tag":99,"props":405,"children":406},{"style":106},[407],{"type":59,"value":408},"MEM0_RESOLVED_USER_ID",{"type":53,"tag":99,"props":410,"children":411},{"style":112},[412],{"type":59,"value":413},":-}\"\n",{"type":53,"tag":99,"props":415,"children":417},{"class":101,"line":416},4,[418,422,426,431,435,440],{"type":53,"tag":99,"props":419,"children":420},{"style":182},[421],{"type":59,"value":389},{"type":53,"tag":99,"props":423,"children":424},{"style":112},[425],{"type":59,"value":159},{"type":53,"tag":99,"props":427,"children":428},{"style":221},[429],{"type":59,"value":430},"project_id=",{"type":53,"tag":99,"props":432,"children":433},{"style":112},[434],{"type":59,"value":403},{"type":53,"tag":99,"props":436,"children":437},{"style":106},[438],{"type":59,"value":439},"MEM0_PROJECT_ID",{"type":53,"tag":99,"props":441,"children":442},{"style":112},[443],{"type":59,"value":413},{"type":53,"tag":99,"props":445,"children":447},{"class":101,"line":446},5,[448,452,456,461,465,470],{"type":53,"tag":99,"props":449,"children":450},{"style":182},[451],{"type":59,"value":389},{"type":53,"tag":99,"props":453,"children":454},{"style":112},[455],{"type":59,"value":159},{"type":53,"tag":99,"props":457,"children":458},{"style":221},[459],{"type":59,"value":460},"branch=",{"type":53,"tag":99,"props":462,"children":463},{"style":112},[464],{"type":59,"value":403},{"type":53,"tag":99,"props":466,"children":467},{"style":106},[468],{"type":59,"value":469},"MEM0_BRANCH",{"type":53,"tag":99,"props":471,"children":472},{"style":112},[473],{"type":59,"value":413},{"type":53,"tag":62,"props":475,"children":476},{},[477,478,483],{"type":59,"value":261},{"type":53,"tag":95,"props":479,"children":481},{"className":480},[],[482],{"type":59,"value":312},{"type":59,"value":484}," is not available, fall back to:",{"type":53,"tag":253,"props":486,"children":487},{},[488,513,544],{"type":53,"tag":257,"props":489,"children":490},{},[491,497,499,505,507],{"type":53,"tag":95,"props":492,"children":494},{"className":493},[],[495],{"type":59,"value":496},"user_id",{"type":59,"value":498},": from ",{"type":53,"tag":95,"props":500,"children":502},{"className":501},[],[503],{"type":59,"value":504},"MEM0_USER_ID",{"type":59,"value":506}," or ",{"type":53,"tag":95,"props":508,"children":510},{"className":509},[],[511],{"type":59,"value":512},"$USER",{"type":53,"tag":257,"props":514,"children":515},{},[516,522,523,528,530,536,538],{"type":53,"tag":95,"props":517,"children":519},{"className":518},[],[520],{"type":59,"value":521},"project_id",{"type":59,"value":498},{"type":53,"tag":95,"props":524,"children":526},{"className":525},[],[527],{"type":59,"value":439},{"type":59,"value":529}," or check ",{"type":53,"tag":95,"props":531,"children":533},{"className":532},[],[534],{"type":59,"value":535},"~\u002F.mem0\u002Fproject_map.json",{"type":59,"value":537}," for ",{"type":53,"tag":95,"props":539,"children":541},{"className":540},[],[542],{"type":59,"value":543},"$PWD",{"type":53,"tag":257,"props":545,"children":546},{},[547,553,554],{"type":53,"tag":95,"props":548,"children":550},{"className":549},[],[551],{"type":59,"value":552},"branch",{"type":59,"value":498},{"type":53,"tag":95,"props":555,"children":557},{"className":556},[],[558],{"type":59,"value":559},"git branch --show-current",{"type":53,"tag":62,"props":561,"children":562},{},[563],{"type":59,"value":564},"PASS if all three are non-empty. WARN if any falls back to defaults.",{"type":53,"tag":80,"props":566,"children":568},{"id":567},"check-3-mcp-server-connectivity",[569],{"type":59,"value":570},"Check 3: MCP server connectivity",{"type":53,"tag":62,"props":572,"children":573},{},[574,576,582],{"type":59,"value":575},"Call ",{"type":53,"tag":95,"props":577,"children":579},{"className":578},[],[580],{"type":59,"value":581},"search_memories",{"type":59,"value":583}," with:",{"type":53,"tag":253,"props":585,"children":586},{},[587,596,605,614,619],{"type":53,"tag":257,"props":588,"children":589},{},[590],{"type":53,"tag":95,"props":591,"children":593},{"className":592},[],[594],{"type":59,"value":595},"query=\"health check\"",{"type":53,"tag":257,"props":597,"children":598},{},[599],{"type":53,"tag":95,"props":600,"children":602},{"className":601},[],[603],{"type":59,"value":604},"filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}]}",{"type":53,"tag":257,"props":606,"children":607},{},[608],{"type":53,"tag":95,"props":609,"children":611},{"className":610},[],[612],{"type":59,"value":613},"top_k=1",{"type":53,"tag":257,"props":615,"children":616},{},[617],{"type":59,"value":618},"If returns successfully (even empty): PASS",{"type":53,"tag":257,"props":620,"children":621},{},[622],{"type":59,"value":623},"If errors: FAIL — show the error message",{"type":53,"tag":80,"props":625,"children":627},{"id":626},"check-4-memory-write-capability",[628],{"type":59,"value":629},"Check 4: Memory write capability",{"type":53,"tag":62,"props":631,"children":632},{},[633,634,640],{"type":59,"value":575},{"type":53,"tag":95,"props":635,"children":637},{"className":636},[],[638],{"type":59,"value":639},"add_memory",{"type":59,"value":583},{"type":53,"tag":253,"props":642,"children":643},{},[644,653,662,671,680],{"type":53,"tag":257,"props":645,"children":646},{},[647],{"type":53,"tag":95,"props":648,"children":650},{"className":649},[],[651],{"type":59,"value":652},"text=\"Health check probe — safe to delete.\"",{"type":53,"tag":257,"props":654,"children":655},{},[656],{"type":53,"tag":95,"props":657,"children":659},{"className":658},[],[660],{"type":59,"value":661},"user_id=\u003Cactive_user_id>",{"type":53,"tag":257,"props":663,"children":664},{},[665],{"type":53,"tag":95,"props":666,"children":668},{"className":667},[],[669],{"type":59,"value":670},"app_id=\u003Cactive_project_id>",{"type":53,"tag":257,"props":672,"children":673},{},[674],{"type":53,"tag":95,"props":675,"children":677},{"className":676},[],[678],{"type":59,"value":679},"metadata={\"type\": \"health_check\", \"probe\": true}",{"type":53,"tag":257,"props":681,"children":682},{},[683],{"type":53,"tag":95,"props":684,"children":686},{"className":685},[],[687],{"type":59,"value":688},"infer=False",{"type":53,"tag":62,"props":690,"children":691},{},[692,694,700,702,708],{"type":59,"value":693},"The response returns ",{"type":53,"tag":95,"props":695,"children":697},{"className":696},[],[698],{"type":59,"value":699},"event_id",{"type":59,"value":701}," (v3 writes are async). Call ",{"type":53,"tag":95,"props":703,"children":705},{"className":704},[],[706],{"type":59,"value":707},"get_event_status(event_id=\u003Cevent_id>)",{"type":59,"value":709}," to check processing.",{"type":53,"tag":253,"props":711,"children":712},{},[713,734,746],{"type":53,"tag":257,"props":714,"children":715},{},[716,718,724,726,732],{"type":59,"value":717},"If status is ",{"type":53,"tag":95,"props":719,"children":721},{"className":720},[],[722],{"type":59,"value":723},"SUCCEEDED",{"type":59,"value":725},": PASS — extract the memory ID from the event result, then call ",{"type":53,"tag":95,"props":727,"children":729},{"className":728},[],[730],{"type":59,"value":731},"delete_memory",{"type":59,"value":733}," with that ID to clean up.",{"type":53,"tag":257,"props":735,"children":736},{},[737,738,744],{"type":59,"value":717},{"type":53,"tag":95,"props":739,"children":741},{"className":740},[],[742],{"type":59,"value":743},"PENDING",{"type":59,"value":745}," after 5 seconds: PASS (write accepted, processing delayed)",{"type":53,"tag":257,"props":747,"children":748},{},[749],{"type":59,"value":750},"If errors: FAIL — show the error.",{"type":53,"tag":80,"props":752,"children":754},{"id":753},"check-5-session-stats-tracker",[755],{"type":59,"value":756},"Check 5: Session stats tracker",{"type":53,"tag":62,"props":758,"children":759},{},[760],{"type":59,"value":761},"Check if the session stats file exists and is readable:",{"type":53,"tag":87,"props":763,"children":765},{"className":89,"code":764,"language":91,"meta":92,"style":92},"STATS_FILE=\"\u002Ftmp\u002Fmem0_session_stats_${USER}.json\"\nif [ -f \"$STATS_FILE\" ] && python3 -c \"import json; json.load(open('$STATS_FILE'))\" 2>\u002Fdev\u002Fnull; then\n  echo \"OK\"\nelse\n  echo \"FAIL\"\nfi\n",[766],{"type":53,"tag":95,"props":767,"children":768},{"__ignoreMap":92},[769,812,904,925,933,953],{"type":53,"tag":99,"props":770,"children":771},{"class":101,"line":102},[772,777,781,785,790,794,799,803,808],{"type":53,"tag":99,"props":773,"children":774},{"style":106},[775],{"type":59,"value":776},"STATS_FILE",{"type":53,"tag":99,"props":778,"children":779},{"style":112},[780],{"type":59,"value":115},{"type":53,"tag":99,"props":782,"children":783},{"style":112},[784],{"type":59,"value":169},{"type":53,"tag":99,"props":786,"children":787},{"style":221},[788],{"type":59,"value":789},"\u002Ftmp\u002Fmem0_session_stats_",{"type":53,"tag":99,"props":791,"children":792},{"style":112},[793],{"type":59,"value":403},{"type":53,"tag":99,"props":795,"children":796},{"style":106},[797],{"type":59,"value":798},"USER",{"type":53,"tag":99,"props":800,"children":801},{"style":112},[802],{"type":59,"value":218},{"type":53,"tag":99,"props":804,"children":805},{"style":221},[806],{"type":59,"value":807},".json",{"type":53,"tag":99,"props":809,"children":810},{"style":112},[811],{"type":59,"value":251},{"type":53,"tag":99,"props":813,"children":814},{"class":101,"line":143},[815,821,826,831,835,840,844,848,852,858,863,867,872,876,881,885,889,894,899],{"type":53,"tag":99,"props":816,"children":818},{"style":817},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[819],{"type":59,"value":820},"if",{"type":53,"tag":99,"props":822,"children":823},{"style":112},[824],{"type":59,"value":825}," [",{"type":53,"tag":99,"props":827,"children":828},{"style":112},[829],{"type":59,"value":830}," -f",{"type":53,"tag":99,"props":832,"children":833},{"style":112},[834],{"type":59,"value":159},{"type":53,"tag":99,"props":836,"children":837},{"style":106},[838],{"type":59,"value":839},"$STATS_FILE",{"type":53,"tag":99,"props":841,"children":842},{"style":112},[843],{"type":59,"value":169},{"type":53,"tag":99,"props":845,"children":846},{"style":112},[847],{"type":59,"value":174},{"type":53,"tag":99,"props":849,"children":850},{"style":112},[851],{"type":59,"value":179},{"type":53,"tag":99,"props":853,"children":855},{"style":854},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[856],{"type":59,"value":857}," python3",{"type":53,"tag":99,"props":859,"children":860},{"style":221},[861],{"type":59,"value":862}," -c",{"type":53,"tag":99,"props":864,"children":865},{"style":112},[866],{"type":59,"value":159},{"type":53,"tag":99,"props":868,"children":869},{"style":221},[870],{"type":59,"value":871},"import json; json.load(open('",{"type":53,"tag":99,"props":873,"children":874},{"style":106},[875],{"type":59,"value":839},{"type":53,"tag":99,"props":877,"children":878},{"style":221},[879],{"type":59,"value":880},"'))",{"type":53,"tag":99,"props":882,"children":883},{"style":112},[884],{"type":59,"value":169},{"type":53,"tag":99,"props":886,"children":887},{"style":112},[888],{"type":59,"value":375},{"type":53,"tag":99,"props":890,"children":891},{"style":221},[892],{"type":59,"value":893},"\u002Fdev\u002Fnull",{"type":53,"tag":99,"props":895,"children":896},{"style":112},[897],{"type":59,"value":898},";",{"type":53,"tag":99,"props":900,"children":901},{"style":817},[902],{"type":59,"value":903}," then\n",{"type":53,"tag":99,"props":905,"children":906},{"class":101,"line":383},[907,912,916,921],{"type":53,"tag":99,"props":908,"children":909},{"style":182},[910],{"type":59,"value":911},"  echo",{"type":53,"tag":99,"props":913,"children":914},{"style":112},[915],{"type":59,"value":159},{"type":53,"tag":99,"props":917,"children":918},{"style":221},[919],{"type":59,"value":920},"OK",{"type":53,"tag":99,"props":922,"children":923},{"style":112},[924],{"type":59,"value":251},{"type":53,"tag":99,"props":926,"children":927},{"class":101,"line":416},[928],{"type":53,"tag":99,"props":929,"children":930},{"style":817},[931],{"type":59,"value":932},"else\n",{"type":53,"tag":99,"props":934,"children":935},{"class":101,"line":446},[936,940,944,949],{"type":53,"tag":99,"props":937,"children":938},{"style":182},[939],{"type":59,"value":911},{"type":53,"tag":99,"props":941,"children":942},{"style":112},[943],{"type":59,"value":159},{"type":53,"tag":99,"props":945,"children":946},{"style":221},[947],{"type":59,"value":948},"FAIL",{"type":53,"tag":99,"props":950,"children":951},{"style":112},[952],{"type":59,"value":251},{"type":53,"tag":99,"props":954,"children":956},{"class":101,"line":955},6,[957],{"type":53,"tag":99,"props":958,"children":959},{"style":817},[960],{"type":59,"value":961},"fi\n",{"type":53,"tag":62,"props":963,"children":964},{},[965],{"type":59,"value":966},"This file is created by the SessionStart hook and updated by PostToolUse hooks throughout the session. If it doesn't exist, the session hooks may not have fired yet — try sending a message first, then recheck.",{"type":53,"tag":80,"props":968,"children":970},{"id":969},"display",[971],{"type":59,"value":972},"Display",{"type":53,"tag":87,"props":974,"children":978},{"className":975,"code":977,"language":59},[976],"language-text","## mem0 health\n\nPASS  API Key          m0-dVe...\nPASS  Identity         user=kartik, project=mem0, branch=main\nPASS  MCP Connection   142ms\nPASS  Write\u002FRead       write + delete OK\nPASS  Session Tracker  stats file active\n\nAll checks passed.\n",[979],{"type":53,"tag":95,"props":980,"children":981},{"__ignoreMap":92},[982],{"type":59,"value":977},{"type":53,"tag":62,"props":984,"children":985},{},[986,988,994],{"type":59,"value":987},"If any check fails, add a ",{"type":53,"tag":95,"props":989,"children":991},{"className":990},[],[992],{"type":59,"value":993},"## Troubleshooting",{"type":59,"value":995}," section with specific fix steps for each failure.",{"type":53,"tag":68,"props":997,"children":999},{"id":998},"extended-mode-memory-quality-analysis",[1000],{"type":59,"value":1001},"Extended mode: Memory Quality Analysis",{"type":53,"tag":62,"props":1003,"children":1004},{},[1005,1007,1013,1015,1021,1023,1029],{"type":59,"value":1006},"When invoked with ",{"type":53,"tag":95,"props":1008,"children":1010},{"className":1009},[],[1011],{"type":59,"value":1012},"--deep",{"type":59,"value":1014}," (e.g., ",{"type":53,"tag":95,"props":1016,"children":1018},{"className":1017},[],[1019],{"type":59,"value":1020},"\u002Fmem0:health --deep",{"type":59,"value":1022},"), run the standard 5 checks above ",{"type":53,"tag":1024,"props":1025,"children":1026},"strong",{},[1027],{"type":59,"value":1028},"plus",{"type":59,"value":1030}," a memory quality scan.",{"type":53,"tag":80,"props":1032,"children":1034},{"id":1033},"quality-check-1-duplicates",[1035],{"type":59,"value":1036},"Quality Check 1: Duplicates",{"type":53,"tag":62,"props":1038,"children":1039},{},[1040,1041,1047,1049,1054,1056,1062,1064,1070],{"type":59,"value":575},{"type":53,"tag":95,"props":1042,"children":1044},{"className":1043},[],[1045],{"type":59,"value":1046},"get_memories",{"type":59,"value":1048}," with ",{"type":53,"tag":95,"props":1050,"children":1052},{"className":1051},[],[1053],{"type":59,"value":604},{"type":59,"value":1055},", ",{"type":53,"tag":95,"props":1057,"children":1059},{"className":1058},[],[1060],{"type":59,"value":1061},"page_size=200",{"type":59,"value":1063},". Compare all pairs within the same ",{"type":53,"tag":95,"props":1065,"children":1067},{"className":1066},[],[1068],{"type":59,"value":1069},"metadata.type",{"type":59,"value":1071}," group for high textual overlap (shared nouns\u002Fkeywords > 60%). Report:",{"type":53,"tag":87,"props":1073,"children":1076},{"className":1074,"code":1075,"language":59},[976],"Potential duplicates: \u003CN> pairs\n  [mem0:\u003Cid1>] ≈ [mem0:\u003Cid2>] — both about \"\u003Cshared topic>\"\n",[1077],{"type":53,"tag":95,"props":1078,"children":1079},{"__ignoreMap":92},[1080],{"type":59,"value":1075},{"type":53,"tag":80,"props":1082,"children":1084},{"id":1083},"quality-check-2-stale-memories",[1085],{"type":59,"value":1086},"Quality Check 2: Stale memories",{"type":53,"tag":62,"props":1088,"children":1089},{},[1090],{"type":59,"value":1091},"Flag memories where:",{"type":53,"tag":253,"props":1093,"children":1094},{},[1095,1120],{"type":53,"tag":257,"props":1096,"children":1097},{},[1098,1103,1105,1111,1112,1118],{"type":53,"tag":95,"props":1099,"children":1101},{"className":1100},[],[1102],{"type":59,"value":1069},{"type":59,"value":1104}," is ",{"type":53,"tag":95,"props":1106,"children":1108},{"className":1107},[],[1109],{"type":59,"value":1110},"session_state",{"type":59,"value":506},{"type":53,"tag":95,"props":1113,"children":1115},{"className":1114},[],[1116],{"type":59,"value":1117},"compact_summary",{"type":59,"value":1119}," AND older than 90 days",{"type":53,"tag":257,"props":1121,"children":1122},{},[1123,1129],{"type":53,"tag":95,"props":1124,"children":1126},{"className":1125},[],[1127],{"type":59,"value":1128},"metadata.confidence",{"type":59,"value":1130}," \u003C 0.3 AND older than 30 days",{"type":53,"tag":87,"props":1132,"children":1135},{"className":1133,"code":1134,"language":59},[976],"Stale candidates: \u003CN>\n  [mem0:\u003Cid>] — session_state, 142d old\n",[1136],{"type":53,"tag":95,"props":1137,"children":1138},{"__ignoreMap":92},[1139],{"type":59,"value":1134},{"type":53,"tag":80,"props":1141,"children":1143},{"id":1142},"quality-check-2b-low-confidence-memories",[1144],{"type":59,"value":1145},"Quality Check 2b: Low-confidence memories",{"type":53,"tag":62,"props":1147,"children":1148},{},[1149,1151,1156],{"type":59,"value":1150},"Flag memories where ",{"type":53,"tag":95,"props":1152,"children":1154},{"className":1153},[],[1155],{"type":59,"value":1128},{"type":59,"value":1157}," \u003C 0.5 (regardless of age). Report separately from stale:",{"type":53,"tag":87,"props":1159,"children":1162},{"className":1160,"code":1161,"language":59},[976],"Low-confidence memories: \u003CN>\n  [mem0:\u003Cid>] — confidence=0.3, \"\u003Ccontent preview>\"\n",[1163],{"type":53,"tag":95,"props":1164,"children":1165},{"__ignoreMap":92},[1166],{"type":59,"value":1161},{"type":53,"tag":80,"props":1168,"children":1170},{"id":1169},"quality-check-3-contradictions",[1171],{"type":59,"value":1172},"Quality Check 3: Contradictions",{"type":53,"tag":62,"props":1174,"children":1175},{},[1176,1178,1183],{"type":59,"value":1177},"Within each ",{"type":53,"tag":95,"props":1179,"children":1181},{"className":1180},[],[1182],{"type":59,"value":1069},{"type":59,"value":1184}," group, flag pairs that assert opposing facts about the same topic. Use semantic judgment — look for negation patterns, conflicting tool\u002Fframework choices, or reversed decisions.",{"type":53,"tag":87,"props":1186,"children":1189},{"className":1187,"code":1188,"language":59},[976],"Possible contradictions: \u003CN>\n  [mem0:\u003CidA>] vs [mem0:\u003CidB>] — conflicting on \"\u003Ctopic>\"\n",[1190],{"type":53,"tag":95,"props":1191,"children":1192},{"__ignoreMap":92},[1193],{"type":59,"value":1188},{"type":53,"tag":80,"props":1195,"children":1197},{"id":1196},"quality-check-4-orphan-memories",[1198],{"type":59,"value":1199},"Quality Check 4: Orphan memories",{"type":53,"tag":62,"props":1201,"children":1202},{},[1203,1205,1210,1212,1217],{"type":59,"value":1204},"Memories with no ",{"type":53,"tag":95,"props":1206,"children":1208},{"className":1207},[],[1209],{"type":59,"value":1069},{"type":59,"value":1211}," set, or with ",{"type":53,"tag":95,"props":1213,"children":1215},{"className":1214},[],[1216],{"type":59,"value":1069},{"type":59,"value":1218}," not in the 17 known coding categories. These were likely written without proper tagging.",{"type":53,"tag":87,"props":1220,"children":1223},{"className":1221,"code":1222,"language":59},[976],"Untagged\u002Forphan memories: \u003CN>\n",[1224],{"type":53,"tag":95,"props":1225,"children":1226},{"__ignoreMap":92},[1227],{"type":59,"value":1222},{"type":53,"tag":80,"props":1229,"children":1231},{"id":1230},"quality-summary",[1232],{"type":59,"value":1233},"Quality summary",{"type":53,"tag":87,"props":1235,"children":1238},{"className":1236,"code":1237,"language":59},[976],"## Memory Quality\n\nDuplicates: \u003CN> · Stale: \u003CN> · Contradictions: \u003CN> · Orphans: \u003CN>\n",[1239],{"type":53,"tag":95,"props":1240,"children":1241},{"__ignoreMap":92},[1242],{"type":59,"value":1237},{"type":53,"tag":62,"props":1244,"children":1245},{},[1246,1248,1254,1256],{"type":59,"value":1247},"If all counts are 0: ",{"type":53,"tag":95,"props":1249,"children":1251},{"className":1250},[],[1252],{"type":59,"value":1253},"Memory quality: clean.",{"type":59,"value":1255},"\nIf any non-zero: append ",{"type":53,"tag":95,"props":1257,"children":1259},{"className":1258},[],[1260],{"type":59,"value":1261},"Run \u002Fmem0:dream to fix.",{"type":53,"tag":62,"props":1263,"children":1264},{},[1265,1267,1272,1274,1280],{"type":59,"value":1266},"To fix issues found by ",{"type":53,"tag":95,"props":1268,"children":1270},{"className":1269},[],[1271],{"type":59,"value":1012},{"type":59,"value":1273},", run ",{"type":53,"tag":95,"props":1275,"children":1277},{"className":1276},[],[1278],{"type":59,"value":1279},"\u002Fmem0:dream",{"type":59,"value":1281}," for automated consolidation (merges, prunes, conflict resolution).",{"type":53,"tag":1283,"props":1284,"children":1285},"style",{},[1286],{"type":59,"value":1287},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1289,"total":1432},[1290,1303,1315,1329,1343,1349,1361,1370,1381,1395,1407,1417],{"slug":1291,"name":1291,"fn":1292,"description":1293,"org":1294,"tags":1295,"stars":23,"repoUrl":24,"updatedAt":1302},"context-loader","load project context from Mem0","Searches and injects relevant memories into context before starting work on a task. Use when beginning a new task, switching context, or when project history, past decisions, or coding conventions need to be loaded.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1296,1298,1301],{"name":1297,"slug":29,"type":16},"Agents",{"name":1299,"slug":1300,"type":16},"Context","context",{"name":18,"slug":19,"type":16},"2026-07-13T06:13:15.682218",{"slug":1304,"name":1304,"fn":1305,"description":1306,"org":1307,"tags":1308,"stars":23,"repoUrl":24,"updatedAt":1314},"dream","consolidate and prune stored memories","Consolidates stored memories by merging duplicates, resolving contradictions, and pruning stale entries. Use when memory count is high, search results feel noisy or repetitive, or periodic cleanup is needed to maintain memory quality.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1309,1310,1313],{"name":1297,"slug":29,"type":16},{"name":1311,"slug":1312,"type":16},"Data Cleaning","data-cleaning",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:54.000421",{"slug":1316,"name":1316,"fn":1317,"description":1318,"org":1319,"tags":1320,"stars":23,"repoUrl":24,"updatedAt":1328},"export","export project memories to Markdown files","Exports all project memories to a portable Markdown file for backup or migration. Use when backing up memories, migrating to another project, sharing memory state with teammates, or archiving before cleanup.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1321,1324,1325],{"name":1322,"slug":1323,"type":16},"Backup","backup",{"name":18,"slug":19,"type":16},{"name":1326,"slug":1327,"type":16},"Migration","migration","2026-07-13T06:13:05.091831",{"slug":1330,"name":1330,"fn":1331,"description":1332,"org":1333,"tags":1334,"stars":23,"repoUrl":24,"updatedAt":1342},"forget","delete outdated or incorrect memories","Deletes memories by search query or memory ID with confirmation before removal. Use when removing outdated decisions, incorrect memories, sensitive data, or cleaning up after experiments. Also handles undo of recent additions.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1335,1338,1339],{"name":1336,"slug":1337,"type":16},"Maintenance","maintenance",{"name":18,"slug":19,"type":16},{"name":1340,"slug":1341,"type":16},"Privacy","privacy","2026-07-13T06:13:00.862899",{"slug":4,"name":4,"fn":5,"description":6,"org":1344,"tags":1345,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1346,1347,1348],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":1350,"name":1350,"fn":1351,"description":1352,"org":1353,"tags":1354,"stars":23,"repoUrl":24,"updatedAt":1360},"import","import project memories from Markdown files","Imports memories from an exported Markdown file or MEMORY.md into the current project. Use when migrating from another project, restoring from backup, importing Claude Code native MEMORY.md content, or setting up a new project with existing knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1355,1358,1359],{"name":1356,"slug":1357,"type":16},"Markdown","markdown",{"name":18,"slug":19,"type":16},{"name":1326,"slug":1327,"type":16},"2026-07-13T06:12:59.389494",{"slug":1362,"name":1362,"fn":1363,"description":1364,"org":1365,"tags":1366,"stars":23,"repoUrl":24,"updatedAt":1369},"list-projects","list projects with stored memories","Lists all projects with stored memories for the current user, showing memory counts and last activity dates. Use when checking which projects have memories, comparing memory distribution across repos, or finding a specific project scope.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1367,1368],{"name":1297,"slug":29,"type":16},{"name":18,"slug":19,"type":16},"2026-07-13T06:13:27.80043",{"slug":8,"name":8,"fn":1371,"description":1372,"org":1373,"tags":1374,"stars":23,"repoUrl":24,"updatedAt":1380},"add persistent memory to AI applications","Mem0 Platform SDK for adding persistent memory to AI applications. TRIGGER when: user mentions \"mem0\", \"MemoryClient\", \"memory layer\", \"remember user preferences\", \"persistent context\", \"personalization\", or needs to add long-term memory to chatbots, agents, or AI apps. Covers Python SDK (mem0ai), TypeScript SDK (mem0ai), and framework integrations (LangChain, CrewAI, OpenAI Agents SDK, Pipecat, LlamaIndex, AutoGen, LangGraph). Also covers the open-source self-hosted Memory class. This is the DEFAULT mem0 skill for ambiguous queries. DO NOT TRIGGER when: user asks about CLI commands, terminal usage, or shell scripts (use mem0-cli), or Vercel AI SDK \u002F @mem0\u002Fvercel-ai-provider \u002F createMem0 (use mem0-vercel-ai-sdk).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1375,1376,1379],{"name":1297,"slug":29,"type":16},{"name":1377,"slug":1378,"type":16},"AI Infrastructure","ai-infrastructure",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:42.552904",{"slug":1382,"name":1382,"fn":1383,"description":1384,"org":1385,"tags":1386,"stars":23,"repoUrl":24,"updatedAt":1394},"mem0-cli","manage Mem0 memory via command line","Mem0 CLI -- the command-line interface for mem0 memory operations. TRIGGER when: user mentions \"mem0 cli\", \"mem0 command line\", \"@mem0\u002Fcli\", \"mem0-cli\", \"pip install mem0-cli\", \"npm install -g @mem0\u002Fcli\", or is running mem0 commands in a terminal\u002Fshell (mem0 add, mem0 search, mem0 list, mem0 get, mem0 init, mem0 config, mem0 import). Also triggers when query includes CLI flags like --user-id, --output, --json, --agent, or describes bash\u002Fzsh\u002Fterminal\u002Fshell usage. DO NOT TRIGGER when: user asks about programmatic SDK integration in Python\u002FTS code (use mem0 skill), or Vercel AI SDK provider (use mem0-vercel-ai-sdk skill).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1387,1390,1393],{"name":1388,"slug":1389,"type":16},"Automation","automation",{"name":1391,"slug":1392,"type":16},"CLI","cli",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:48.46494",{"slug":1396,"name":1396,"fn":1397,"description":1398,"org":1399,"tags":1400,"stars":23,"repoUrl":24,"updatedAt":1406},"mem0-integrate","integrate Mem0 into repositories","Integrate Mem0 into an existing repository using a goal-driven, TDD pipeline. Detects the repo's language automatically and asks the user to pick between Mem0 Platform (managed) and Mem0 Open Source (self-hosted). Writes failing tests before any implementation. Produces a local feature branch plus `.mem0-integration\u002F` artifacts consumed by the paired verification skill. TRIGGER when: user says \"integrate mem0\", \"add mem0 to this repo\", \"wire mem0 into \u003Crepo>\", or asks how to add memory to an existing project. DO NOT TRIGGER when: the user wants general SDK usage (use skill:mem0), CLI usage (use skill:mem0-cli), or Vercel AI SDK (use skill:mem0-vercel-ai-sdk). After success, invoke skill:mem0-test-integration to verify in the same workspace (loose coupling).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1401,1402,1405],{"name":1297,"slug":29,"type":16},{"name":1403,"slug":1404,"type":16},"API Development","api-development",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:46.60755",{"slug":1408,"name":1408,"fn":1409,"description":1410,"org":1411,"tags":1412,"stars":23,"repoUrl":24,"updatedAt":1416},"mem0-oss-to-platform","migrate Mem0 projects to platform","Plan and then execute a migration of a project from the mem0 open-source \u002F self-hosted SDK (the local `Memory` class) to the mem0 Platform \u002F hosted \u002F managed SDK (the `MemoryClient` class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS\u002Fself-hosted to the hosted API — e.g. \"migrate my mem0 setup to the platform\", \"switch from self-hosted mem0 to MemoryClient\", \"use my mem0 API key instead of a local Qdrant\", \"move mem0 to the cloud\u002Fhosted\u002Fmanaged service\", or \"replace my local mem0 vector store + embedder config with the platform\". Applies to Python (`from mem0 import Memory` → `from mem0 import MemoryClient`) and TypeScript\u002FJavaScript (`import { Memory } from \"mem0ai\u002Foss\"` → `import MemoryClient from \"mem0ai\"`). Trigger even when the user doesn't say the word \"migrate\" but clearly wants their existing mem0 integration to run against the hosted platform. It first produces a reviewable migration plan, then executes it after the developer approves. Strictly scoped to the mem0 integration — it does not refactor, restructure, or \"improve\" any unrelated code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1413,1414,1415],{"name":1297,"slug":29,"type":16},{"name":18,"slug":19,"type":16},{"name":1326,"slug":1327,"type":16},"2026-07-13T06:12:43.848266",{"slug":1418,"name":1418,"fn":1419,"description":1420,"org":1421,"tags":1422,"stars":23,"repoUrl":24,"updatedAt":1431},"mem0-test-integration","verify Mem0 integration tests","Verify a Mem0 integration produced by \u002Fmem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run \u002Fmem0-integrate and says \"verify\", \"test the integration\", \"run \u002Fmem0-test-integration\", or when a .mem0-integration\u002F directory exists and tests have not been run yet on the current branch. DO NOT TRIGGER when: the user wants to run general project tests (defer to the repo's native test command), or when no prior \u002Fmem0-integrate run exists in the current branch (ask them to run \u002Fmem0-integrate first). This skill ONLY catches compile and runtime bugs by design. Logical integration errors — wrong data stored, wrong time retrieved, wrong user scoping — are on the human reviewer.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1423,1424,1425,1428],{"name":1297,"slug":29,"type":16},{"name":18,"slug":19,"type":16},{"name":1426,"slug":1427,"type":16},"QA","qa",{"name":1429,"slug":1430,"type":16},"Testing","testing","2026-07-13T06:12:50.669701",23,{"items":1434,"total":1432},[1435,1441,1447,1453,1459,1465,1471],{"slug":1291,"name":1291,"fn":1292,"description":1293,"org":1436,"tags":1437,"stars":23,"repoUrl":24,"updatedAt":1302},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1438,1439,1440],{"name":1297,"slug":29,"type":16},{"name":1299,"slug":1300,"type":16},{"name":18,"slug":19,"type":16},{"slug":1304,"name":1304,"fn":1305,"description":1306,"org":1442,"tags":1443,"stars":23,"repoUrl":24,"updatedAt":1314},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1444,1445,1446],{"name":1297,"slug":29,"type":16},{"name":1311,"slug":1312,"type":16},{"name":18,"slug":19,"type":16},{"slug":1316,"name":1316,"fn":1317,"description":1318,"org":1448,"tags":1449,"stars":23,"repoUrl":24,"updatedAt":1328},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1450,1451,1452],{"name":1322,"slug":1323,"type":16},{"name":18,"slug":19,"type":16},{"name":1326,"slug":1327,"type":16},{"slug":1330,"name":1330,"fn":1331,"description":1332,"org":1454,"tags":1455,"stars":23,"repoUrl":24,"updatedAt":1342},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1456,1457,1458],{"name":1336,"slug":1337,"type":16},{"name":18,"slug":19,"type":16},{"name":1340,"slug":1341,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":1460,"tags":1461,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1462,1463,1464],{"name":21,"slug":22,"type":16},{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":1350,"name":1350,"fn":1351,"description":1352,"org":1466,"tags":1467,"stars":23,"repoUrl":24,"updatedAt":1360},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1468,1469,1470],{"name":1356,"slug":1357,"type":16},{"name":18,"slug":19,"type":16},{"name":1326,"slug":1327,"type":16},{"slug":1362,"name":1362,"fn":1363,"description":1364,"org":1472,"tags":1473,"stars":23,"repoUrl":24,"updatedAt":1369},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1474,1475],{"name":1297,"slug":29,"type":16},{"name":18,"slug":19,"type":16}]