hn.today

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

github.com8 points0 comments
Screenshot of Show HN: Dev-Mem – Local-first SQLite knowledge graph for AI coding agents

Dev-Mem is a local-first memory system for AI coding agents, designed to preserve useful project context across sessions and across tools such as Claude Code, Codex, Cursor, and OpenCode. It captures decisions, failed approaches, constraints, and discoveries from development activity, then uses an LLM to extract them into a SQLite knowledge graph. At the start of later sessions, hooks retrieve relevant items and supply them to the agent, aiming to prevent repeated investigations and mistakes. The central claim is that coding agents can work more consistently when project knowledge persists beyond their conversation history, without relying on a hosted memory service.

Installation uses Node.js 22 or later, an existing supported agent setup, and an API key for an extraction provider; OpenAI-compatible local services such as Ollama are also supported. A command-line tool installs agent-specific hooks, checks configuration, queries or inspects stored knowledge, and manages extraction and cleanup. The SQLite database and raw event logs remain on the developer’s machine and are gitignored. Teams can optionally share curated, active or verified knowledge through a deterministic `.dev-mem/shared.jsonl` file committed to Git; teammates import updates at session start. Cursor’s unreliable session-ending event is handled with periodic extraction or a wrapper command that flushes remaining events. The design therefore separates private, transient observations from confirmed knowledge suitable for team sharing.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in AI

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.