GitHub radar

OptMem: Permanent Memory for AI Agents

OptMem is a 426-token prompt block and a dependency-free Python script that gives any AI agent persistent memory across sessions, model changes, and context compactions.

01VictorTaelin/OptMem 444Python

OptMem is a permanent memory layer for AI agents: a 426-token system-prompt block and a single dependency-free Python script that stores memories in a local binary tree. Installation is one curl command; integration means pasting one block into CLAUDE.md or AGENTS.md. It went viral because it solves a core frustration — agents losing all context between sessions — with a minimal, vendor-agnostic design.

Why a vibe-coder should care

With OptMem your agent remembers decisions, preferences, and past conversations across any number of sessions, model updates, and context resets. You tell it something once — it keeps it, even if you switch models later.

Open on GitHub