{"id":"6f4da724-39b6-4ade-be75-718a4fb4dd6c","shortId":"Hwwu93","kind":"skill","title":"Store selective long-term agent memories with Mem0 instead of replaying whole chats","tagline":"Use Mem0 when an agent should retain durable preferences, facts, and prior decisions as selective memory records instead of stuffing more transcript history back into every prompt.","description":"# Store selective long-term agent memories with Mem0 instead of replaying whole chats\n\nUse Mem0 when an agent should retain durable preferences, facts, and prior decisions as selective memory records instead of stuffing more transcript history back into every prompt.\n\n## Prerequisites\n\nA Python or Node agent stack, the Mem0 package or API, and a workflow that can decide which facts should be stored and later retrieved as durable memory.\n\n## Installation\n\nUse the upstream install or setup path that matches your environment:\n- npm install -g @mem0/cli # or: pip install mem0-cli\n- pip install mem0ai\n- pip install mem0ai[nlp]\n- npm install mem0ai\n\nRequirements and caveats from upstream:\n- | **Setup** | pip install mem0ai | docker compose up | Sign up at [app.mem0.ai](https://app.mem0.ai?utm_source=oss&utm_medium=readme) |\n- python -m spacy download en_core_web_sm\n- cd server && docker compose up -d # http://localhost:3000\n\nBasic usage or getting-started notes:\n- All benchmarks run on the same production-representative model stack. Single-pass retrieval (one call, no agentic loops).\n- bash\n- ### Self-Hosted Server\n\n- Source: https://github.com/mem0ai/mem0\n- Extracted from upstream docs: https://raw.githubusercontent.com/mem0ai/mem0/HEAD/README.md\n\n## Documentation\n\n- https://docs.mem0.ai\n\n## Source\n\n- [Agent Skill Exchange](https://agentskillexchange.com/skills/store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats/)","tags":["store","selective","long","term","agent","memories","with","mem0","instead","replaying","whole","chats"],"capabilities":["skill","source-agentskillexchange","skill-store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats","topic-agent-skills","topic-ai-agents","topic-ai-tools","topic-awesome-list","topic-claude-code","topic-codex","topic-cursor","topic-llm","topic-mcp","topic-npx-skills","topic-openclaw","topic-skills-catalog"],"categories":["skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/agentskillexchange/skills/store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add agentskillexchange/skills","source_repo":"https://github.com/agentskillexchange/skills","install_from":"skills.sh"}},"qualityScore":"0.454","qualityRationale":"deterministic score 0.45 from registry signals: · indexed on github topic:agent-skills · 8 github stars · SKILL.md body (1,464 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T19:12:38.882Z","embedding":null,"createdAt":"2026-05-18T13:19:39.797Z","updatedAt":"2026-05-18T19:12:38.882Z","lastSeenAt":"2026-05-18T19:12:38.882Z","tsv":"'/mem0ai/mem0':218 '/mem0ai/mem0/head/readme.md':225 '/skills/store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats/)':234 '3000':182 'agent':6,19,47,60,88,208,229 'agentskillexchange.com':233 'agentskillexchange.com/skills/store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats/)':232 'api':94 'app.mem0.ai':159,160 'back':38,79 'bash':210 'basic':183 'benchmark':191 'call':206 'caveat':146 'cd':175 'chat':14,55 'cli':133 'compos':154,178 'core':172 'd':180 'decid':100 'decis':27,68 'doc':222 'docker':153,177 'docs.mem0.ai':227 'document':226 'download':170 'durabl':22,63,110 'en':171 'environ':123 'everi':40,81 'exchang':231 'extract':219 'fact':24,65,102 'g':126 'get':187 'getting-start':186 'github.com':217 'github.com/mem0ai/mem0':216 'histori':37,78 'host':213 'instal':112,116,125,130,135,138,142,151 'instead':10,32,51,73 'later':107 'localhost':181 'long':4,45 'long-term':3,44 'loop':209 'm':168 'match':121 'medium':165 'mem0':9,16,50,57,91,132 'mem0-cli':131 'mem0/cli':127 'mem0ai':136,139,143,152 'memori':7,30,48,71,111 'model':199 'nlp':140 'node':87 'note':189 'npm':124,141 'one':205 'oss':163 'packag':92 'pass':203 'path':119 'pip':129,134,137,150 'prefer':23,64 'prerequisit':83 'prior':26,67 'product':197 'production-repres':196 'prompt':41,82 'python':85,167 'raw.githubusercontent.com':224 'raw.githubusercontent.com/mem0ai/mem0/head/readme.md':223 'readm':166 'record':31,72 'replay':12,53 'repres':198 'requir':144 'retain':21,62 'retriev':108,204 'run':192 'select':2,29,43,70 'self':212 'self-host':211 'server':176,214 'setup':118,149 'sign':156 'singl':202 'single-pass':201 'skill':230 'skill-store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats' 'sm':174 'sourc':162,215,228 'source-agentskillexchange' 'spaci':169 'stack':89,200 'start':188 'store':1,42,105 'stuf':34,75 'term':5,46 'topic-agent-skills' 'topic-ai-agents' 'topic-ai-tools' 'topic-awesome-list' 'topic-claude-code' 'topic-codex' 'topic-cursor' 'topic-llm' 'topic-mcp' 'topic-npx-skills' 'topic-openclaw' 'topic-skills-catalog' 'transcript':36,77 'upstream':115,148,221 'usag':184 'use':15,56,113 'utm':161,164 'web':173 'whole':13,54 'workflow':97","prices":[{"id":"b6e69f20-5ce8-4f6b-8c37-776d2a6a48b5","listingId":"6f4da724-39b6-4ade-be75-718a4fb4dd6c","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"agentskillexchange","category":"skills","install_from":"skills.sh"},"createdAt":"2026-05-18T13:19:39.797Z"}],"sources":[{"listingId":"6f4da724-39b6-4ade-be75-718a4fb4dd6c","source":"github","sourceId":"agentskillexchange/skills/store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats","sourceUrl":"https://github.com/agentskillexchange/skills/tree/main/skills/store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats","isPrimary":false,"firstSeenAt":"2026-05-18T13:19:39.797Z","lastSeenAt":"2026-05-18T19:12:38.882Z"}],"details":{"listingId":"6f4da724-39b6-4ade-be75-718a4fb4dd6c","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"agentskillexchange","slug":"store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats","github":{"repo":"agentskillexchange/skills","stars":8,"topics":["agent-skills","ai-agents","ai-tools","awesome-list","claude-code","codex","cursor","llm","mcp","npx-skills","openclaw","skills-catalog"],"license":"mit","html_url":"https://github.com/agentskillexchange/skills","pushed_at":"2026-05-18T19:02:17Z","description":"The open catalog of AI agent skills — 2,000+ security-scanned skills for Claude Code, Cursor, Codex, and more.","skill_md_sha":"38de388188719c231791c2296a2913c4609f8049","skill_md_path":"skills/store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/agentskillexchange/skills/tree/main/skills/store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats"},"layout":"multi","source":"github","category":"skills","frontmatter":{"name":"Store selective long-term agent memories with Mem0 instead of replaying whole chats","description":"Use Mem0 when an agent should retain durable preferences, facts, and prior decisions as selective memory records instead of stuffing more transcript history back into every prompt."},"skills_sh_url":"https://skills.sh/agentskillexchange/skills/store-selective-long-term-agent-memories-with-mem0-instead-of-replaying-whole-chats"},"updatedAt":"2026-05-18T19:12:38.882Z"}}