Claude-Mem 透過自動捕捉工具使用觀察結果、生成語義摘要,並使其可供未來會話使用,從而無縫地在會話之間保留上下文。這使得 Claude 即使在會話結束或重新連線後,也能保持對專案的知識連續性。
快速開始
在終端機中啟動新的 Claude Code 會話,並輸入以下命令:
> /plugin marketplace add thedotmack/claude-mem
> /plugin install claude-mem
重新啟動 Claude Code。來自先前會話的上下文將自動出現在新會話中。
主要功能:
🧠 持久記憶 - 上下文在會話之間存活
📊 漸進式揭露 - 分層記憶檢索,附帶代幣成本可見性
🔍 基於技能的搜尋 - 使用 mem-search 技能查詢您的專案歷史
🖥️ 網頁檢視器 UI - 即時記憶串流,位於 http://localhost:37777
💻 Claude Desktop 技能 - 從 Claude Desktop 對話中搜尋記憶
🔒 隱私控制 - 使用 標籤排除敏感內容不被儲存
⚙️ 上下文配置 - 精細控制注入哪些上下文
🤖 自動操作 - 無需手動干預
🔗 引用 - 使用 ID 引用過去的觀察結果(透過 http://localhost:37777/api/observation/{id} 存取,或在網頁檢視器 http://localhost:37777 中查看全部)