L
labdrian-ai/memorycard
Local-first persistent memory for coding agents: one Go binary, SQLite, MCP, dense retrieval
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
安装与配置
取自该仓库的安装命令
go install github.com/labdrian-ai/memorycard/cmd/memorycard@latest
解析自我们于 2026-10-28 抓取的该仓库 README;我们未执行过。
这条是仓库自己写的安装方式,不是 MCP 客户端配置,所以不生成 JSON。
配置项的键名以你的客户端为准:客户端与 CLI
- ★ 数取值
- 0 ★ · labdrian-ai/memorycard · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
- 收录与活跃
- 收录于 2026-10-28 · 最近见到 2026-11-14 · 共见到 19 次 · 被 1 个来源列出
- 评分构成
- 综合分 103 · 1 个来源 · repo
- 安装
go install github.com/labdrian-ai/memorycard/cmd/memorycard@latest
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是
go install github.com/labdrian-ai/memorycard/cmd/memorycard@latest。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
labdrian-ai/memorycard;我们收录于 2026-10-28;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。# memorycard
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Local-first persistent memory for coding agents. One Go binary, one SQLite file,
six MCP tools, dense retrieval with a lexical fallback.
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, without a service or a cloud account. It speaks MCP, so it works with
Claude Code, Codex, OpenCode and any other MCP client.
Status: v0.1, episodic memory (decisions, fixes, discoveries, session summaries).
## Why
Cheap in tokens. The six tool definitions cost about 720 tokens (budget
1,500). A default search returns about 330 tokens for five results.
Finds what you mean. Retrieval is dense (bge-m3 through a local
ollama), not keyword matching. On 190 held-out natural
questions over a real 3,400-memory store: hit@5 85 %, hit@1 65 %, median
latency about 200 ms.
Never silently degraded. If the embedder is down, search falls back to
BM25 and says mode: lexical. Notes over 16 KB are saved as numbered parts
of about 12 KB, never truncated; saving the same topickey again updates
the parts in place.
Honest about confidence. confidence: low flags results for questions
the store knows nothing about. It cannot tell whether related memories hold
the exact fact asked for (no retrieval score separates those cases), so the
agent reading the results decides that.
No services. Pure-Go SQLite (no cgo), no daemon, no network except the
local embedder.
## Install
Download the archive for your platform from
Releases and put
memorycard on your PATH, or build it with Go:
sh
go install github.com/labdrian-ai/memorycard/cmd/memorycard@latest
Then pull the embedding model into a local ollama.
Without it memorycard still works, with keyword search only.
sh
ollama pull bge-m3
## Try it
sh
memorycard save --title "Auth model" --body "Signed tokens, 15 min expiry"
memorycard search "how do sessions expire"
## Connect your agent
memorycard serves its tools over stdio with memorycard mcp.
Claude Code:
sh
claude mcp add --scope user memorycard -- memorycard mcp
Codex (~/.codex/config.toml):
toml
[mcpservers.memorycard]
command = "memorycard"
args = ["mcp"]
OpenCode (opencode.json):
json
"mcp": {
"memorycard": { "type": "local", "command": ["memorycard", "mcp"] }
MCP tools: memsave, memsearch, memget, memupdate, memcontext,
memsession. Diagnostics (stats, embed, import, version) live in the
CLI.
Agents use memory best when told when to save and search. A line like this in
your agent instructions (CLAUDE.md, AGENTS.md) is enough to start:
> Search memorycard before starting work that may have been done before. After
> a decision, a bug fix or a non-obvious discovery, save it with memsave.
## Configuration
| Variable | Meaning |
| MEMORYCARDDB | database path |
| MEMORYCARDPROJECT | project name; if unset it is resolved as: a .memorycard file (first line) in the directory or above, the git origin remote name, the git root name, the directory name. Every agent started inside the same repository, worktrees included, shares one project |
six MCP tools, dense retrieval with a lexical fallback.
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, without a service or a cloud account. It speaks MCP, so it works with
Claude Code, Codex, OpenCode and any other MCP client.
Status: v0.1, episodic memory (decisions, fixes, discoveries, session summaries).
## Why
Cheap in tokens. The six tool definitions cost about 720 tokens (budget
1,500). A default search returns about 330 tokens for five results.
Finds what you mean. Retrieval is dense (bge-m3 through a local
ollama), not keyword matching. On 190 held-out natural
questions over a real 3,400-memory store: hit@5 85 %, hit@1 65 %, median
latency about 200 ms.
Never silently degraded. If the embedder is down, search falls back to
BM25 and says mode: lexical. Notes over 16 KB are saved as numbered parts
of about 12 KB, never truncated; saving the same topickey again updates
the parts in place.
Honest about confidence. confidence: low flags results for questions
the store knows nothing about. It cannot tell whether related memories hold
the exact fact asked for (no retrieval score separates those cases), so the
agent reading the results decides that.
No services. Pure-Go SQLite (no cgo), no daemon, no network except the
local embedder.
## Install
Download the archive for your platform from
Releases and put
memorycard on your PATH, or build it with Go:
sh
go install github.com/labdrian-ai/memorycard/cmd/memorycard@latest
Then pull the embedding model into a local ollama.
Without it memorycard still works, with keyword search only.
sh
ollama pull bge-m3
## Try it
sh
memorycard save --title "Auth model" --body "Signed tokens, 15 min expiry"
memorycard search "how do sessions expire"
## Connect your agent
memorycard serves its tools over stdio with memorycard mcp.
Claude Code:
sh
claude mcp add --scope user memorycard -- memorycard mcp
Codex (~/.codex/config.toml):
toml
[mcpservers.memorycard]
command = "memorycard"
args = ["mcp"]
OpenCode (opencode.json):
json
"mcp": {
"memorycard": { "type": "local", "command": ["memorycard", "mcp"] }
MCP tools: memsave, memsearch, memget, memupdate, memcontext,
memsession. Diagnostics (stats, embed, import, version) live in the
CLI.
Agents use memory best when told when to save and search. A line like this in
your agent instructions (CLAUDE.md, AGENTS.md) is enough to start:
> Search memorycard before starting work that may have been done before. After
> a decision, a bug fix or a non-obvious discovery, save it with memsave.
## Configuration
| Variable | Meaning |
| MEMORYCARDDB | database path |
| MEMORYCARDPROJECT | project name; if unset it is resolved as: a .memorycard file (first line) in the directory or above, the git origin remote name, the git root name, the directory name. Every agent started inside the same repository, worktrees included, shares one project |
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/labdrian-ai-memorycard/)
- 来源
- github · https://github.com/labdrian-ai/memorycard
- 按领域浏览
- 开源项目
- 收录于
- 今天
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。