Capabilities
Memory is built around a small loop: build the product graph once, query it on demand, save product-meaningful changes, and reconcile at session end. Every command serves one of those jobs or helps a human inspect and repair storage.
Build the graph
Section titled “Build the graph”memory initmemory init --briefinit creates .memory/ storage, installs the guidance block and generated
product map into AGENTS.md/CLAUDE.md, starts the viewer, and prints the
indexing brief. The brief is the agent’s instructions for the initial graph:
explore the repo, interview the user for intent and stage, save once.
--brief reprints it any time.
Query on demand
Section titled “Query on demand”memory query "why do webhook retries run in the worker?"memory query "state of batch exports" --budget 1200memory inspect feature.batch-exportsqueryreturns a token-budgeted Markdown subgraph: full-text matches, their one-hop relations, and connected open questions.inspectopens one node and its direct relations.
There is no per-task loading step. The product map in the agent instruction files is the always-on overview; everything deeper is a query away.
Save product changes
Section titled “Save product changes”memory save --stdinmemory save --stdin --dry-runsave takes intent JSON — {task, nodes, stale, supersede, delete} — and
validates it into graph writes. Update existing nodes by id; retire wrong
memory with stale, supersede, or delete instead of duplicating. Every
save refreshes the product map.
Keep it honest
Section titled “Keep it honest”memory syncmemory sync --dry-runmemory statusmemory status --allmemory checksyncis the session-end ritual: diff-driven anchor verification, a report of changed/orphaned/unanchored nodes and coverage gaps, and a pre-filled save skeleton when reconciliation is needed.statussummarizes features by stage, open questions, stale anchors, and last activity.status --allis the cross-project dashboard.checkvalidates storage and warns about dead anchors and out-of-date product map sections.
Human inspection
Section titled “Human inspection”memory view --openmemory diffmemory projects listmemory docsview starts the local browser viewer: projects dashboard, memory list, node
detail, and the relation graph. diff shows tracked and untracked .memory/
changes. projects manages the user-level registry behind status --all and
the viewer. docs prints bundled docs topics or opens the hosted site.
Repair and recovery
Section titled “Repair and recovery”memory rebuildmemory resetmemory reset --allrebuildrecreates the generated index from canonical files.resetbacks up storage to.memory/.backup/and clears it;reset --alldoes it for every registered project. After a breaking package upgrade, the recovery path ismemory resetthenmemory init— there is no storage migration pre-1.0.
MCP covers query, save, status, and inspect when your client launches
memory-mcp. Init, sync, viewer, registry, and maintenance stay in the CLI.
See the MCP guide and Reference.