[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-mem0-stats":3,"mdc--b8hkye-key":47,"related-org-mem0-stats":732,"related-repo-mem0-stats":885},{"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},"stats","display memory usage and session statistics","Displays memory usage statistics for the current session and project including counts by category, age distribution, and API latency. Use when checking how many memories exist, reviewing session activity, or auditing memory distribution across categories.",{"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},"Reporting","reporting","tag",{"name":18,"slug":19,"type":16},"Memory","memory",{"name":21,"slug":22,"type":16},"Analytics","analytics",60691,"https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0","2026-07-13T06:12:58.01259",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\u002Fstats","---\nname: stats\ndescription: Displays memory usage statistics for the current session and project including counts by category, age distribution, and API latency. Use when checking how many memories exist, reviewing session activity, or auditing memory distribution across categories.\n---\n\n# Mem0 Stats\n\nShow session and lifetime memory statistics.\n\n## Execution\n\n### Step 1: Gather session stats\n\nRun the session stats reporter:\n\n```bash\nSCRIPT_DIR=\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${CURSOR_PLUGIN_ROOT:-}}}\u002Fscripts\"\npython3 \"$SCRIPT_DIR\u002Fsession_stats.py\" peek 2>\u002Fdev\u002Fnull || echo \"{}\"\n```\n\nThe `peek` command returns JSON without clearing the stats file (unlike `report`).\n\nIf the script returns empty or errors, note \"No session data available\" and continue.\n\n### Step 2: Fetch lifetime and session stats from API\n\n**Lifetime stats:**\nCall `get_memories` to fetch all memories for this project:\n\n`filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}]}`, `page_size=100`\n\nGroup by:\n1. `categories[0]` (platform-assigned) — primary grouping\n2. `metadata.type` (agent-assigned) — secondary if no categories\n3. `created_at` date — for age analysis\n\n**Category normalization:** Merge `auto_capture` and `uncategorized` into a single `uncategorized` row. These are memories where the platform didn't assign a meaningful content category. Do NOT show `auto_capture` as its own row in the table.\n\n**Session stats (local only):**\nSession stats come from the local stats file read in Step 1. Do NOT query the API with\n`run_id` or `metadata.session_id` filters — these return unreliable results because\nmemories are stored without `run_id` and metadata filters on `session_id` are inconsistent.\n\nThe local stats file tracks adds and searches for the current session accurately.\n\nAlso run a `search_memories` MCP tool call with `query=\"project\"`, `filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}]}`, `top_k=1` to measure round-trip latency. Note the time before and after the MCP call — do NOT attempt raw HTTP calls to the API.\n\n### Step 3: Display\n\nPrint a minimal dashboard. No ASCII bar charts — use a clean table layout:\n\n```\n## mem0 stats\n\n**Session** (\u003Csession_id, first 12 chars>) — 3 written, 5 searches, categories: decision, convention\n\n**Project: my-project** — 55 memories, API: 84ms\n\n| Category             | Count |\n|----------------------|-------|\n| decision             |    24 |\n| convention           |    15 |\n| anti_pattern         |     6 |\n| task_learning        |     5 |\n| user_preference      |     3 |\n| session_state        |     2 |\n\n**Age** — oldest: 2026-02-15, newest: 2026-05-23\n  \u003C 7 days: 5 · 7–30d: 12 · 30–90d: 10 · > 90d: 8\n\n**Identity** — user: kartik · project: my-project · branch: main\n```\n\n**Display rules:**\n- Category table: sort by count descending, omit categories with 0 memories\n- Age: single line with dot-separated buckets, computed from `created_at`\n- Session line: skip if no session data available\n- If only 1-2 total memories, skip the category table — just show the count\n- Keep everything compact — no decorative borders or filler\n\n## Weekly digest mode\n\nWhen invoked with `--weekly` (e.g., `\u002Fmem0:stats --weekly`), append a weekly\nactivity digest after the standard stats dashboard:\n\n### W1: Fetch recent memories\n\nCall `search_memories` in parallel with time-scoped queries:\n1. `query=\"decisions made this week\"`, `filters={\"AND\": [{\"user_id\": \"\u003Cid>\"}, {\"app_id\": \"\u003Cpid>\"}, {\"created_at\": {\"gte\": \"\u003C7 days ago YYYY-MM-DD>\"}}]}`, `top_k=20`\n2. `query=\"bugs errors fixes\"`, same time filter, `top_k=20`\n3. `query=\"patterns conventions learnings\"`, same time filter, `top_k=20`\n\n### W2: Analyze\n\nMerge by ID. Group into \"New this week\" by `categories[0]` or `metadata.type`.\nCalculate: memories added last 7 days, most active categories, most active day.\n\n### W3: Display\n\nAppend after the standard stats:\n\n```\n### This week (May 16 – May 23)\n\n+12 memories — most active: Wednesday (5)\n\n| Category      | New |\n|---------------|-----|\n| decision      |   5 |\n| task_learning |   4 |\n| bug_fix       |   3 |\n\n**Highlights**\n- \u003C2-3 sentence summary of most important decisions\u002Flearnings this week>\n```\n\n### W4: Write digest file\n\nWrite to `~\u002F.mem0\u002Fweekly-digest.md` (overwrite). Append one-line to\n`~\u002F.mem0\u002Fdigest-history.log`:\n```\n\u003CYYYY-MM-DD> | \u003Cproject_id> | +\u003Cnew_count> memories | top: \u003Ctop_category>\n```\n\n### W5: Empty state\n\nIf no new memories in 7 days:\n```\nNo new memories in the past week. Total: \u003CN> memories in \u003Cproject_id>.\n```\n",{"data":48,"body":49},{"name":4,"description":6},{"type":50,"children":51},"root",[52,61,67,74,81,86,230,251,256,262,281,298,303,341,381,422,427,461,467,472,482,490,524,530,551,557,569,626,632,650,656,661,670,676,697,706,712,717,726],{"type":53,"tag":54,"props":55,"children":57},"element","h1",{"id":56},"mem0-stats",[58],{"type":59,"value":60},"text","Mem0 Stats",{"type":53,"tag":62,"props":63,"children":64},"p",{},[65],{"type":59,"value":66},"Show session and lifetime memory statistics.",{"type":53,"tag":68,"props":69,"children":71},"h2",{"id":70},"execution",[72],{"type":59,"value":73},"Execution",{"type":53,"tag":75,"props":76,"children":78},"h3",{"id":77},"step-1-gather-session-stats",[79],{"type":59,"value":80},"Step 1: Gather session stats",{"type":53,"tag":62,"props":82,"children":83},{},[84],{"type":59,"value":85},"Run the session stats reporter:",{"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","SCRIPT_DIR=\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${CURSOR_PLUGIN_ROOT:-}}}\u002Fscripts\"\npython3 \"$SCRIPT_DIR\u002Fsession_stats.py\" peek 2>\u002Fdev\u002Fnull || echo \"{}\"\n","bash","",[94],{"type":53,"tag":95,"props":96,"children":97},"code",{"__ignoreMap":92},[98,161],{"type":53,"tag":99,"props":100,"children":103},"span",{"class":101,"line":102},"line",1,[104,110,116,121,126,131,136,140,145,150,156],{"type":53,"tag":99,"props":105,"children":107},{"style":106},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[108],{"type":59,"value":109},"SCRIPT_DIR",{"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},"CLAUDE_PLUGIN_ROOT",{"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},"CODEX_PLUGIN_ROOT",{"type":53,"tag":99,"props":137,"children":138},{"style":112},[139],{"type":59,"value":130},{"type":53,"tag":99,"props":141,"children":142},{"style":106},[143],{"type":59,"value":144},"CURSOR_PLUGIN_ROOT",{"type":53,"tag":99,"props":146,"children":147},{"style":112},[148],{"type":59,"value":149},":-}}}",{"type":53,"tag":99,"props":151,"children":153},{"style":152},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[154],{"type":59,"value":155},"\u002Fscripts",{"type":53,"tag":99,"props":157,"children":158},{"style":112},[159],{"type":59,"value":160},"\"\n",{"type":53,"tag":99,"props":162,"children":164},{"class":101,"line":163},2,[165,171,176,181,186,191,196,201,206,211,217,221,226],{"type":53,"tag":99,"props":166,"children":168},{"style":167},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[169],{"type":59,"value":170},"python3",{"type":53,"tag":99,"props":172,"children":173},{"style":112},[174],{"type":59,"value":175}," \"",{"type":53,"tag":99,"props":177,"children":178},{"style":106},[179],{"type":59,"value":180},"$SCRIPT_DIR",{"type":53,"tag":99,"props":182,"children":183},{"style":152},[184],{"type":59,"value":185},"\u002Fsession_stats.py",{"type":53,"tag":99,"props":187,"children":188},{"style":112},[189],{"type":59,"value":190},"\"",{"type":53,"tag":99,"props":192,"children":193},{"style":152},[194],{"type":59,"value":195}," peek",{"type":53,"tag":99,"props":197,"children":198},{"style":112},[199],{"type":59,"value":200}," 2>",{"type":53,"tag":99,"props":202,"children":203},{"style":152},[204],{"type":59,"value":205},"\u002Fdev\u002Fnull",{"type":53,"tag":99,"props":207,"children":208},{"style":112},[209],{"type":59,"value":210}," ||",{"type":53,"tag":99,"props":212,"children":214},{"style":213},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[215],{"type":59,"value":216}," echo",{"type":53,"tag":99,"props":218,"children":219},{"style":112},[220],{"type":59,"value":175},{"type":53,"tag":99,"props":222,"children":223},{"style":152},[224],{"type":59,"value":225},"{}",{"type":53,"tag":99,"props":227,"children":228},{"style":112},[229],{"type":59,"value":160},{"type":53,"tag":62,"props":231,"children":232},{},[233,235,241,243,249],{"type":59,"value":234},"The ",{"type":53,"tag":95,"props":236,"children":238},{"className":237},[],[239],{"type":59,"value":240},"peek",{"type":59,"value":242}," command returns JSON without clearing the stats file (unlike ",{"type":53,"tag":95,"props":244,"children":246},{"className":245},[],[247],{"type":59,"value":248},"report",{"type":59,"value":250},").",{"type":53,"tag":62,"props":252,"children":253},{},[254],{"type":59,"value":255},"If the script returns empty or errors, note \"No session data available\" and continue.",{"type":53,"tag":75,"props":257,"children":259},{"id":258},"step-2-fetch-lifetime-and-session-stats-from-api",[260],{"type":59,"value":261},"Step 2: Fetch lifetime and session stats from API",{"type":53,"tag":62,"props":263,"children":264},{},[265,271,273,279],{"type":53,"tag":266,"props":267,"children":268},"strong",{},[269],{"type":59,"value":270},"Lifetime stats:",{"type":59,"value":272},"\nCall ",{"type":53,"tag":95,"props":274,"children":276},{"className":275},[],[277],{"type":59,"value":278},"get_memories",{"type":59,"value":280}," to fetch all memories for this project:",{"type":53,"tag":62,"props":282,"children":283},{},[284,290,292],{"type":53,"tag":95,"props":285,"children":287},{"className":286},[],[288],{"type":59,"value":289},"filters={\"AND\": [{\"user_id\": \"\u003Cactive_user_id>\"}, {\"app_id\": \"\u003Cactive_project_id>\"}]}",{"type":59,"value":291},", ",{"type":53,"tag":95,"props":293,"children":295},{"className":294},[],[296],{"type":59,"value":297},"page_size=100",{"type":53,"tag":62,"props":299,"children":300},{},[301],{"type":59,"value":302},"Group by:",{"type":53,"tag":304,"props":305,"children":306},"ol",{},[307,319,330],{"type":53,"tag":308,"props":309,"children":310},"li",{},[311,317],{"type":53,"tag":95,"props":312,"children":314},{"className":313},[],[315],{"type":59,"value":316},"categories[0]",{"type":59,"value":318}," (platform-assigned) — primary grouping",{"type":53,"tag":308,"props":320,"children":321},{},[322,328],{"type":53,"tag":95,"props":323,"children":325},{"className":324},[],[326],{"type":59,"value":327},"metadata.type",{"type":59,"value":329}," (agent-assigned) — secondary if no categories",{"type":53,"tag":308,"props":331,"children":332},{},[333,339],{"type":53,"tag":95,"props":334,"children":336},{"className":335},[],[337],{"type":59,"value":338},"created_at",{"type":59,"value":340}," date — for age analysis",{"type":53,"tag":62,"props":342,"children":343},{},[344,349,351,357,359,365,367,372,374,379],{"type":53,"tag":266,"props":345,"children":346},{},[347],{"type":59,"value":348},"Category normalization:",{"type":59,"value":350}," Merge ",{"type":53,"tag":95,"props":352,"children":354},{"className":353},[],[355],{"type":59,"value":356},"auto_capture",{"type":59,"value":358}," and ",{"type":53,"tag":95,"props":360,"children":362},{"className":361},[],[363],{"type":59,"value":364},"uncategorized",{"type":59,"value":366}," into a single ",{"type":53,"tag":95,"props":368,"children":370},{"className":369},[],[371],{"type":59,"value":364},{"type":59,"value":373}," row. These are memories where the platform didn't assign a meaningful content category. Do NOT show ",{"type":53,"tag":95,"props":375,"children":377},{"className":376},[],[378],{"type":59,"value":356},{"type":59,"value":380}," as its own row in the table.",{"type":53,"tag":62,"props":382,"children":383},{},[384,389,391,397,399,405,407,412,414,420],{"type":53,"tag":266,"props":385,"children":386},{},[387],{"type":59,"value":388},"Session stats (local only):",{"type":59,"value":390},"\nSession stats come from the local stats file read in Step 1. Do NOT query the API with\n",{"type":53,"tag":95,"props":392,"children":394},{"className":393},[],[395],{"type":59,"value":396},"run_id",{"type":59,"value":398}," or ",{"type":53,"tag":95,"props":400,"children":402},{"className":401},[],[403],{"type":59,"value":404},"metadata.session_id",{"type":59,"value":406}," filters — these return unreliable results because\nmemories are stored without ",{"type":53,"tag":95,"props":408,"children":410},{"className":409},[],[411],{"type":59,"value":396},{"type":59,"value":413}," and metadata filters on ",{"type":53,"tag":95,"props":415,"children":417},{"className":416},[],[418],{"type":59,"value":419},"session_id",{"type":59,"value":421}," are inconsistent.",{"type":53,"tag":62,"props":423,"children":424},{},[425],{"type":59,"value":426},"The local stats file tracks adds and searches for the current session accurately.",{"type":53,"tag":62,"props":428,"children":429},{},[430,432,438,440,446,447,452,453,459],{"type":59,"value":431},"Also run a ",{"type":53,"tag":95,"props":433,"children":435},{"className":434},[],[436],{"type":59,"value":437},"search_memories",{"type":59,"value":439}," MCP tool call with ",{"type":53,"tag":95,"props":441,"children":443},{"className":442},[],[444],{"type":59,"value":445},"query=\"project\"",{"type":59,"value":291},{"type":53,"tag":95,"props":448,"children":450},{"className":449},[],[451],{"type":59,"value":289},{"type":59,"value":291},{"type":53,"tag":95,"props":454,"children":456},{"className":455},[],[457],{"type":59,"value":458},"top_k=1",{"type":59,"value":460}," to measure round-trip latency. Note the time before and after the MCP call — do NOT attempt raw HTTP calls to the API.",{"type":53,"tag":75,"props":462,"children":464},{"id":463},"step-3-display",[465],{"type":59,"value":466},"Step 3: Display",{"type":53,"tag":62,"props":468,"children":469},{},[470],{"type":59,"value":471},"Print a minimal dashboard. No ASCII bar charts — use a clean table layout:",{"type":53,"tag":87,"props":473,"children":477},{"className":474,"code":476,"language":59},[475],"language-text","## mem0 stats\n\n**Session** (\u003Csession_id, first 12 chars>) — 3 written, 5 searches, categories: decision, convention\n\n**Project: my-project** — 55 memories, API: 84ms\n\n| Category             | Count |\n|----------------------|-------|\n| decision             |    24 |\n| convention           |    15 |\n| anti_pattern         |     6 |\n| task_learning        |     5 |\n| user_preference      |     3 |\n| session_state        |     2 |\n\n**Age** — oldest: 2026-02-15, newest: 2026-05-23\n  \u003C 7 days: 5 · 7–30d: 12 · 30–90d: 10 · > 90d: 8\n\n**Identity** — user: kartik · project: my-project · branch: main\n",[478],{"type":53,"tag":95,"props":479,"children":480},{"__ignoreMap":92},[481],{"type":59,"value":476},{"type":53,"tag":62,"props":483,"children":484},{},[485],{"type":53,"tag":266,"props":486,"children":487},{},[488],{"type":59,"value":489},"Display rules:",{"type":53,"tag":491,"props":492,"children":493},"ul",{},[494,499,509,514,519],{"type":53,"tag":308,"props":495,"children":496},{},[497],{"type":59,"value":498},"Category table: sort by count descending, omit categories with 0 memories",{"type":53,"tag":308,"props":500,"children":501},{},[502,504],{"type":59,"value":503},"Age: single line with dot-separated buckets, computed from ",{"type":53,"tag":95,"props":505,"children":507},{"className":506},[],[508],{"type":59,"value":338},{"type":53,"tag":308,"props":510,"children":511},{},[512],{"type":59,"value":513},"Session line: skip if no session data available",{"type":53,"tag":308,"props":515,"children":516},{},[517],{"type":59,"value":518},"If only 1-2 total memories, skip the category table — just show the count",{"type":53,"tag":308,"props":520,"children":521},{},[522],{"type":59,"value":523},"Keep everything compact — no decorative borders or filler",{"type":53,"tag":68,"props":525,"children":527},{"id":526},"weekly-digest-mode",[528],{"type":59,"value":529},"Weekly digest mode",{"type":53,"tag":62,"props":531,"children":532},{},[533,535,541,543,549],{"type":59,"value":534},"When invoked with ",{"type":53,"tag":95,"props":536,"children":538},{"className":537},[],[539],{"type":59,"value":540},"--weekly",{"type":59,"value":542}," (e.g., ",{"type":53,"tag":95,"props":544,"children":546},{"className":545},[],[547],{"type":59,"value":548},"\u002Fmem0:stats --weekly",{"type":59,"value":550},"), append a weekly\nactivity digest after the standard stats dashboard:",{"type":53,"tag":75,"props":552,"children":554},{"id":553},"w1-fetch-recent-memories",[555],{"type":59,"value":556},"W1: Fetch recent memories",{"type":53,"tag":62,"props":558,"children":559},{},[560,562,567],{"type":59,"value":561},"Call ",{"type":53,"tag":95,"props":563,"children":565},{"className":564},[],[566],{"type":59,"value":437},{"type":59,"value":568}," in parallel with time-scoped queries:",{"type":53,"tag":304,"props":570,"children":571},{},[572,595,611],{"type":53,"tag":308,"props":573,"children":574},{},[575,581,582,588,589],{"type":53,"tag":95,"props":576,"children":578},{"className":577},[],[579],{"type":59,"value":580},"query=\"decisions made this week\"",{"type":59,"value":291},{"type":53,"tag":95,"props":583,"children":585},{"className":584},[],[586],{"type":59,"value":587},"filters={\"AND\": [{\"user_id\": \"\u003Cid>\"}, {\"app_id\": \"\u003Cpid>\"}, {\"created_at\": {\"gte\": \"\u003C7 days ago YYYY-MM-DD>\"}}]}",{"type":59,"value":291},{"type":53,"tag":95,"props":590,"children":592},{"className":591},[],[593],{"type":59,"value":594},"top_k=20",{"type":53,"tag":308,"props":596,"children":597},{},[598,604,606],{"type":53,"tag":95,"props":599,"children":601},{"className":600},[],[602],{"type":59,"value":603},"query=\"bugs errors fixes\"",{"type":59,"value":605},", same time filter, ",{"type":53,"tag":95,"props":607,"children":609},{"className":608},[],[610],{"type":59,"value":594},{"type":53,"tag":308,"props":612,"children":613},{},[614,620,621],{"type":53,"tag":95,"props":615,"children":617},{"className":616},[],[618],{"type":59,"value":619},"query=\"patterns conventions learnings\"",{"type":59,"value":605},{"type":53,"tag":95,"props":622,"children":624},{"className":623},[],[625],{"type":59,"value":594},{"type":53,"tag":75,"props":627,"children":629},{"id":628},"w2-analyze",[630],{"type":59,"value":631},"W2: Analyze",{"type":53,"tag":62,"props":633,"children":634},{},[635,637,642,643,648],{"type":59,"value":636},"Merge by ID. Group into \"New this week\" by ",{"type":53,"tag":95,"props":638,"children":640},{"className":639},[],[641],{"type":59,"value":316},{"type":59,"value":398},{"type":53,"tag":95,"props":644,"children":646},{"className":645},[],[647],{"type":59,"value":327},{"type":59,"value":649},".\nCalculate: memories added last 7 days, most active categories, most active day.",{"type":53,"tag":75,"props":651,"children":653},{"id":652},"w3-display",[654],{"type":59,"value":655},"W3: Display",{"type":53,"tag":62,"props":657,"children":658},{},[659],{"type":59,"value":660},"Append after the standard stats:",{"type":53,"tag":87,"props":662,"children":665},{"className":663,"code":664,"language":59},[475],"### This week (May 16 – May 23)\n\n+12 memories — most active: Wednesday (5)\n\n| Category      | New |\n|---------------|-----|\n| decision      |   5 |\n| task_learning |   4 |\n| bug_fix       |   3 |\n\n**Highlights**\n- \u003C2-3 sentence summary of most important decisions\u002Flearnings this week>\n",[666],{"type":53,"tag":95,"props":667,"children":668},{"__ignoreMap":92},[669],{"type":59,"value":664},{"type":53,"tag":75,"props":671,"children":673},{"id":672},"w4-write-digest-file",[674],{"type":59,"value":675},"W4: Write digest file",{"type":53,"tag":62,"props":677,"children":678},{},[679,681,687,689,695],{"type":59,"value":680},"Write to ",{"type":53,"tag":95,"props":682,"children":684},{"className":683},[],[685],{"type":59,"value":686},"~\u002F.mem0\u002Fweekly-digest.md",{"type":59,"value":688}," (overwrite). Append one-line to\n",{"type":53,"tag":95,"props":690,"children":692},{"className":691},[],[693],{"type":59,"value":694},"~\u002F.mem0\u002Fdigest-history.log",{"type":59,"value":696},":",{"type":53,"tag":87,"props":698,"children":701},{"className":699,"code":700,"language":59},[475],"\u003CYYYY-MM-DD> | \u003Cproject_id> | +\u003Cnew_count> memories | top: \u003Ctop_category>\n",[702],{"type":53,"tag":95,"props":703,"children":704},{"__ignoreMap":92},[705],{"type":59,"value":700},{"type":53,"tag":75,"props":707,"children":709},{"id":708},"w5-empty-state",[710],{"type":59,"value":711},"W5: Empty state",{"type":53,"tag":62,"props":713,"children":714},{},[715],{"type":59,"value":716},"If no new memories in 7 days:",{"type":53,"tag":87,"props":718,"children":721},{"className":719,"code":720,"language":59},[475],"No new memories in the past week. Total: \u003CN> memories in \u003Cproject_id>.\n",[722],{"type":53,"tag":95,"props":723,"children":724},{"__ignoreMap":92},[725],{"type":59,"value":720},{"type":53,"tag":727,"props":728,"children":729},"style",{},[730],{"type":59,"value":731},"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":733,"total":884},[734,747,759,773,787,801,813,822,833,847,859,869],{"slug":735,"name":735,"fn":736,"description":737,"org":738,"tags":739,"stars":23,"repoUrl":24,"updatedAt":746},"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},[740,742,745],{"name":741,"slug":29,"type":16},"Agents",{"name":743,"slug":744,"type":16},"Context","context",{"name":18,"slug":19,"type":16},"2026-07-13T06:13:15.682218",{"slug":748,"name":748,"fn":749,"description":750,"org":751,"tags":752,"stars":23,"repoUrl":24,"updatedAt":758},"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},[753,754,757],{"name":741,"slug":29,"type":16},{"name":755,"slug":756,"type":16},"Data Cleaning","data-cleaning",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:54.000421",{"slug":760,"name":760,"fn":761,"description":762,"org":763,"tags":764,"stars":23,"repoUrl":24,"updatedAt":772},"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},[765,768,769],{"name":766,"slug":767,"type":16},"Backup","backup",{"name":18,"slug":19,"type":16},{"name":770,"slug":771,"type":16},"Migration","migration","2026-07-13T06:13:05.091831",{"slug":774,"name":774,"fn":775,"description":776,"org":777,"tags":778,"stars":23,"repoUrl":24,"updatedAt":786},"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},[779,782,783],{"name":780,"slug":781,"type":16},"Maintenance","maintenance",{"name":18,"slug":19,"type":16},{"name":784,"slug":785,"type":16},"Privacy","privacy","2026-07-13T06:13:00.862899",{"slug":788,"name":788,"fn":789,"description":790,"org":791,"tags":792,"stars":23,"repoUrl":24,"updatedAt":800},"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},[793,796,797],{"name":794,"slug":795,"type":16},"Debugging","debugging",{"name":18,"slug":19,"type":16},{"name":798,"slug":799,"type":16},"Monitoring","monitoring","2026-07-13T06:13:06.569475",{"slug":802,"name":802,"fn":803,"description":804,"org":805,"tags":806,"stars":23,"repoUrl":24,"updatedAt":812},"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},[807,810,811],{"name":808,"slug":809,"type":16},"Markdown","markdown",{"name":18,"slug":19,"type":16},{"name":770,"slug":771,"type":16},"2026-07-13T06:12:59.389494",{"slug":814,"name":814,"fn":815,"description":816,"org":817,"tags":818,"stars":23,"repoUrl":24,"updatedAt":821},"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},[819,820],{"name":741,"slug":29,"type":16},{"name":18,"slug":19,"type":16},"2026-07-13T06:13:27.80043",{"slug":8,"name":8,"fn":823,"description":824,"org":825,"tags":826,"stars":23,"repoUrl":24,"updatedAt":832},"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},[827,828,831],{"name":741,"slug":29,"type":16},{"name":829,"slug":830,"type":16},"AI Infrastructure","ai-infrastructure",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:42.552904",{"slug":834,"name":834,"fn":835,"description":836,"org":837,"tags":838,"stars":23,"repoUrl":24,"updatedAt":846},"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},[839,842,845],{"name":840,"slug":841,"type":16},"Automation","automation",{"name":843,"slug":844,"type":16},"CLI","cli",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:48.46494",{"slug":848,"name":848,"fn":849,"description":850,"org":851,"tags":852,"stars":23,"repoUrl":24,"updatedAt":858},"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},[853,854,857],{"name":741,"slug":29,"type":16},{"name":855,"slug":856,"type":16},"API Development","api-development",{"name":18,"slug":19,"type":16},"2026-07-13T06:12:46.60755",{"slug":860,"name":860,"fn":861,"description":862,"org":863,"tags":864,"stars":23,"repoUrl":24,"updatedAt":868},"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},[865,866,867],{"name":741,"slug":29,"type":16},{"name":18,"slug":19,"type":16},{"name":770,"slug":771,"type":16},"2026-07-13T06:12:43.848266",{"slug":870,"name":870,"fn":871,"description":872,"org":873,"tags":874,"stars":23,"repoUrl":24,"updatedAt":883},"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},[875,876,877,880],{"name":741,"slug":29,"type":16},{"name":18,"slug":19,"type":16},{"name":878,"slug":879,"type":16},"QA","qa",{"name":881,"slug":882,"type":16},"Testing","testing","2026-07-13T06:12:50.669701",23,{"items":886,"total":884},[887,893,899,905,911,917,923],{"slug":735,"name":735,"fn":736,"description":737,"org":888,"tags":889,"stars":23,"repoUrl":24,"updatedAt":746},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[890,891,892],{"name":741,"slug":29,"type":16},{"name":743,"slug":744,"type":16},{"name":18,"slug":19,"type":16},{"slug":748,"name":748,"fn":749,"description":750,"org":894,"tags":895,"stars":23,"repoUrl":24,"updatedAt":758},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[896,897,898],{"name":741,"slug":29,"type":16},{"name":755,"slug":756,"type":16},{"name":18,"slug":19,"type":16},{"slug":760,"name":760,"fn":761,"description":762,"org":900,"tags":901,"stars":23,"repoUrl":24,"updatedAt":772},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[902,903,904],{"name":766,"slug":767,"type":16},{"name":18,"slug":19,"type":16},{"name":770,"slug":771,"type":16},{"slug":774,"name":774,"fn":775,"description":776,"org":906,"tags":907,"stars":23,"repoUrl":24,"updatedAt":786},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[908,909,910],{"name":780,"slug":781,"type":16},{"name":18,"slug":19,"type":16},{"name":784,"slug":785,"type":16},{"slug":788,"name":788,"fn":789,"description":790,"org":912,"tags":913,"stars":23,"repoUrl":24,"updatedAt":800},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[914,915,916],{"name":794,"slug":795,"type":16},{"name":18,"slug":19,"type":16},{"name":798,"slug":799,"type":16},{"slug":802,"name":802,"fn":803,"description":804,"org":918,"tags":919,"stars":23,"repoUrl":24,"updatedAt":812},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[920,921,922],{"name":808,"slug":809,"type":16},{"name":18,"slug":19,"type":16},{"name":770,"slug":771,"type":16},{"slug":814,"name":814,"fn":815,"description":816,"org":924,"tags":925,"stars":23,"repoUrl":24,"updatedAt":821},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[926,927],{"name":741,"slug":29,"type":16},{"name":18,"slug":19,"type":16}]