memory.cpp helps your repo remember what happened, why it changed, and what to do next.
This page gets you from a fresh checkout to a local project map and daily recap in five minutes.
From the repo root:
./scripts/install.shOn Windows PowerShell:
./scripts/install.ps1If you do not want to install globally yet, replace memory with cargo run -p memory-cli -- in every command below.
memory welcome
memory setup --developerWhat happens:
.memory.cpp/is created in this repo..memory.cpp/memory.dbbecomes the local SQLite memory file..memoryignoreis created if it does not exist.- A workspace is created for the repo.
- The setup prints detected tools such as Git, README, docs, CI config, package manager, Cursor, Claude, VS Code, and Ollama.
For a guided prompt-by-prompt flow:
memory setup --interactiveFor a private/offline setup:
memory setup --private --offlinememory what
memory where
memory privacy statusExpected shape:
What memory.cpp does
memory.cpp helps your repo remember what happened, why it changed, and what to do next.
Where memory.cpp keeps data
Database: .memory.cpp/memory.db
Config: .memory.cpp/memory-config.json
Nothing is uploaded to a cloud service by these commands.
memory demo seed --workspace demo --path .
memory show-map --workspace demo --save .memory.cpp/demo/evolution.htmlWhat this does:
- stores sample decisions, bugs, fixes, workflow notes, and launch tasks
- queues a sample candidate for review
- generates a self-contained HTML project evolution map
memory dev morning --workspace demo
memory dev resume "MCP integration" --workspace demo
memory dev explain-repo . --workspace demo
memory next --workspace demoThese commands answer:
- What was I doing?
- What changed recently?
- What broke?
- What did I plan to do next?
- What should I work on now?
memory show-inbox --workspace demo
memory inbox stats --workspace demo
memory inbox explain <candidate-id>A candidate is a suggested memory that needs human approval before becoming durable memory.
memory show-context --workspace demo
memory dev context --for cursor --workspace demo
memory dev context --for codex --workspace demo
memory dev context --for claude --workspace demoThe output is a clean context block with repo summary, recent decisions, important files, commands to run, known pitfalls, and source citations.
memory doctor --workspace demodoctor checks database health, schema readability, workspace status, MCP safety defaults, Cursor/Claude/Ollama signals, proxy port availability, Git status, map export support, runtime state, and smoke-test hints.
memory privacy purge --yesOr remove the local folder yourself:
rm -rf .memory.cppPowerShell:
Remove-Item -Recurse -Force .memory.cppYou created a local memory store, reviewed where it lives, generated a project map, asked for a daily recap, and produced AI assistant context. The repo now has a small local memory layer without requiring a hosted service.