Dev-Mem
Local persistent memory that keeps AI coding agents from repeating past mistakes
Dev-Mem is an open-source agent for developer tools. It is available on CLI, VS Code and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, VS Code, Self-hosted
- Listing updated
Similar agents
About Dev-Mem
Dev-Mem gives coding agents such as Claude Code, Codex, Cursor and OpenCode a memory that outlives a single session. While you work, it logs file changes and tool calls locally, then after a session ends it uses one LLM call to turn that log into typed notes covering decisions, failed approaches, constraints and conventions, each linked back to a commit or file.
When a new session starts, or when a prompt is submitted, the stored notes are scored against the working tree and the task text, and the most relevant ones are injected into the agent's context within a token budget. A regression check also warns the agent when it is about to touch files tied to a previously failed approach.
The store lives in a local SQLite database and stays on your machine. Teams can commit a curated shared file so that confirmed decisions and conventions reach every developer's agent.
What it does
- Cross-session memory store
- Decisions, failed approaches and discoveries are saved locally and reused in later sessions.
- Repeated mistake warnings
- Warns the agent before it edits files linked to an approach that already failed.
- Relevance-scored context injection
- Selects stored notes by topic, freshness, confidence and file proximity within a token budget.
- Git-shared team knowledge
- Exports confirmed notes to a deterministic file that teammates import on pull.
- MCP server interface
- Exposes query, regression check, remember and resolve tools over stdio to MCP clients.
- Secret redaction
- Scrubs API keys and credentials from recorded events before they are stored.
Good for
- Stop an agent from re-investigating a bug the previous session already ruled out
- Keep architectural decisions and constraints visible when switching between coding agents
- Share confirmed project conventions with a team through the repository
- Flag edits to files where an earlier attempt failed before they are made
Pricing
Open source
Free and open source under the MIT license; you pay your own LLM API usage.
Dev-Mem FAQ
Does my code leave my machine?
Data is stored in a local SQLite database and event log. The only network use is the LLM call for extraction, which goes to the provider you configure.
Which LLM providers are supported?
Anthropic, OpenAI, Gemini, and any OpenAI-compatible endpoint such as Ollama, Groq, OpenRouter, LM Studio or DeepSeek.
Does Cursor get full session-end extraction?
No. Cursor extraction runs every 10 tool calls by default, and dev-memo wrap flushes remaining events on exit.
What Node.js version is required?
Node.js 22 or newer.
Is Dev-Mem free?
Yes. Dev-Mem is open source, so you can use and self-host it for free.
What are the best alternatives to Dev-Mem?
The closest alternatives to Dev-Mem are Codeium, devika, Github, loopx and Mingle.
Where this comes from
- Description: written from the project's README.


