Zero Labs
Industry News / AI

Stop Being a Stranger to Your AI

Source · Towards AI By Sagar Ganapaneni

From the publisher’s feed, collected in the ZeroLabs newsroom.

You use multiple AI tools. Each one knows a piece of you. None of them knows the whole picture. That led me to build a memory layer to help address the problem.You’ve spent months with your AI tools. Not training them deliberately, just using them. Every conversation, every correction, every preference you expressed. ChatGPT knows your tech stack. Claude knows how you like your answers. Gemini knows what you’re reading.But switch tools, and that context doesn’t follow. You re-introduce yourself: your role, your projects, your preferences — to every new AI, every new session.“I’m a data scientist working on…” , for the fifth time this week, to the fifth different AI.This isn’t about any single tool having bad memory. The problem is that your personal context is fragmented across platforms, each tool holds a partial, sometimes contradictory slice of who you are. No single tool has the complete picture, and none are designed to share.I got tired of the fragmentation. So I built MemOS: a local-first, open-source memory layer that consolidates AI memories from ChatGPT, Claude, and Gemini into a single store and makes them accessible to any MCP-compatible client.ChatGPT memories ─┐Claude memories ─┼──▶ ~/.memos/memories.db ──▶ Any MCP clientGemini memories ─┘ (local SQLite) Claude Desktop · Cursor · Windsurf · ...But MemOS isn’t just an aggregator. Once your memories are in one place, a more interesting question emerges: which memories should your AI actually see?Why Not Just Use Claude’s Memory?If you use a single AI tool exclusively, its native memory is probably fine. MemOS is for people who use multiple AI tools daily and want consistent context across all of them.Beyond fragmentation, three concerns drove this project:Privacy. Cloud-hosted memories mean your preferences, projects, and work patterns live on someone else’s infrastructure. For users in regulated industries, that’s a non-starter.Auditability. I wanted to know exactly what my AI tools had stored about me. Not “we’ve learned your preferences”, the actual data, searchable and auditable.Portability. When a new tool launches tomorrow, I want to bring my context with me. Memory should be infrastructure I own, not a feature I rent.How It WorksMemOS has three layers: adapters that parse platform exports, a store that persists and indexes memories locally, and an MCP server that exposes them to AI clients.Getting Your Memories Out (The Hard Part)The most friction-heavy part is getting your data out of each platform. No major AI platform offers a programmatic API for exporting memories. The process is manual — clicking through settings menus, waiting for download emails, extracting ZIP files. This is the single biggest UX limitation, and MemOS can’t fix it unilaterally. Until platforms offer export APIs, and at this point, they’re not incentivized to, because portable memory reduces lock-in and this friction remains.ChatGPT: Settings > Data Controls > Export data → extract memories.json from the ZIPClaude: Settings > Capabilities > Memory > exportGemini: Google Takeout > select My Activity > Gemini Apps (the top-level “Gemini” option is for Gems, not chat history)Data export steps is manual, it does handle everything downstream: parsing idiosyncratic export formats, normalizing them into a unified schema, classifying and tagging each memory, deduplicating across sources, and indexing for fast retrieval. Re-importing is safe, MemOS deduplicates by content and only adds new entries. The import is batch-based rather than real-time, partly by design (batch imports are simpler and auditable) and partly by constraint (no platform offers sync APIs or webhooks)../memos.sh import --source chatgpt --input ~/Downloads/memories.json./memos.sh import --source claude --input ~/Downloads/memory.json./memos.sh import --source gemini --input ~/Downloads/gemini_memories.jsonThe StoreMemories live in a SQLite database at ~/.memos/memories.db. I chose SQLite over Postgres or a vector database deliberately: for a single-user, local-first tool, it's the right default. It ships with Python, requires zero configuration, and FTS5 virtual tables provide full-text search with porter stemming out of the box. A vector DB would enable semantic search (FTS5 won't find "machine learning" when you search "AI"), but it would mean managing an embedding pipeline and a separate process. That trade-off wasn't worth it for v1 — semantic search via local embeddings is on the roadmap.Each memory carries: content, source (chatgpt/claude/gemini/manual), category (auto-classified into professional/ personal/preference /project/ relationship), tags (auto-extracted keywords), a sensitive flag, a confidence score, and the original timestamp.Classification uses keyword-based scoring rather than an LLM call. An LLM could classify more accurately — a memory like “coffee with my manager to discuss the Q3 roadmap” could reasonably be professional, relationship, or preference, and keyword matching doesn't always pick the best one. But LLM classification would require either an API key (cloud dependency, per-call cost) or a local model (hardware requirements). Keyword scoring runs in under a millisecond, works entirely offline, produces deterministic results, and handles the common cases well. The storage layer is designed so embedding-based classification can be layered on later without migration.The store also provides near-duplicate detection (Jaccard similarity), staleness detection, per-source/category aggregations, and full JSON export.The MCP ServerThis is where the value lives. MemOS includes an MCP server that exposes eight tools over stdio:All read operations automatically apply exclusion rules — sensitive memories, excluded tags, excluded categories, and keyword filters are stripped before reaching the AI client.MCP is the protocol Anthropic introduced for tool integration, now adopted by Claude Desktop, Cursor, Windsurf, and others. By implementing MemOS as an MCP server, it works with all of them — no per-client integration code. Configuration is a single JSON block:{ "mcpServers": { "memos": { "command": "/path/to/MemOS/memos.sh", "args": ["serve"] } }}Restart your client, ask “What do you know about me?”, and it pulls from memories spanning every platform you’ve imported. One caveat: if ChatGPT recorded that you live in San Francisco and Claude recorded that you moved to New York, MemOS currently stores both without flagging the contradiction. Cross-source conflict detection is a planned feature.Context Engineering: Not Just What Your AI Knows, but What It Should SeeThere’s a concept gaining traction in AI tooling: context engineering — deliberately shaping what information reaches a model at inference time. Most discussion focuses on system prompts and RAG pipelines. But there’s a dimension that gets less attention: personal context curation.Once your memories are unified, you don’t want all of them flowing into every interaction:You discussed a health condition with an AI during a vulnerable moment. Do you want it surfacing when you ask for help with a cover letter?You had an emotionally honest conversation about burnout. Useful then. Not something you want injected into a coding session.A six-month-old memory says you work at Company A. You’ve since moved to Company B. The stale memory is now actively misleading.The problem isn’t that AI tools remember too much or too little — it’s that there’s no curation layer between raw memory and the context reaching the model.How MemOS handles thisMemOS provides four layers of context curation, from coarse to fine-grained:1. Context packs — named bundles scoped to specific categories. A “coding” pack pulls professional and project memories. A "writing" pack pulls personal and preference. You control which slice of your identity reaches each interaction without deleting anything../memos.sh pack create "coding" --categories professional,project --exclude-tags health./memos.sh pack inject "coding" | pbcopy2. Sensitive flags — mark individual memories that should never reach an AI client. Therapy notes, health information, emotional conversations. The memory stays in your store; no AI tool receives it.3. Exclusion rules — broad, declarative filtering stored in ~/.memos/rules.json. Exclude by tag, category, keyword, or sensitivity flag. Rules compose with OR semantics and apply automatically to all MCP responses, pack injections, and prompt generation../memos.sh rules set exclude_tags "health,therapy"./memos.sh rules set exclude_categories "personal"4. Selective cleanup — edit and delete commands for surgical updates. Found stale info? Edit in place. Something that shouldn't exist? Delete it. Far more granular than the "delete all" nuclear option most platforms offer.As AI tools get better at remembering, the value shifts from how much they know to how thoughtfully that knowledge is applied. You discussed burnout at 2am. That was the right context then. It’s not the right context for a code review the next morning. MemOS lets you make that distinction without losing the memory.The CLIBeyond the MCP server, MemOS ships with a 15-command CLI:./memos.sh stats # Counts by source and category./memos.sh health # Staleness, duplicates, gaps./memos.sh search "python" # Full-text search with FTS5./memos.sh audit # Scan for emails, phones, API keys./memos.sh prompt "write a cover letter" | pbcopy # Memory-aware prompt generation./memos.sh export --output backup.json # Full JSON exportThe health command scores your store and surfaces actionable issues — stale memories, near-duplicates, category gaps. The audit command scans for PII patterns (emails, phone numbers, API keys, SSNs) using regex — fast and deterministic, though it won't catch sensitive information expressed in natural language. A more robust approach would use NER, but that reintroduces the cloud/local model dependency trade-off. The prompt command wraps a task with relevant memories, producing an enriched prompt that already knows your background.How to Get Startedgit clone https://github.com/123saga/memoscd memosbash setup.sh./memos.sh import --source chatgpt --input ~/Downloads/memories.json./memos.sh import --source claude --input ~/Downloads/memory.json./memos.sh stats./memos.sh healthAdd the MCP config to Claude Desktop, Cursor, or Windsurf and restart. No Docker, no cloud accounts, no API keys. The install takes under a minute.Closing ThoughtsMemOS started as a personal frustration — I was tired of being a stranger to every new AI tool. But building it surfaced a deeper question: who should own the context that AI tools accumulate about you, and who should decide how it’s used?Right now, the answer to both is the platform. Your memories live on their infrastructure, in their format, accessible only through their interface. You can’t search them programmatically, audit them for sensitive data, or decide that your coding assistant should know your tech stack but not your therapy notes.MemOS is an attempt to separate memory from the tools that create it. Aggregate your context, own it locally, curate what each tool sees, and carry it forward as you adopt new tools.This is a vanilla implementation of this idea. The export process is manual and the classification is rule-based. But the curation layer is real, the sensitivity flags, exclusion rules, context packs and selective cleanup are all very helpful in owning the memory these AI tools capture about you.The principle is simple: personal context should be infrastructure you own, not a feature you rent. If this resonates, I’d welcome contributions, feedback, and conversation.GitHub: github.com/123saga/memos use it, fork it, build on it.Stop Being a Stranger to Your AI was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.