Stop paying your AI agent to re-learn your codebase
File-anchored memory for coding agents, built on SQLite. No embeddings API, no cloud. Every new session with a coding agent starts cold. It re-reads the files it read yesterday, asks again which test command to run, and rediscovers that the Stripe webhook needs the raw request body, a decision you already explained. You pay for all of it, every session. amem is an open-source memory layer for…
amem is an open-source memory layer for coding agents like Claude Code, Cursor, Codex, Windsurf, Copilot, Gemini CLI, and Grok. It keeps the agent's knowledge in a SQLite file on your machine, eliminating the need for re-reading files or re-asking questions every session. amem stores short facts tied to source files, such as Stripe webhook verification rules, and records content hashes of these files.
If a file changes, amem flags the related facts as stale, preventing the agent from following outdated rules. Two additional tools maintain memory integrity: supersession and expiry. Supersession allows new decisions to retire old ones, while expiry sets a TTL (time-to-live) for debugging notes and incident context, causing them to drop out of recall after a set time. amem uses SQLite FTS5 with BM25 over facts, skills, and tasks for retrieval, ensuring efficient and accurate information retrieval without an embeddings API.
The system ranks memory results based on recency, usage frequency, pins, and task status, blended with relevance. amem automatically excludes prompts without a specified topic, saving tokens and improving retrieval efficiency. The package allows users to measure memory performance through a CI benchmark and provides a user-friendly browser demo and installation instructions for various coding agents.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to