[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-mem0-dream":3,"mdc-tk36u9-key":46,"related-repo-mem0-dream":1174,"related-org-mem0-dream":1258},{"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":41,"sourceUrl":44,"mdContent":45},"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},"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},"Memory","memory","tag",{"name":18,"slug":19,"type":16},"Agents","agents",{"name":21,"slug":22,"type":16},"Data Cleaning","data-cleaning",60691,"https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0","2026-07-13T06:12:54.000421",null,7066,[19,29,30,31,32,33,34,35,36,15,37,38,39,40],"ai","ai-agents","application","chatbots","chatgpt","genai","llm","long-term-memory","memory-management","python","rag","state-management",{"repoUrl":24,"stars":23,"forks":27,"topics":42,"description":43},[19,29,30,31,32,33,34,35,36,15,37,38,39,40],"Universal memory layer for AI Agents","https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\u002Ftree\u002FHEAD\u002Fintegrations\u002Fmem0-plugin\u002Fskills\u002Fdream","---\nname: dream\ndescription: 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.\n---\n\n# Mem0 Dream — Memory Consolidation\n\nThis skill performs a memory consolidation pass: it fetches all project memories,\nidentifies near-duplicates, flags contradictions, and prunes stale entries based on\nconfigured retention policies. All proposed changes are shown as a diff for user\napproval before anything is modified.\n\n**IMPORTANT: Execute steps strictly in order (1 → 2 → 3 → 4 → 5 → 6). Each step depends on the previous one. Do NOT run steps in parallel or skip ahead.**\n\n## Step 1: Load Retention Policies\n\nDetermine the active retention policy by running the parser script. Use the\nappropriate `PLUGIN_ROOT` variable for the current platform (`${CLAUDE_PLUGIN_ROOT}`,\n`${CODEX_PLUGIN_ROOT}`, or `${CURSOR_PLUGIN_ROOT}`):\n\n```bash\npython3 \"\u003CPLUGIN_ROOT>\u002Fscripts\u002Fparse_mem0_config.py\" \"\u003Ccwd>\"\n```\n\nParse the JSON output (a dict of `category → days | null`). If the script fails\nor returns `{}`, fall back to these built-in defaults:\n\n| `metadata.type` | Default retention |\n|---|---|\n| `session_state` | 90 days |\n| `compact_summary` | 90 days |\n| all others | no pruning |\n\nStore the resolved policies for use in Step 3.\n\n---\n\n## Step 2: Fetch ALL Project Memories\n\nCall `get_memories` to retrieve every memory for the active project:\n\n```python\nget_memories(\n    filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}]},\n    page_size=200,\n)\n```\n\nIf the response indicates more pages exist, paginate until all memories are fetched.\nCollect the full list before proceeding. If zero memories are found, print:\n\n```\nNo memories found for project \u003Cproject_id>. Nothing to consolidate.\n```\n\n…and stop.\n\n---\n\n## Step 3: Analyze — Find Issues\n\nWork entirely in-memory; do not modify anything yet.\n\nGroup memories by `metadata.type` (use `\"unknown\"` when the field is absent).\nFor each group, identify the following:\n\n### 3a. Near-duplicate pairs (merge candidates)\n\nTwo memories are near-duplicates when they express the same fact or decision but\nphrased differently (e.g., \"Use PostgreSQL for auth\" and \"Auth DB is PostgreSQL\").\n\nHeuristics — two memories are near-duplicates if **all** of these hold:\n- Similarity threshold: estimated cosine similarity > 0.9 (use noun\u002Fkeyword overlap as proxy — if >60% of significant nouns overlap, treat as >0.9 similarity).\n- Same `metadata.type`.\n- Neither memory is pinned (`metadata.pinned != true`).\n\nFor each qualifying pair, draft a merged version that is more complete and specific\nthan either original.\n\n### 3b. Contradictions\n\nTwo memories contradict when they assert opposing facts about the same topic\n(e.g., \"Deploy to ECS\" vs. \"Deploy to Vercel\").\n\nIdentify the likely winner: the more recent memory with higher confidence wins.\nStore both IDs and their content for user review.\n\n### 3c. Prune candidates\n\nA memory is a prune candidate when **any** of the following is true:\n\n1. Its `metadata.type` has a retention policy and the memory is older than the\n   configured number of days (compare `created_at` to today).\n2. Its confidence score is below 0.3 AND it contains no information unique to\n   this project (no file paths, identifiers, or domain-specific nouns).\n\n**Always skip memories where `metadata.pinned == true`**, regardless of age or\nconfidence.\n\n---\n\n## Step 4: Print Diff Report\n\nPrint a structured diff to the terminal before making any changes. Use exactly\nthis format:\n\n```\n## dream — consolidation report\n\nMerges (\u003CN>):\n  [mem0:\u003Cid1>] + [mem0:\u003Cid2>] → \"\u003Cmerged content, 100 chars>\"\n\nConflicts (\u003CN>):\n  [mem0:\u003CidA>] vs [mem0:\u003CidB>] — \"\u003Ctopic>\" [A\u002FB\u002Fskip]\n\nPrune (\u003CN>):\n  [mem0:\u003Cid>] — \u003Ctype>, \u003Cage>d old\n\nProposed: \u003CN> merges, \u003CN> prunes, \u003CN> conflicts. Apply? [Y\u002Fn]\n```\n\nIf there are zero items in any category, omit that section entirely.\n\nIf there are zero total proposals (no merges, no prunes, no conflicts), print:\n\n```\nDream complete. No duplicate, contradictory, or stale memories found.\n```\n\n…and stop.\n\n---\n\n## Step 5: Wait for User Input and Apply\n\n### 5a. Contradictions\n\nFor each `CONFLICT` pair in the report, wait for the user to type `A`, `B`, or\n`skip` (case-insensitive). If they enter nothing (empty), treat as `skip`.\n\nRecord the winner for each pair before proceeding to the final apply confirmation.\n\n### 5b. Final confirmation\n\nAfter all conflict resolutions are collected, prompt:\n\n```\nApply? [Y\u002Fn]\n```\n\nIf the user types `n` or `no` (case-insensitive), print `Cancelled. No changes made.`\nand stop.\n\nIf the user confirms (`Y`, `yes`, or empty \u002F Enter), apply all changes in this order:\n\n#### Merges\n\nFor each approved merge pair:\n1. `delete_memory(\u003Cid1>)`\n2. `delete_memory(\u003Cid2>)`\n3. `add_memory` with:\n   - `text=\"\u003Cmerged content>\"`\n   - `user_id=\u003Cactive_user_id>`\n   - `app_id=\u003Cactive_project_id>` (top-level, not in metadata)\n   - `metadata={\"type\": \"\u003Coriginal type>\", \"branch\": \"\u003Cactive_branch>\", \"confidence\": \u003Chigher of the two original scores>, \"source\": \"mem0-dream\"}`\n   - `infer=False`\n\n#### Contradictions (resolved)\n\nFor each resolved conflict where the user chose A or B:\n- Delete the loser (the non-chosen memory): `delete_memory(memory_id=\u003Closer_id>)`\n\nContradictions where the user chose `skip` are left untouched.\n\n#### Prunes\n\nFor each prune candidate:\n- `delete_memory(\u003Cmemory_id>)`\n\n---\n\n## Step 6: Print Summary\n\nAfter all changes are applied, print:\n\n```\nDream complete — merged: \u003CN>, pruned: \u003CN>, conflicts resolved: \u003CN>, skipped: \u003CN>\n```\n\n---\n\n## Auto mode\n\nWhen invoked with `--auto` (e.g., `\u002Fmem0:dream --auto`), run non-interactively:\n\n- **Merges**: applied automatically (no contradiction, both are compatible).\n- **Prunes**: applied automatically (age\u002Fconfidence-based, no ambiguity).\n- **Contradictions**: skipped — they require human judgment.\n\n### Concurrency guard\n\nBefore doing any work, check for a lock file at `\u002Ftmp\u002Fmem0_dream_auto.lock`:\n- If the lock file exists and is less than 10 minutes old, print `[mem0-dream --auto] Another run in progress — skipping.` and stop.\n- Otherwise, create the lock file (write the current timestamp). Delete it when done (in all exit paths).\n\n### Execution\n\nIn auto mode:\n1. Load policies and fetch memories (Steps 1–3) as normal.\n2. Apply merges and prunes silently without printing the diff or prompting.\n3. Print a compact summary:\n   ```\n   [mem0-dream --auto] project=\u003Cid>  merged=\u003CN>  pruned=\u003CN>  conflicts_skipped=\u003CN>\n   ```\n4. If contradictions were detected but skipped, check if a `mem0-dream-auto` reminder already exists before storing one:\n   - Search for existing reminders: `search_memories(query=\"mem0-dream contradictions manual review\", filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}, {\"metadata\": {\"source\": \"mem0-dream-auto\"}}]}, top_k=1)`\n   - If a result exists with similarity > 0.9, skip storing the reminder (one already exists).\n   - If no match, store the reminder:\n   ```python\n   add_memory(\n       text=\"mem0-dream detected \u003CN> contradiction(s) requiring manual review. Run \u002Fmem0:dream to resolve them interactively.\",\n       user_id=\"\u003Cactive_user_id>\",\n       app_id=\"\u003Cactive_project_id>\",\n       metadata={\"type\": \"task_learning\", \"source\": \"mem0-dream-auto\", \"branch\": \"\u003Cactive_branch>\"},\n       infer=False,\n   )\n   ```\n\n## See also\n\n- `\u002Fmem0:forget` — targeted deletion of specific memories (search + confirm + delete)\n- `\u002Fmem0:health --deep` — quick quality scan without applying changes\n",{"data":47,"body":48},{"name":4,"description":6},{"type":49,"children":50},"root",[51,60,66,75,82,120,174,195,273,278,282,288,301,344,349,359,364,367,373,378,398,405,410,422,457,462,468,473,478,484,496,525,541,544,550,555,564,569,574,583,587,590,596,602,645,650,656,661,670,699,719,726,731,813,819,824,838,850,856,861,873,876,882,887,896,899,905,926,957,963,976,997,1003,1008,1137,1143,1168],{"type":52,"tag":53,"props":54,"children":56},"element","h1",{"id":55},"mem0-dream-memory-consolidation",[57],{"type":58,"value":59},"text","Mem0 Dream — Memory Consolidation",{"type":52,"tag":61,"props":62,"children":63},"p",{},[64],{"type":58,"value":65},"This skill performs a memory consolidation pass: it fetches all project memories,\nidentifies near-duplicates, flags contradictions, and prunes stale entries based on\nconfigured retention policies. All proposed changes are shown as a diff for user\napproval before anything is modified.",{"type":52,"tag":61,"props":67,"children":68},{},[69],{"type":52,"tag":70,"props":71,"children":72},"strong",{},[73],{"type":58,"value":74},"IMPORTANT: Execute steps strictly in order (1 → 2 → 3 → 4 → 5 → 6). Each step depends on the previous one. Do NOT run steps in parallel or skip ahead.",{"type":52,"tag":76,"props":77,"children":79},"h2",{"id":78},"step-1-load-retention-policies",[80],{"type":58,"value":81},"Step 1: Load Retention Policies",{"type":52,"tag":61,"props":83,"children":84},{},[85,87,94,96,102,104,110,112,118],{"type":58,"value":86},"Determine the active retention policy by running the parser script. Use the\nappropriate ",{"type":52,"tag":88,"props":89,"children":91},"code",{"className":90},[],[92],{"type":58,"value":93},"PLUGIN_ROOT",{"type":58,"value":95}," variable for the current platform (",{"type":52,"tag":88,"props":97,"children":99},{"className":98},[],[100],{"type":58,"value":101},"${CLAUDE_PLUGIN_ROOT}",{"type":58,"value":103},",\n",{"type":52,"tag":88,"props":105,"children":107},{"className":106},[],[108],{"type":58,"value":109},"${CODEX_PLUGIN_ROOT}",{"type":58,"value":111},", or ",{"type":52,"tag":88,"props":113,"children":115},{"className":114},[],[116],{"type":58,"value":117},"${CURSOR_PLUGIN_ROOT}",{"type":58,"value":119},"):",{"type":52,"tag":121,"props":122,"children":127},"pre",{"className":123,"code":124,"language":125,"meta":126,"style":126},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","python3 \"\u003CPLUGIN_ROOT>\u002Fscripts\u002Fparse_mem0_config.py\" \"\u003Ccwd>\"\n","bash","",[128],{"type":52,"tag":88,"props":129,"children":130},{"__ignoreMap":126},[131],{"type":52,"tag":132,"props":133,"children":136},"span",{"class":134,"line":135},"line",1,[137,143,149,155,160,164,169],{"type":52,"tag":132,"props":138,"children":140},{"style":139},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[141],{"type":58,"value":142},"python3",{"type":52,"tag":132,"props":144,"children":146},{"style":145},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[147],{"type":58,"value":148}," \"",{"type":52,"tag":132,"props":150,"children":152},{"style":151},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[153],{"type":58,"value":154},"\u003CPLUGIN_ROOT>\u002Fscripts\u002Fparse_mem0_config.py",{"type":52,"tag":132,"props":156,"children":157},{"style":145},[158],{"type":58,"value":159},"\"",{"type":52,"tag":132,"props":161,"children":162},{"style":145},[163],{"type":58,"value":148},{"type":52,"tag":132,"props":165,"children":166},{"style":151},[167],{"type":58,"value":168},"\u003Ccwd>",{"type":52,"tag":132,"props":170,"children":171},{"style":145},[172],{"type":58,"value":173},"\"\n",{"type":52,"tag":61,"props":175,"children":176},{},[177,179,185,187,193],{"type":58,"value":178},"Parse the JSON output (a dict of ",{"type":52,"tag":88,"props":180,"children":182},{"className":181},[],[183],{"type":58,"value":184},"category → days | null",{"type":58,"value":186},"). If the script fails\nor returns ",{"type":52,"tag":88,"props":188,"children":190},{"className":189},[],[191],{"type":58,"value":192},"{}",{"type":58,"value":194},", fall back to these built-in defaults:",{"type":52,"tag":196,"props":197,"children":198},"table",{},[199,222],{"type":52,"tag":200,"props":201,"children":202},"thead",{},[203],{"type":52,"tag":204,"props":205,"children":206},"tr",{},[207,217],{"type":52,"tag":208,"props":209,"children":210},"th",{},[211],{"type":52,"tag":88,"props":212,"children":214},{"className":213},[],[215],{"type":58,"value":216},"metadata.type",{"type":52,"tag":208,"props":218,"children":219},{},[220],{"type":58,"value":221},"Default retention",{"type":52,"tag":223,"props":224,"children":225},"tbody",{},[226,244,260],{"type":52,"tag":204,"props":227,"children":228},{},[229,239],{"type":52,"tag":230,"props":231,"children":232},"td",{},[233],{"type":52,"tag":88,"props":234,"children":236},{"className":235},[],[237],{"type":58,"value":238},"session_state",{"type":52,"tag":230,"props":240,"children":241},{},[242],{"type":58,"value":243},"90 days",{"type":52,"tag":204,"props":245,"children":246},{},[247,256],{"type":52,"tag":230,"props":248,"children":249},{},[250],{"type":52,"tag":88,"props":251,"children":253},{"className":252},[],[254],{"type":58,"value":255},"compact_summary",{"type":52,"tag":230,"props":257,"children":258},{},[259],{"type":58,"value":243},{"type":52,"tag":204,"props":261,"children":262},{},[263,268],{"type":52,"tag":230,"props":264,"children":265},{},[266],{"type":58,"value":267},"all others",{"type":52,"tag":230,"props":269,"children":270},{},[271],{"type":58,"value":272},"no pruning",{"type":52,"tag":61,"props":274,"children":275},{},[276],{"type":58,"value":277},"Store the resolved policies for use in Step 3.",{"type":52,"tag":279,"props":280,"children":281},"hr",{},[],{"type":52,"tag":76,"props":283,"children":285},{"id":284},"step-2-fetch-all-project-memories",[286],{"type":58,"value":287},"Step 2: Fetch ALL Project Memories",{"type":52,"tag":61,"props":289,"children":290},{},[291,293,299],{"type":58,"value":292},"Call ",{"type":52,"tag":88,"props":294,"children":296},{"className":295},[],[297],{"type":58,"value":298},"get_memories",{"type":58,"value":300}," to retrieve every memory for the active project:",{"type":52,"tag":121,"props":302,"children":305},{"className":303,"code":304,"language":38,"meta":126,"style":126},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","get_memories(\n    filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}]},\n    page_size=200,\n)\n",[306],{"type":52,"tag":88,"props":307,"children":308},{"__ignoreMap":126},[309,317,326,335],{"type":52,"tag":132,"props":310,"children":311},{"class":134,"line":135},[312],{"type":52,"tag":132,"props":313,"children":314},{},[315],{"type":58,"value":316},"get_memories(\n",{"type":52,"tag":132,"props":318,"children":320},{"class":134,"line":319},2,[321],{"type":52,"tag":132,"props":322,"children":323},{},[324],{"type":58,"value":325},"    filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}]},\n",{"type":52,"tag":132,"props":327,"children":329},{"class":134,"line":328},3,[330],{"type":52,"tag":132,"props":331,"children":332},{},[333],{"type":58,"value":334},"    page_size=200,\n",{"type":52,"tag":132,"props":336,"children":338},{"class":134,"line":337},4,[339],{"type":52,"tag":132,"props":340,"children":341},{},[342],{"type":58,"value":343},")\n",{"type":52,"tag":61,"props":345,"children":346},{},[347],{"type":58,"value":348},"If the response indicates more pages exist, paginate until all memories are fetched.\nCollect the full list before proceeding. If zero memories are found, print:",{"type":52,"tag":121,"props":350,"children":354},{"className":351,"code":353,"language":58},[352],"language-text","No memories found for project \u003Cproject_id>. Nothing to consolidate.\n",[355],{"type":52,"tag":88,"props":356,"children":357},{"__ignoreMap":126},[358],{"type":58,"value":353},{"type":52,"tag":61,"props":360,"children":361},{},[362],{"type":58,"value":363},"…and stop.",{"type":52,"tag":279,"props":365,"children":366},{},[],{"type":52,"tag":76,"props":368,"children":370},{"id":369},"step-3-analyze-find-issues",[371],{"type":58,"value":372},"Step 3: Analyze — Find Issues",{"type":52,"tag":61,"props":374,"children":375},{},[376],{"type":58,"value":377},"Work entirely in-memory; do not modify anything yet.",{"type":52,"tag":61,"props":379,"children":380},{},[381,383,388,390,396],{"type":58,"value":382},"Group memories by ",{"type":52,"tag":88,"props":384,"children":386},{"className":385},[],[387],{"type":58,"value":216},{"type":58,"value":389}," (use ",{"type":52,"tag":88,"props":391,"children":393},{"className":392},[],[394],{"type":58,"value":395},"\"unknown\"",{"type":58,"value":397}," when the field is absent).\nFor each group, identify the following:",{"type":52,"tag":399,"props":400,"children":402},"h3",{"id":401},"_3a-near-duplicate-pairs-merge-candidates",[403],{"type":58,"value":404},"3a. Near-duplicate pairs (merge candidates)",{"type":52,"tag":61,"props":406,"children":407},{},[408],{"type":58,"value":409},"Two memories are near-duplicates when they express the same fact or decision but\nphrased differently (e.g., \"Use PostgreSQL for auth\" and \"Auth DB is PostgreSQL\").",{"type":52,"tag":61,"props":411,"children":412},{},[413,415,420],{"type":58,"value":414},"Heuristics — two memories are near-duplicates if ",{"type":52,"tag":70,"props":416,"children":417},{},[418],{"type":58,"value":419},"all",{"type":58,"value":421}," of these hold:",{"type":52,"tag":423,"props":424,"children":425},"ul",{},[426,432,444],{"type":52,"tag":427,"props":428,"children":429},"li",{},[430],{"type":58,"value":431},"Similarity threshold: estimated cosine similarity > 0.9 (use noun\u002Fkeyword overlap as proxy — if >60% of significant nouns overlap, treat as >0.9 similarity).",{"type":52,"tag":427,"props":433,"children":434},{},[435,437,442],{"type":58,"value":436},"Same ",{"type":52,"tag":88,"props":438,"children":440},{"className":439},[],[441],{"type":58,"value":216},{"type":58,"value":443},".",{"type":52,"tag":427,"props":445,"children":446},{},[447,449,455],{"type":58,"value":448},"Neither memory is pinned (",{"type":52,"tag":88,"props":450,"children":452},{"className":451},[],[453],{"type":58,"value":454},"metadata.pinned != true",{"type":58,"value":456},").",{"type":52,"tag":61,"props":458,"children":459},{},[460],{"type":58,"value":461},"For each qualifying pair, draft a merged version that is more complete and specific\nthan either original.",{"type":52,"tag":399,"props":463,"children":465},{"id":464},"_3b-contradictions",[466],{"type":58,"value":467},"3b. Contradictions",{"type":52,"tag":61,"props":469,"children":470},{},[471],{"type":58,"value":472},"Two memories contradict when they assert opposing facts about the same topic\n(e.g., \"Deploy to ECS\" vs. \"Deploy to Vercel\").",{"type":52,"tag":61,"props":474,"children":475},{},[476],{"type":58,"value":477},"Identify the likely winner: the more recent memory with higher confidence wins.\nStore both IDs and their content for user review.",{"type":52,"tag":399,"props":479,"children":481},{"id":480},"_3c-prune-candidates",[482],{"type":58,"value":483},"3c. Prune candidates",{"type":52,"tag":61,"props":485,"children":486},{},[487,489,494],{"type":58,"value":488},"A memory is a prune candidate when ",{"type":52,"tag":70,"props":490,"children":491},{},[492],{"type":58,"value":493},"any",{"type":58,"value":495}," of the following is true:",{"type":52,"tag":497,"props":498,"children":499},"ol",{},[500,520],{"type":52,"tag":427,"props":501,"children":502},{},[503,505,510,512,518],{"type":58,"value":504},"Its ",{"type":52,"tag":88,"props":506,"children":508},{"className":507},[],[509],{"type":58,"value":216},{"type":58,"value":511}," has a retention policy and the memory is older than the\nconfigured number of days (compare ",{"type":52,"tag":88,"props":513,"children":515},{"className":514},[],[516],{"type":58,"value":517},"created_at",{"type":58,"value":519}," to today).",{"type":52,"tag":427,"props":521,"children":522},{},[523],{"type":58,"value":524},"Its confidence score is below 0.3 AND it contains no information unique to\nthis project (no file paths, identifiers, or domain-specific nouns).",{"type":52,"tag":61,"props":526,"children":527},{},[528,539],{"type":52,"tag":70,"props":529,"children":530},{},[531,533],{"type":58,"value":532},"Always skip memories where ",{"type":52,"tag":88,"props":534,"children":536},{"className":535},[],[537],{"type":58,"value":538},"metadata.pinned == true",{"type":58,"value":540},", regardless of age or\nconfidence.",{"type":52,"tag":279,"props":542,"children":543},{},[],{"type":52,"tag":76,"props":545,"children":547},{"id":546},"step-4-print-diff-report",[548],{"type":58,"value":549},"Step 4: Print Diff Report",{"type":52,"tag":61,"props":551,"children":552},{},[553],{"type":58,"value":554},"Print a structured diff to the terminal before making any changes. Use exactly\nthis format:",{"type":52,"tag":121,"props":556,"children":559},{"className":557,"code":558,"language":58},[352],"## dream — consolidation report\n\nMerges (\u003CN>):\n  [mem0:\u003Cid1>] + [mem0:\u003Cid2>] → \"\u003Cmerged content, 100 chars>\"\n\nConflicts (\u003CN>):\n  [mem0:\u003CidA>] vs [mem0:\u003CidB>] — \"\u003Ctopic>\" [A\u002FB\u002Fskip]\n\nPrune (\u003CN>):\n  [mem0:\u003Cid>] — \u003Ctype>, \u003Cage>d old\n\nProposed: \u003CN> merges, \u003CN> prunes, \u003CN> conflicts. Apply? [Y\u002Fn]\n",[560],{"type":52,"tag":88,"props":561,"children":562},{"__ignoreMap":126},[563],{"type":58,"value":558},{"type":52,"tag":61,"props":565,"children":566},{},[567],{"type":58,"value":568},"If there are zero items in any category, omit that section entirely.",{"type":52,"tag":61,"props":570,"children":571},{},[572],{"type":58,"value":573},"If there are zero total proposals (no merges, no prunes, no conflicts), print:",{"type":52,"tag":121,"props":575,"children":578},{"className":576,"code":577,"language":58},[352],"Dream complete. No duplicate, contradictory, or stale memories found.\n",[579],{"type":52,"tag":88,"props":580,"children":581},{"__ignoreMap":126},[582],{"type":58,"value":577},{"type":52,"tag":61,"props":584,"children":585},{},[586],{"type":58,"value":363},{"type":52,"tag":279,"props":588,"children":589},{},[],{"type":52,"tag":76,"props":591,"children":593},{"id":592},"step-5-wait-for-user-input-and-apply",[594],{"type":58,"value":595},"Step 5: Wait for User Input and Apply",{"type":52,"tag":399,"props":597,"children":599},{"id":598},"_5a-contradictions",[600],{"type":58,"value":601},"5a. Contradictions",{"type":52,"tag":61,"props":603,"children":604},{},[605,607,613,615,621,623,629,631,637,639,644],{"type":58,"value":606},"For each ",{"type":52,"tag":88,"props":608,"children":610},{"className":609},[],[611],{"type":58,"value":612},"CONFLICT",{"type":58,"value":614}," pair in the report, wait for the user to type ",{"type":52,"tag":88,"props":616,"children":618},{"className":617},[],[619],{"type":58,"value":620},"A",{"type":58,"value":622},", ",{"type":52,"tag":88,"props":624,"children":626},{"className":625},[],[627],{"type":58,"value":628},"B",{"type":58,"value":630},", or\n",{"type":52,"tag":88,"props":632,"children":634},{"className":633},[],[635],{"type":58,"value":636},"skip",{"type":58,"value":638}," (case-insensitive). If they enter nothing (empty), treat as ",{"type":52,"tag":88,"props":640,"children":642},{"className":641},[],[643],{"type":58,"value":636},{"type":58,"value":443},{"type":52,"tag":61,"props":646,"children":647},{},[648],{"type":58,"value":649},"Record the winner for each pair before proceeding to the final apply confirmation.",{"type":52,"tag":399,"props":651,"children":653},{"id":652},"_5b-final-confirmation",[654],{"type":58,"value":655},"5b. Final confirmation",{"type":52,"tag":61,"props":657,"children":658},{},[659],{"type":58,"value":660},"After all conflict resolutions are collected, prompt:",{"type":52,"tag":121,"props":662,"children":665},{"className":663,"code":664,"language":58},[352],"Apply? [Y\u002Fn]\n",[666],{"type":52,"tag":88,"props":667,"children":668},{"__ignoreMap":126},[669],{"type":58,"value":664},{"type":52,"tag":61,"props":671,"children":672},{},[673,675,681,683,689,691,697],{"type":58,"value":674},"If the user types ",{"type":52,"tag":88,"props":676,"children":678},{"className":677},[],[679],{"type":58,"value":680},"n",{"type":58,"value":682}," or ",{"type":52,"tag":88,"props":684,"children":686},{"className":685},[],[687],{"type":58,"value":688},"no",{"type":58,"value":690}," (case-insensitive), print ",{"type":52,"tag":88,"props":692,"children":694},{"className":693},[],[695],{"type":58,"value":696},"Cancelled. No changes made.",{"type":58,"value":698},"\nand stop.",{"type":52,"tag":61,"props":700,"children":701},{},[702,704,710,711,717],{"type":58,"value":703},"If the user confirms (",{"type":52,"tag":88,"props":705,"children":707},{"className":706},[],[708],{"type":58,"value":709},"Y",{"type":58,"value":622},{"type":52,"tag":88,"props":712,"children":714},{"className":713},[],[715],{"type":58,"value":716},"yes",{"type":58,"value":718},", or empty \u002F Enter), apply all changes in this order:",{"type":52,"tag":720,"props":721,"children":723},"h4",{"id":722},"merges",[724],{"type":58,"value":725},"Merges",{"type":52,"tag":61,"props":727,"children":728},{},[729],{"type":58,"value":730},"For each approved merge pair:",{"type":52,"tag":497,"props":732,"children":733},{},[734,743,752],{"type":52,"tag":427,"props":735,"children":736},{},[737],{"type":52,"tag":88,"props":738,"children":740},{"className":739},[],[741],{"type":58,"value":742},"delete_memory(\u003Cid1>)",{"type":52,"tag":427,"props":744,"children":745},{},[746],{"type":52,"tag":88,"props":747,"children":749},{"className":748},[],[750],{"type":58,"value":751},"delete_memory(\u003Cid2>)",{"type":52,"tag":427,"props":753,"children":754},{},[755,761,763],{"type":52,"tag":88,"props":756,"children":758},{"className":757},[],[759],{"type":58,"value":760},"add_memory",{"type":58,"value":762}," with:\n",{"type":52,"tag":423,"props":764,"children":765},{},[766,775,784,795,804],{"type":52,"tag":427,"props":767,"children":768},{},[769],{"type":52,"tag":88,"props":770,"children":772},{"className":771},[],[773],{"type":58,"value":774},"text=\"\u003Cmerged content>\"",{"type":52,"tag":427,"props":776,"children":777},{},[778],{"type":52,"tag":88,"props":779,"children":781},{"className":780},[],[782],{"type":58,"value":783},"user_id=\u003Cactive_user_id>",{"type":52,"tag":427,"props":785,"children":786},{},[787,793],{"type":52,"tag":88,"props":788,"children":790},{"className":789},[],[791],{"type":58,"value":792},"app_id=\u003Cactive_project_id>",{"type":58,"value":794}," (top-level, not in metadata)",{"type":52,"tag":427,"props":796,"children":797},{},[798],{"type":52,"tag":88,"props":799,"children":801},{"className":800},[],[802],{"type":58,"value":803},"metadata={\"type\": \"\u003Coriginal type>\", \"branch\": \"\u003Cactive_branch>\", \"confidence\": \u003Chigher of the two original scores>, \"source\": \"mem0-dream\"}",{"type":52,"tag":427,"props":805,"children":806},{},[807],{"type":52,"tag":88,"props":808,"children":810},{"className":809},[],[811],{"type":58,"value":812},"infer=False",{"type":52,"tag":720,"props":814,"children":816},{"id":815},"contradictions-resolved",[817],{"type":58,"value":818},"Contradictions (resolved)",{"type":52,"tag":61,"props":820,"children":821},{},[822],{"type":58,"value":823},"For each resolved conflict where the user chose A or B:",{"type":52,"tag":423,"props":825,"children":826},{},[827],{"type":52,"tag":427,"props":828,"children":829},{},[830,832],{"type":58,"value":831},"Delete the loser (the non-chosen memory): ",{"type":52,"tag":88,"props":833,"children":835},{"className":834},[],[836],{"type":58,"value":837},"delete_memory(memory_id=\u003Closer_id>)",{"type":52,"tag":61,"props":839,"children":840},{},[841,843,848],{"type":58,"value":842},"Contradictions where the user chose ",{"type":52,"tag":88,"props":844,"children":846},{"className":845},[],[847],{"type":58,"value":636},{"type":58,"value":849}," are left untouched.",{"type":52,"tag":720,"props":851,"children":853},{"id":852},"prunes",[854],{"type":58,"value":855},"Prunes",{"type":52,"tag":61,"props":857,"children":858},{},[859],{"type":58,"value":860},"For each prune candidate:",{"type":52,"tag":423,"props":862,"children":863},{},[864],{"type":52,"tag":427,"props":865,"children":866},{},[867],{"type":52,"tag":88,"props":868,"children":870},{"className":869},[],[871],{"type":58,"value":872},"delete_memory(\u003Cmemory_id>)",{"type":52,"tag":279,"props":874,"children":875},{},[],{"type":52,"tag":76,"props":877,"children":879},{"id":878},"step-6-print-summary",[880],{"type":58,"value":881},"Step 6: Print Summary",{"type":52,"tag":61,"props":883,"children":884},{},[885],{"type":58,"value":886},"After all changes are applied, print:",{"type":52,"tag":121,"props":888,"children":891},{"className":889,"code":890,"language":58},[352],"Dream complete — merged: \u003CN>, pruned: \u003CN>, conflicts resolved: \u003CN>, skipped: \u003CN>\n",[892],{"type":52,"tag":88,"props":893,"children":894},{"__ignoreMap":126},[895],{"type":58,"value":890},{"type":52,"tag":279,"props":897,"children":898},{},[],{"type":52,"tag":76,"props":900,"children":902},{"id":901},"auto-mode",[903],{"type":58,"value":904},"Auto mode",{"type":52,"tag":61,"props":906,"children":907},{},[908,910,916,918,924],{"type":58,"value":909},"When invoked with ",{"type":52,"tag":88,"props":911,"children":913},{"className":912},[],[914],{"type":58,"value":915},"--auto",{"type":58,"value":917}," (e.g., ",{"type":52,"tag":88,"props":919,"children":921},{"className":920},[],[922],{"type":58,"value":923},"\u002Fmem0:dream --auto",{"type":58,"value":925},"), run non-interactively:",{"type":52,"tag":423,"props":927,"children":928},{},[929,938,947],{"type":52,"tag":427,"props":930,"children":931},{},[932,936],{"type":52,"tag":70,"props":933,"children":934},{},[935],{"type":58,"value":725},{"type":58,"value":937},": applied automatically (no contradiction, both are compatible).",{"type":52,"tag":427,"props":939,"children":940},{},[941,945],{"type":52,"tag":70,"props":942,"children":943},{},[944],{"type":58,"value":855},{"type":58,"value":946},": applied automatically (age\u002Fconfidence-based, no ambiguity).",{"type":52,"tag":427,"props":948,"children":949},{},[950,955],{"type":52,"tag":70,"props":951,"children":952},{},[953],{"type":58,"value":954},"Contradictions",{"type":58,"value":956},": skipped — they require human judgment.",{"type":52,"tag":399,"props":958,"children":960},{"id":959},"concurrency-guard",[961],{"type":58,"value":962},"Concurrency guard",{"type":52,"tag":61,"props":964,"children":965},{},[966,968,974],{"type":58,"value":967},"Before doing any work, check for a lock file at ",{"type":52,"tag":88,"props":969,"children":971},{"className":970},[],[972],{"type":58,"value":973},"\u002Ftmp\u002Fmem0_dream_auto.lock",{"type":58,"value":975},":",{"type":52,"tag":423,"props":977,"children":978},{},[979,992],{"type":52,"tag":427,"props":980,"children":981},{},[982,984,990],{"type":58,"value":983},"If the lock file exists and is less than 10 minutes old, print ",{"type":52,"tag":88,"props":985,"children":987},{"className":986},[],[988],{"type":58,"value":989},"[mem0-dream --auto] Another run in progress — skipping.",{"type":58,"value":991}," and stop.",{"type":52,"tag":427,"props":993,"children":994},{},[995],{"type":58,"value":996},"Otherwise, create the lock file (write the current timestamp). Delete it when done (in all exit paths).",{"type":52,"tag":399,"props":998,"children":1000},{"id":999},"execution",[1001],{"type":58,"value":1002},"Execution",{"type":52,"tag":61,"props":1004,"children":1005},{},[1006],{"type":58,"value":1007},"In auto mode:",{"type":52,"tag":497,"props":1009,"children":1010},{},[1011,1016,1021,1035],{"type":52,"tag":427,"props":1012,"children":1013},{},[1014],{"type":58,"value":1015},"Load policies and fetch memories (Steps 1–3) as normal.",{"type":52,"tag":427,"props":1017,"children":1018},{},[1019],{"type":58,"value":1020},"Apply merges and prunes silently without printing the diff or prompting.",{"type":52,"tag":427,"props":1022,"children":1023},{},[1024,1026],{"type":58,"value":1025},"Print a compact summary:\n",{"type":52,"tag":121,"props":1027,"children":1030},{"className":1028,"code":1029,"language":58},[352],"[mem0-dream --auto] project=\u003Cid>  merged=\u003CN>  pruned=\u003CN>  conflicts_skipped=\u003CN>\n",[1031],{"type":52,"tag":88,"props":1032,"children":1033},{"__ignoreMap":126},[1034],{"type":58,"value":1029},{"type":52,"tag":427,"props":1036,"children":1037},{},[1038,1040,1046,1048,1072],{"type":58,"value":1039},"If contradictions were detected but skipped, check if a ",{"type":52,"tag":88,"props":1041,"children":1043},{"className":1042},[],[1044],{"type":58,"value":1045},"mem0-dream-auto",{"type":58,"value":1047}," reminder already exists before storing one:\n",{"type":52,"tag":423,"props":1049,"children":1050},{},[1051,1062,1067],{"type":52,"tag":427,"props":1052,"children":1053},{},[1054,1056],{"type":58,"value":1055},"Search for existing reminders: ",{"type":52,"tag":88,"props":1057,"children":1059},{"className":1058},[],[1060],{"type":58,"value":1061},"search_memories(query=\"mem0-dream contradictions manual review\", filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}, {\"metadata\": {\"source\": \"mem0-dream-auto\"}}]}, top_k=1)",{"type":52,"tag":427,"props":1063,"children":1064},{},[1065],{"type":58,"value":1066},"If a result exists with similarity > 0.9, skip storing the reminder (one already exists).",{"type":52,"tag":427,"props":1068,"children":1069},{},[1070],{"type":58,"value":1071},"If no match, store the reminder:",{"type":52,"tag":121,"props":1073,"children":1075},{"className":303,"code":1074,"language":38,"meta":126,"style":126},"add_memory(\n    text=\"mem0-dream detected \u003CN> contradiction(s) requiring manual review. Run \u002Fmem0:dream to resolve them interactively.\",\n    user_id=\"\u003Cactive_user_id>\",\n    app_id=\"\u003Cactive_project_id>\",\n    metadata={\"type\": \"task_learning\", \"source\": \"mem0-dream-auto\", \"branch\": \"\u003Cactive_branch>\"},\n    infer=False,\n)\n",[1076],{"type":52,"tag":88,"props":1077,"children":1078},{"__ignoreMap":126},[1079,1087,1095,1103,1111,1120,1129],{"type":52,"tag":132,"props":1080,"children":1081},{"class":134,"line":135},[1082],{"type":52,"tag":132,"props":1083,"children":1084},{},[1085],{"type":58,"value":1086},"add_memory(\n",{"type":52,"tag":132,"props":1088,"children":1089},{"class":134,"line":319},[1090],{"type":52,"tag":132,"props":1091,"children":1092},{},[1093],{"type":58,"value":1094},"    text=\"mem0-dream detected \u003CN> contradiction(s) requiring manual review. Run \u002Fmem0:dream to resolve them interactively.\",\n",{"type":52,"tag":132,"props":1096,"children":1097},{"class":134,"line":328},[1098],{"type":52,"tag":132,"props":1099,"children":1100},{},[1101],{"type":58,"value":1102},"    user_id=\"\u003Cactive_user_id>\",\n",{"type":52,"tag":132,"props":1104,"children":1105},{"class":134,"line":337},[1106],{"type":52,"tag":132,"props":1107,"children":1108},{},[1109],{"type":58,"value":1110},"    app_id=\"\u003Cactive_project_id>\",\n",{"type":52,"tag":132,"props":1112,"children":1114},{"class":134,"line":1113},5,[1115],{"type":52,"tag":132,"props":1116,"children":1117},{},[1118],{"type":58,"value":1119},"    metadata={\"type\": \"task_learning\", \"source\": \"mem0-dream-auto\", \"branch\": \"\u003Cactive_branch>\"},\n",{"type":52,"tag":132,"props":1121,"children":1123},{"class":134,"line":1122},6,[1124],{"type":52,"tag":132,"props":1125,"children":1126},{},[1127],{"type":58,"value":1128},"    infer=False,\n",{"type":52,"tag":132,"props":1130,"children":1132},{"class":134,"line":1131},7,[1133],{"type":52,"tag":132,"props":1134,"children":1135},{},[1136],{"type":58,"value":343},{"type":52,"tag":76,"props":1138,"children":1140},{"id":1139},"see-also",[1141],{"type":58,"value":1142},"See also",{"type":52,"tag":423,"props":1144,"children":1145},{},[1146,1157],{"type":52,"tag":427,"props":1147,"children":1148},{},[1149,1155],{"type":52,"tag":88,"props":1150,"children":1152},{"className":1151},[],[1153],{"type":58,"value":1154},"\u002Fmem0:forget",{"type":58,"value":1156}," — targeted deletion of specific memories (search + confirm + delete)",{"type":52,"tag":427,"props":1158,"children":1159},{},[1160,1166],{"type":52,"tag":88,"props":1161,"children":1163},{"className":1162},[],[1164],{"type":58,"value":1165},"\u002Fmem0:health --deep",{"type":58,"value":1167}," — quick quality scan without applying changes",{"type":52,"tag":1169,"props":1170,"children":1171},"style",{},[1172],{"type":58,"value":1173},"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":1175,"total":1257},[1176,1188,1194,1208,1222,1236,1248],{"slug":1177,"name":1177,"fn":1178,"description":1179,"org":1180,"tags":1181,"stars":23,"repoUrl":24,"updatedAt":1187},"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},[1182,1183,1186],{"name":18,"slug":19,"type":16},{"name":1184,"slug":1185,"type":16},"Context","context",{"name":14,"slug":15,"type":16},"2026-07-13T06:13:15.682218",{"slug":4,"name":4,"fn":5,"description":6,"org":1189,"tags":1190,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1191,1192,1193],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},{"slug":1195,"name":1195,"fn":1196,"description":1197,"org":1198,"tags":1199,"stars":23,"repoUrl":24,"updatedAt":1207},"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},[1200,1203,1204],{"name":1201,"slug":1202,"type":16},"Backup","backup",{"name":14,"slug":15,"type":16},{"name":1205,"slug":1206,"type":16},"Migration","migration","2026-07-13T06:13:05.091831",{"slug":1209,"name":1209,"fn":1210,"description":1211,"org":1212,"tags":1213,"stars":23,"repoUrl":24,"updatedAt":1221},"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},[1214,1217,1218],{"name":1215,"slug":1216,"type":16},"Maintenance","maintenance",{"name":14,"slug":15,"type":16},{"name":1219,"slug":1220,"type":16},"Privacy","privacy","2026-07-13T06:13:00.862899",{"slug":1223,"name":1223,"fn":1224,"description":1225,"org":1226,"tags":1227,"stars":23,"repoUrl":24,"updatedAt":1235},"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},[1228,1231,1232],{"name":1229,"slug":1230,"type":16},"Debugging","debugging",{"name":14,"slug":15,"type":16},{"name":1233,"slug":1234,"type":16},"Monitoring","monitoring","2026-07-13T06:13:06.569475",{"slug":1237,"name":1237,"fn":1238,"description":1239,"org":1240,"tags":1241,"stars":23,"repoUrl":24,"updatedAt":1247},"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},[1242,1245,1246],{"name":1243,"slug":1244,"type":16},"Markdown","markdown",{"name":14,"slug":15,"type":16},{"name":1205,"slug":1206,"type":16},"2026-07-13T06:12:59.389494",{"slug":1249,"name":1249,"fn":1250,"description":1251,"org":1252,"tags":1253,"stars":23,"repoUrl":24,"updatedAt":1256},"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},[1254,1255],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},"2026-07-13T06:13:27.80043",23,{"items":1259,"total":1257},[1260,1266,1272,1278,1284,1290,1296,1301,1312,1326,1338,1348],{"slug":1177,"name":1177,"fn":1178,"description":1179,"org":1261,"tags":1262,"stars":23,"repoUrl":24,"updatedAt":1187},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1263,1264,1265],{"name":18,"slug":19,"type":16},{"name":1184,"slug":1185,"type":16},{"name":14,"slug":15,"type":16},{"slug":4,"name":4,"fn":5,"description":6,"org":1267,"tags":1268,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1269,1270,1271],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},{"slug":1195,"name":1195,"fn":1196,"description":1197,"org":1273,"tags":1274,"stars":23,"repoUrl":24,"updatedAt":1207},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1275,1276,1277],{"name":1201,"slug":1202,"type":16},{"name":14,"slug":15,"type":16},{"name":1205,"slug":1206,"type":16},{"slug":1209,"name":1209,"fn":1210,"description":1211,"org":1279,"tags":1280,"stars":23,"repoUrl":24,"updatedAt":1221},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1281,1282,1283],{"name":1215,"slug":1216,"type":16},{"name":14,"slug":15,"type":16},{"name":1219,"slug":1220,"type":16},{"slug":1223,"name":1223,"fn":1224,"description":1225,"org":1285,"tags":1286,"stars":23,"repoUrl":24,"updatedAt":1235},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1287,1288,1289],{"name":1229,"slug":1230,"type":16},{"name":14,"slug":15,"type":16},{"name":1233,"slug":1234,"type":16},{"slug":1237,"name":1237,"fn":1238,"description":1239,"org":1291,"tags":1292,"stars":23,"repoUrl":24,"updatedAt":1247},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1293,1294,1295],{"name":1243,"slug":1244,"type":16},{"name":14,"slug":15,"type":16},{"name":1205,"slug":1206,"type":16},{"slug":1249,"name":1249,"fn":1250,"description":1251,"org":1297,"tags":1298,"stars":23,"repoUrl":24,"updatedAt":1256},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1299,1300],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"slug":8,"name":8,"fn":1302,"description":1303,"org":1304,"tags":1305,"stars":23,"repoUrl":24,"updatedAt":1311},"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},[1306,1307,1310],{"name":18,"slug":19,"type":16},{"name":1308,"slug":1309,"type":16},"AI Infrastructure","ai-infrastructure",{"name":14,"slug":15,"type":16},"2026-07-13T06:12:42.552904",{"slug":1313,"name":1313,"fn":1314,"description":1315,"org":1316,"tags":1317,"stars":23,"repoUrl":24,"updatedAt":1325},"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},[1318,1321,1324],{"name":1319,"slug":1320,"type":16},"Automation","automation",{"name":1322,"slug":1323,"type":16},"CLI","cli",{"name":14,"slug":15,"type":16},"2026-07-13T06:12:48.46494",{"slug":1327,"name":1327,"fn":1328,"description":1329,"org":1330,"tags":1331,"stars":23,"repoUrl":24,"updatedAt":1337},"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},[1332,1333,1336],{"name":18,"slug":19,"type":16},{"name":1334,"slug":1335,"type":16},"API Development","api-development",{"name":14,"slug":15,"type":16},"2026-07-13T06:12:46.60755",{"slug":1339,"name":1339,"fn":1340,"description":1341,"org":1342,"tags":1343,"stars":23,"repoUrl":24,"updatedAt":1347},"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},[1344,1345,1346],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"name":1205,"slug":1206,"type":16},"2026-07-13T06:12:43.848266",{"slug":1349,"name":1349,"fn":1350,"description":1351,"org":1352,"tags":1353,"stars":23,"repoUrl":24,"updatedAt":1362},"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},[1354,1355,1356,1359],{"name":18,"slug":19,"type":16},{"name":14,"slug":15,"type":16},{"name":1357,"slug":1358,"type":16},"QA","qa",{"name":1360,"slug":1361,"type":16},"Testing","testing","2026-07-13T06:12:50.669701"]