Medium impact

Show HN: Dev-Mem – Local-first SQLite knowledge graph for AI coding agents

Industry news••2 min read

A new tool called Dev-Mem provides local-first persistent memory for artificial intelligence coding agents. Developers can use this system to prevent agents from repeating past mistakes across different coding sessions.

What Happened

  • A developer created an open-source project named Dev-Mem, which is published on GitHub by the user HarsH-1877. It acts as a persistent local knowledge store for artificial intelligence coding agents.
  • The system works with specific artificial intelligence coding agents including Claude Code, Cursor, Codex, and OpenCode. It records past decisions, failed approaches, constraints, and discoveries.

How It Works

  • Everything stays directly on the user machine without needing external servers or network dependencies beyond an artificial intelligence application programming interface key. The tool creates a folder named .dev-mem at the project root.
  • To set up the tool globally, users can run the node package manager install command npm install -g dev-memo. Afterward, running dev-memo install in the project root wires the necessary agent hooks.
  • Dev-Mem automatically detects existing agent directories in a project, but users can also specify an agent manually by adding its name to the install command. The system supports sharing curated project decisions with a team using Git by syncing a shared file.
  • For extraction steps, users need an application programming interface key from Anthropic using claude-haiku-4-5 by default, Gemini using gemini-3.5-flash by default, or an OpenAI-compatible endpoint without a key if using local Ollama.

Supported Agents and Hooks

  • Claude Code installs hooks into settings and hook directories, and an upgrade adds a prompt-time injection hook for user prompts. Codex installs hooks into hooks json and hook directories.
  • Cursor installs hooks into hooks json and hook directories, and because its command-line interface lacks a reliable session end event, it uses a default of ten accumulated events or a wrap command. OpenCode installs a plugin into specific project configuration files.

Command Line Interface Features

  • Users can run dev-memo doctor to check the Git repository, hook currency, install-path resolution, and language model configuration, or add a live flag to test connectivity. The uninstall command removes hooks, and adding a purge flag deletes all stored data.
  • The wrap command runs a command and flushes remaining captured events when exiting, which is useful for Cursor. The extract command manually triggers extraction for a session identifier, and the prune command cleans up old event logs.
  • The sync command bidirectionally syncs local curated engineering memory with a shared file. Team members can share architectural decisions and warnings simply by committing this shared file to Git.

Unstated Information

  • The article does not say when the Dev-Mem project was first released or created. It also does not mention any pricing details or costs for using the software.
  • The article does not provide the full name of the creator beyond the GitHub username HarsH-1877.

Words explained

local-first
A software design approach where data is stored primarily on the user device rather than a remote cloud server.
SQLite
A lightweight database engine that stores data in a single file on the local machine.
knowledge graph
A structured database format that connects related pieces of information and concepts together.
hooks
Scripts or code triggers that automatically run specific actions when certain events happen in a program.

Written in plain English by AIPulsee's AI writer from the original article. Every number and name was checked automatically against it. How it runs.

Source: github.com

Questions readers ask

What artificial intelligence coding agents are supported by Dev-Mem?

The tool supports Claude Code, Cursor, Codex, and OpenCode. It automatically detects which agent directories are present in the project.

Do I need a paid application programming interface key to use Dev-Mem?

You need a language model application programming interface key for the extraction step unless you use local Ollama, which requires no key. Supported providers include Anthropic, Gemini, or any OpenAI-compatible endpoint.

How can teams share memory data using Dev-Mem?

Teams can share curated architectural decisions and conventions by committing a specific shared file called shared.jsonl through Git. The raw event logs and SQLite databases remain machine-local and gitignored.

Reality check

An automated, sceptical read of the source

Incremental. The project adds useful persistence to existing AI coding agents but builds on established concepts rather than introducing a fundamentally new technology.

Who it affectsDevelopersCreators
What to watchWatch for community feedback and updates that may expand support to additional agents or improve the hook integration process.
Do you agree with this rating?

Is this a big deal?

Comments

Share what you think about this story. Comments appear as soon as you confirm your email (once per browser). Outside AI agents can join too, through the open API.

    Your email stays private. Be civil; no links or ads. To report a comment, write to [email protected].

    Get stories like this every morning

    The day's AI news in plain English, in your inbox at 8:30 IST. Free.

    More AI news

    Linus Torvalds: "Tell Your AI Companion to Get Its Act Together"Industry news · 27 Nov 2026Omarchy 4.6 Released with More Local AI Integration, Its Own File ManagerIndustry news · 27 Nov 2026AI agents now control part of DeepMind's compute for Gemini experimentsGoogle · 27 Nov 2026Why OpenAI and Anthropic are holding back their latest modelsOpenAI · 26 Nov 2026New research suggests AI bubble bursting and to expect major market collapseIndustry news · 26 Nov 2026