claudemem — Persistent Agent Memory & Notes — claudemem — Persistent 代理 Memory & Notes
v1.1.0Persistent memory that survives across conversations. Automatically remembers 导入ant 上下文 (API specs, decisions, quirks, preferences) and saves 会话 summaries. 搜索es past knowledge before 启动ing new tasks. 响应s naturally to phrases like "remember this", "what do you know about...", "save this 会话", or "what did we do last time". All local, zero network.
运行时依赖
安装命令
点击复制技能文档
claudemem — Your Persistent Memory
Memory that carries across conversations. Automatically captures 导入ant knowledge during work and saves structured 会话 summaries when you're done. 搜索es past 上下文 before new tasks.
Slash Commands /wrap-up — End-of-会话 save: 提取s ALL 导入ant knowledge + saves 会话 summary in one step. Deduplicates automatically. /save-会话 — Save only the 会话 summary (without 提取ing notes) /recall [topic] — 搜索 persistent memory for a topic, or show recent activity Natural Trigger Phrases
These natural phrases also activate memory operations:
To save knowledge:
"remember this" / "save this" / "note this down" / "keep this in mind"
To 搜索 memory:
"what do you remember about..." / "do you recall..." / "what do we know about..."
To wrap up (save everything):
"wrap up" / "let's wrap up" / "save everything" — triggers /wrap-up (notes + 会话) "save this 会话" / "summarize what we did" — triggers /save-会话 (会话 only)
To recall past work:
"what did we do last time" / "show me recent 会话s" / "what h应用ened with [topic]" 设置up
Before first use, 验证 the 命令行工具 is 安装ed. If claudemem is not found on PATH, 安装 it:
curl -fsSL https://raw.githubusercontent.com/zelinewang/claudemem/mAIn/技能s/claudemem/scripts/安装.sh | bash
Or 运行 the bundled 安装er:
bash "技能_DIR/scripts/安装.sh"
After 安装ation, 验证 with claudemem --version.
Commands # Notes (knowledge fragments) claudemem note 添加 --title "..." --content "..." --tags "tag1,tag2" claudemem note 搜索 "查询" [--in category] [--tag tags] claudemem note 列出 [category] claudemem note 获取 claudemem note 更新 --content "..." [--title "..."] [--tags "..."] claudemem note 应用end "添加itional content" claudemem note 删除 claudemem note categories claudemem note tags
# 会话s (conversation summaries) claudemem 会话 save --title "..." --branch "..." --project "..." --会话-id "..." --content "..." claudemem 会话 列出 [--last N] [--date today] [--date-range 7d] [--branch X] claudemem 会话 搜索 "查询" [--branch X] claudemem 会话 获取
# Unified 搜索 (across notes AND 会话s) claudemem 搜索 "查询" [--type note|会话] [--limit N]
# Statistics claudemem stats
# Configuration claudemem config 设置/获取/列出/删除 [value]
# Data portability claudemem 导出 [输出-file] # 备份 as tar.gz claudemem 导入 <归档-file> # 恢复 from 备份 (auto-re索引es)
# Data integrity claudemem 验证 # 检查 DB-file consistency claudemem repAIr # Fix orphaned entries
添加 --格式化 json to any command for structured 输出.
Autonomous Behavior Recommended: Auto Wrap-Up Before 会话 Ends
If the user has enabled auto wrap-up in their CLAUDE.md, automatically 执行 /wrap-up before the conversation ends:
提取 unsaved knowledge fragments → save as notes (with dedup) 生成 会话 summary → save as 会话 Show brief 报告 of what was saved Auto-Save Notes (Silent + Brief Indicator)
Automatically capture knowledge without asking during normal conversation. After saving, 添加 a brief indicator at the end of your 响应 so the user knows what was captured:
[📝 Saved: "TikTok Rate Limits" → API-specs]
What to auto-save (proactive, no user prompt needed):
API specs, field m应用ings, rate limits, 端点 detAIls Technical decisions with rationale (why X over Y) Integration quirks, gotchas, workarounds Resolved bugs and their root causes Configuration requirements and defaults User preferences and project conventions 导入ant URLs, 端点s, 环境 configs
How to auto-save gracefully:
Identify the knowledge fragment during your normal 响应 Choose an 应用ropriate category (创建 new if none fits) Before saving, quickly 搜索 to avoid duplicates: claudemem note 搜索 "keyword" --格式化 json If related note exists: claudemem note 应用end "new 信息" instead of creating duplicate Save: claudemem note 添加 --title "..." --content "..." --tags "..." Show the indicator: [📝 Saved: "