Learning brief
Generated by AI from multiple sources. Always verify critical information.
TL;DR
AI agents normally forget everything between conversations — like talking to someone with amnesia. New open-source tools let your AI remember past chats, your preferences, and what you've discussed before, stored in a simple database on your computer.
What changed
Open-source memory tools like Memori and Mem0 now let AI agents remember conversations across sessions.
Why it matters
Your AI assistant can finally remember you asked it not to use jargon or that you prefer Python over JavaScript.
What to watch
Which memory approach wins: simple markdown files, lightweight databases, or cloud-based storage systems.
What Happened
The amnesia problem: Right now, when you talk to ChatGPT or most AI assistants, they forget everything the moment you close the chat window. It's like explaining your dietary restrictions to a waiter who has no memory — you start from scratch every single time.
Two types of memory have emerged: Short-term memory (called "conscious mode" in Memori) works like keeping a sticky note on your desk — information you're actively using stays handy (Source 4). Long-term memory ("auto mode") is like a searchable filing cabinet — the AI digs through all your past conversations to find relevant details when needed (Source 4). Think of it like the difference between remembering someone's name during a conversation versus searching your email history to find what you discussed six months ago.
How it works in practice: Tools like Memori and Mem0 create a database file on your computer (typically SQLite — a simple database that's just a file, no server required) that stores everything you've told the AI (Source 4, Source 5). When you start a new conversation, the AI checks this database first. If you previously said "I hate cilantro," the AI loads that preference before responding to your request for recipe suggestions.
The dead-simple approach: One developer skipped databases entirely and used markdown files — plain text files like the notes app on your phone (Source 2). Each conversation gets saved as a .md file with timestamps. The AI reads these files before responding. It's low-tech but works surprisingly well for personal use.
Real implementation: To add memory to an OpenAI agent, you install the memorisdk package, create a SQLite database file, and initialize it with two lines of code: memory_system = Memori(database_connect="sqlite:///my_memory.db") then memory_system.enable() (Source 4). The memory engine runs in the background, automatically deciding what's worth remembering and what to forget.
So What?
This solves the most annoying thing about AI assistants: repeatedly explaining context. If you use ChatGPT to help with work projects, you currently paste the same background information into every new chat — your tech stack, your coding style preferences, the specific quirks of your project. With persistent memory, you explain once. The AI assistant becomes more like a coworker who's been on your team for months, not a temp who started this morning.
The real story here is control: You own the database file. It's on your computer, not in some company's cloud. If you use the markdown file approach, you can literally open the memory files in Notepad and see exactly what the AI "remembers" about you (Source 2). That's a massive privacy upgrade over trusting a company's "we store your data securely" promise. For anyone working with sensitive information — medical records, legal cases, proprietary code — this matters more than the convenience factor.
Here's what most coverage gets wrong: This isn't about making AI "smarter." The underlying language model is the same. This is about giving it a filing system. An AI with memory doesn't understand you better — it just has notes about you that it checks before responding. That's actually good news: you don't need access to cutting-edge models or expensive API credits. The open-source memory tools work with whatever AI you're already using, including models you run entirely on your own computer.
Sources