dev-memo
Local memory store for AI coding agents
TLDR
SYNOPSIS
dev-memo command [arguments]
DESCRIPTION
dev-memo keeps a SQLite knowledge store for coding agents such as Claude Code, Codex, Cursor, and OpenCode. The npm package name and the command name are both `dev-memo`. init wires hooks and an MCP server, then seeds the store from Git reverts and from files such as `AGENTS.md` and `CLAUDE.md`. Later sessions can search that store and warn when an edit touches a path tied to an earlier failed approach.The database stays on the local machine. Extraction uses an agent CLI that is already logged in, or an optional API key or a local Ollama server. There is no background daemon.
CONFIGURATION
.dev-mem/
Per-repository store. `shared.jsonl` and `MEMORY.md` are the files sync writes for Git.Agent MCP config is written into the project's MCP configuration files, including `.mcp.json` for Claude Code.
SUBCOMMANDS
init [agent...]
Detect installed agents, register the MCP server, and seed memories from Git history and repository rule files. --no-mcp and --no-bootstrap skip those steps.install [agent...]
Install agent hooks. Running it again is safe.bootstrap
Mine Git reverts and rule files. --from reads an extra notes file. --claude-memory reads Claude memory files.status
Show whether the store and hooks are in place.doctor
Check the local setup. --live probes the extraction backend.stats
Print store counts. --json prints JSON.view
Inspect the graph. --open opens it.list
List memories. --state and --type filter the list.search text
Search stored memories.query text
Retrieve memories relevant to a prompt.review
Walk pending memories.inspect id
Show one memory. Short ids from list and search are accepted.approve id
Accept a pending memory.edit id
Change a memory's title or content.forget id
Drop a memory. --reason records why.sync
Write `.dev-mem/shared.jsonl` and `.dev-mem/MEMORY.md` so the store can be committed.export
Write markdown projections. --md and --agents-md select formats.pr-context
Comment context for a pull request. --base and --head select the range.wrap command
Run another agent command and record the session.extract session-id
Extract memories from one session.prune
Drop memories that no longer meet the store's retention rules.mcp
Serve the store over MCP.uninstall
Remove hooks. --purge also deletes the local store.
CAVEATS
init edits hook and MCP configuration in the repository. Review that diff before committing it. Memories can contain details from the sessions they were extracted from; the tool redacts some secrets and still deserves a look before those files are pushed.
