Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

claude-mem 0.4.2 hands-on test: useful recall with unfinished edges

AI summary

A Juejin author tested a main-branch build identified as claude-mem 0.4.2 on an M2 MacBook Air with 16GB of memory and Python 3.11.6. Installation and version checks succeeded, but the first write raised a KeyError because the SQLite schema migration had not fully run; manual migration resolved it. The author then imported 60 debugging records. A query about a repeated payment callback produced the correct result as the top semantic match with a similarity score of 0.83, while a query involving a specific date did not match directly. Single-record writes took 1.8 seconds, 20 records took 36 seconds, and retrieval took roughly 200 milliseconds at that dataset size. The author also reported that piped CLI input hung for two minutes and used a Python script with MemoryStore.add() to import the 60 records; the report also identifies the --file option as another route around piped input.

In-depth insight

The report gives AI developers a concrete, first-hand account of claude-mem 0.4.2’s schema migration issue, non-TTY CLI behavior, write performance and semantic retrieval results. Its findings come from one local test of a main-branch build, so they provide practical guidance but not broad verification.

上周三下午,我花了两小时把 claude-mem 从 clone 到跑通,中间崩了两次、重装一次 Python 环境。这篇不聊它 README 里那些漂亮的架构图,只说我实际敲了哪些命令、卡在哪、最后跑出来什么效果。如果你也在观望这个项目,可以先看完再决定要不要动手。

先说清楚我到底装了什么

我拉的是 claude-mem 主分支,commit 停在 3 天前那个版本,pip show 出来是 0.4.2。机器是 M2 MacBook Air,16G 内存,Python 3.11.6。安装流程本身不复杂:先 git clone 仓库,进目录建 venv,然后 pip install -e .,最后跑一遍 python -m claude_mem.cli init 初始化本地存储。这一步它会问你记忆库放哪,我默认用了 ~/.claude-mem,没改。整个 pip 安装大概花了 90 秒,依赖里有个 sentence-transformers 会顺带拉 torch,光这一项就占了 1.2G 磁盘。init 阶段它要下载一个 embedding 小模型,约 80MB,我这网络等了 40 秒左右。装完之后 claude-mem --version 能正常回显,说明环境没问题。真正开始踩坑是在第一次让它“记东西”的时候。

#claude-mem 0.4.2#SQLite#sentence-transformers#PyTorch

Original · 4 min readRead the original
Group chat

No comments yet. Start the conversation.