I built a memory system for AI agents that stores everything as readable Git records
Every time I start a new session with my AI agent, it forgets everything. My preferences, the decisions we made yesterday, the project structure we spent an hour discussing — all gone. I got frustr...

Source: DEV Community
Every time I start a new session with my AI agent, it forgets everything. My preferences, the decisions we made yesterday, the project structure we spent an hour discussing — all gone. I got frustrated enough to build something about it. The problem I use OpenClaw agents daily. The standard workaround is a MEMORY.md file — a big text file loaded at the start of each session. It works until it doesn't: It grows until it eats your context window You have to maintain it manually It doesn't scale to teams. If my colleague's agent learns something, mine has no idea I tried vector databases, SQLite + FTS5, various combinations. They all share the same flaw: memories get injected into the context window once at session start, and then they're just tokens. When context compaction kicks in during a long session, those memories can get summarized away or dropped entirely. What I built ClawMem is a memory plugin for OpenClaw that takes a different approach. The core loop: You talk to your agent n