Repository navigation
memorycard v0.1.0
First public release of memorycard: local-first persistent memory for coding agents.
Coding agents forget everything when a session ends. memorycard gives them a memory they can save to and search by meaning, across sessions and across agents. One Go binary, one SQLite file, no service, no cloud account.
Highlights
- Search by meaning. Dense retrieval with a local
bge-m3embedder through ollama. On 190 held-out natural questions over a real store of 3,400 memories, the right memory is in the top 5 85 % of the time, with a median latency of about 200 ms. - Cheap in context. The six MCP tools cost about 720 tokens; a search returns five results in about 330.
- Never silently degraded. Without the embedder, search falls back to keyword matching and says
mode: lexical. Questions the store knows nothing about are flaggedconfidence: low. - Nothing lost. Notes over 16 KB are stored as numbered parts, never truncated. Saving the same
topic_keyagain updates a memory in place and keeps its previous versions. - One memory per repository. Every agent started in the same repository, worktrees included, shares one project.
- Works with any MCP client: Claude Code, Codex, OpenCode and others.
Install
Download the archive for your platform below, put memorycard on your PATH, then:
ollama pull bge-m3
claude mcp add --scope user memorycard -- memorycard mcp # or see the README for Codex and OpenCodeOr build it with Go:
go install github.com/labdrian-ai/memorycard/cmd/memorycard@latestBinaries are pure Go (no cgo) for Linux, macOS and Windows on amd64 and arm64. Verify downloads with checksums.txt.
Full setup in the README.