AI product Open source
OptMem is a permanent-memory tool for AI agents. It installs as a dependency-free Python 3 script and integrates through a prompt block added to an agent's AGENTS.md or CLAUDE.md file.
The agent uses `memo wake` at session startup, `memo note` to append one-line memories, `memo recall` for exact regular-expression searches, and `memo zoom` to navigate summaries. Raw memories are stored in an append-only `LOG.txt`; a binary tree of one-line summaries provides a compact reading view, with summaries rebuilt when needed. `memo nap` processes due merges, while `memo forget` discards a summary so the next nap can rebuild it. Memory can be kept in a configurable directory such as a synced folder or Git repository, and the system is designed to persist across sessions, context compaction, models, and vendors.
1 use taken from transcripts — each links to the moment in the video.
An agent-memory system that persists across sessions, context compaction, and model swaps using append-only text files and shell commands. A binary merge tree of summaries provides a fixed-size view while preserving recent memories verbatim.
1 in the library.