# Dev-Mem

> Dev-Mem is an open-source agent for developer tools. Local persistent memory that keeps AI coding agents from repeating past mistakes. It is available on CLI, VS Code and Self-hosted.

- **Kind:** Agent
- **Pricing:** Open source
- **Platforms:** CLI, VS Code, Self-hosted
- **Repository:** https://github.com/harsh-1877/dev-mem
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-27

## About

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.

## Features

- **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

## 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.

## Alternatives

- [Codeium](https://ai-powered.com/agents/codeium): Codeium is a freemium hosted agent for generative code.
- [devika](https://ai-powered.com/agents/devika): devika is an open-source agent for coding.
- [Github](https://ai-powered.com/agents/github-2): Github is an open-source agent for developer tools.
- [loopx](https://ai-powered.com/agents/loopx): loopx is an open-source agent for developer tools.
- [Mingle](https://ai-powered.com/agents/mingle): Mingle is an open-source agent for communication.
- [redcat](https://ai-powered.com/agents/redcat): redcat is an open-source agent for developer tools.
- [Sandscale](https://ai-powered.com/agents/sandscale-2): Sandscale is a freemium hosted agent for developer tools.
- [AgentPilot](https://ai-powered.com/agents/agentpilot): AgentPilot is a freemium open-source agent for ai models and llm tooling.

---
Source: https://ai-powered.com/agents/dev-mem
