{"schema_version":"newruntime-agent-readable-v0.2","type":"post","stable_id":"post:mem0-context-wipe-memory-layer","slug":"mem0-context-wipe-memory-layer","title":"Mem0 Shows Agent Memory Should Not All Live in Context","description":"Mem0's Claude Code experiment separates durable memory from the conversation window: retrieve the relevant slice, survive /clear, and avoid loading every memory file up front.","retrieval_nugget":"Mem0's Claude Code experiment separates durable memory from the conversation window: retrieve the relevant slice, survive /clear, and avoid loading every memory file up front. Mem0's Claude Code write-up is worth reading as an architecture note, not just as a vendor benchmark. The first experiment used Claude Code v2.1.209 on the same repository, with and without the Mem0 plugin.","status":"published","published_at":"2026-07-30","updated_at":"2026-07-30","record_date":"2026-07-30","date_kind":"published_at","topics":["agent-memory","context-engineering","mcp","developer-tools"],"source_urls":["https://x.com/mem0ai/status/2082850651416281415","https://mem0.ai/blog/how-mem0-cut-claude-code-s-memory-footprint-by-97"],"visuals":[{"id":"mem0-context-wipe-memory-layer-nano-banana","kind":"editorial-diagram","role":"hero","src":"https://newruntime.com/images/posts/mem0-context-wipe-memory-layer-nano-banana.webp","alt":"Hand-drawn memory architecture diagram where a messy file stack stays outside the context window while a retrieval layer returns one memory capsule after a context wipe.","caption":"Mem0 frames memory as a retrieval layer outside the temporary conversation window, not as unconditional prompt material.","credit":"New Runtime synthesis from public source inspection","source_url":"https://mem0.ai/blog/how-mem0-cut-claude-code-s-memory-footprint-by-97","generated_with":"nano-banana-style-imagegen","width":1600,"height":900,"legend":[{"label":"Baseline","description":"The comparison baseline loaded three memory files totaling 13,700 tokens."},{"label":"Retrieval","description":"The Mem0 session retrieved a 445-token slice for the same task."},{"label":"Recall","description":"A preference survived `/clear` because it lived outside the conversation window."}]}],"routes":{"html":"https://newruntime.com/posts/mem0-context-wipe-memory-layer/","markdown":"https://newruntime.com/posts/mem0-context-wipe-memory-layer.md","json":"https://newruntime.com/posts/mem0-context-wipe-memory-layer.json"},"source_format":"markdown","next_reads":[{"type":"topic","path":"/topics/agent-memory/","reason":"Explore the agent memory topic hub.","url":"https://newruntime.com/topics/agent-memory/","title":"Agent memory - New Runtime","media_type":"text/html"},{"type":"topic","path":"/topics/context-engineering/","reason":"Explore the context engineering topic hub.","url":"https://newruntime.com/topics/context-engineering/","title":"Context engineering - New Runtime","media_type":"text/html"},{"type":"related_material","path":"/posts/drskill-agent-loadout-audit/","reason":"Shares context engineering and developer tools.","url":"https://newruntime.com/posts/drskill-agent-loadout-audit/","title":"Dr. Skill Audits What An Agent Loads Before It Works","media_type":"text/html"},{"type":"related_material","path":"/posts/copilotkit-react-mcp-client-interface/","reason":"Shares developer tools and mcp.","url":"https://newruntime.com/posts/copilotkit-react-mcp-client-interface/","title":"CopilotKit Brings MCP Tool Calls Into The React Interface","media_type":"text/html"},{"type":"related_material","path":"/posts/anthropic-tool-search-programmatic-calls/","reason":"Shares context engineering and mcp.","url":"https://newruntime.com/posts/anthropic-tool-search-programmatic-calls/","title":"Anthropic Moves Large Tool Libraries Out Of Context","media_type":"text/html"}]}
