用 Claude Code 最烦的一件事是,每次开新会话,之前聊过的项目背景、踩过的坑、你的代码风格全忘了,得重头解释。
有人做了个叫 claude-mem 的插件,会话结束时自动把上下文压缩存进本地数据库,下次开会话时再自动注入回来。
效果是每个 session 的 token 消耗减少 95%,能调用的工具次数多出 20 倍。
装起来就一行,在 Claude Code 里输入:
/plugin marketplace add thedotmack/claude-mem
跑起来之后自带一个本地 Web 界面可以查所有历史记忆。GitHub 3.8 万 star,免费开源。
https://t.co/ecB8QG4zLR
From X
Disclaimer: The above content reflects only the author's opinion and does not represent any stance of CoinNX, nor does it constitute any investment advice related to CoinNX.

