← All repos

OptMem

Permanent memory for AI agents. A 426-token prompt, a script, plug and play.

Browse cluster: Functional Programming & Type Theory
42commits
4contributors
4languages

Tech stack & purpose

OptMem is a permanent memory system for AI agents built as a single Python 3 script with no dependencies. It provides plug-and-play integration through a 426-token prompt that agents paste into their instructions, enabling them to record, search, and manage memories across sessions using commands like `memo wake`, `memo note`, and `memo recall`. The tool organizes memories in an append-only log and a hierarchical binary tree of summaries for efficient compression and retrieval, with records stored at fixed positions for fast lookups even at scale. Created by Victor Taelin, OptMem is designed to solve the problem of persistent identity and decision-tracking for AI agents across model changes and vendor transitions.

Languages

Python
62.8%
JavaScript
33.4%
HTML
3.1%
Shell
0.7%

Contributors