Claude-Mem: Persistent Long-Term Memory for AI Coding Agents Thedotmack has released claude-mem, an open-source memory compression and retrieval engine that gives AI coding assistants persistent long-term memory across terminal sessions. The tool passively monitors developer interactions, extracts semantic summaries of bug fixes and architectural decisions, and primes future agent sessions with relevant context to prevent context fragmentation. One of the most persistent hurdles in working with command-line AI coding assistants such as Claude Code, Antigravity CLI, and OpenCode is context fragmentation across sessions. When a developer ends a terminal session, the agent's working context is wiped clean. The next day, the developer must re-explain architectural decisions, project conventions, and previously resolved edge cases. claude-mem is an open-source memory compression and retrieval engine created by thedotmack. It passively monitors developer interactions, compresses key discoveries into structured observations, and seamlessly primes future agent sessions with relevant context. claude-mem operates as an intelligent background memory worker. Rather than dumping raw conversation transcripts into future prompt windows—which rapidly drains token budgets— claude-mem extracts semantic summaries of bug fixes, architectural choices, and dependency discoveries. When a new session starts, the agent queries its memory database to recall pertinent project history before writing code. claude-mem hooks into five critical lifecycle stages SessionStart, UserPromptSubmit, PostToolUse, Stop, and SessionEnd . It documents what worked, what failed, and why, without requiring manual intervention from the engineer. To preserve context window capacity, claude-mem implements a tiered retrieval model: Search queries leverage both lexical matching and vector similarity. Whether an engineer searches for an exact error string or asks conceptually about "how auth tokens are signed," the engine finds the corresponding record. The engine includes a lightweight local web dashboard displaying active memory streams. Developers can inspect, edit, or remove stored observations, or wrap proprietary strings in