mem-search by thedotmack/claude-mem
npx skills add https://github.com/thedotmack/claude-mem --skill mem-search在所有会话中搜索过往工作。简单工作流程:搜索 -> 筛选 -> 获取。
当用户询问先前会话(非当前对话)时使用:
切勿未经筛选就直接获取完整详情。可节省 10 倍令牌数。
使用 search MCP 工具:
search(query="authentication", limit=20, project="my-project")
返回: 包含 ID、时间戳、类型、标题的表格(约 50-100 令牌/结果)
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #11131 | 3:48 PM | 🟣 | Added JWT authentication | ~75 |
| #10942 | 2:15 PM | 🔴 | Fixed auth token expiration | ~50 |
参数:
query (string) - 搜索词广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
limit (number) - 最大结果数,默认 20,最大 100project (string) - 项目名称筛选器type (string, optional) - "observations"、"sessions" 或 "prompts"obs_type (string, optional) - 逗号分隔:bugfix、feature、decision、discovery、changedateStart (string, optional) - YYYY-MM-DD 或纪元毫秒dateEnd (string, optional) - YYYY-MM-DD 或纪元毫秒offset (number, optional) - 跳过 N 个结果orderBy (string, optional) - "date_desc"(默认)、"date_asc"、"relevance"使用 timeline MCP 工具:
timeline(anchor=11131, depth_before=3, depth_after=3, project="my-project")
或根据查询自动查找锚点:
timeline(query="authentication", depth_before=3, depth_after=3, project="my-project")
返回: 按时间顺序排列的 depth_before + 1 + depth_after 个项目,围绕锚点交错显示观察记录、会话和提示。
参数:
anchor (number, optional) - 作为中心的观察记录 IDquery (string, optional) - 如果未提供锚点,则自动查找锚点depth_before (number, optional) - 锚点之前的项目数,默认 5,最大 20depth_after (number, optional) - 锚点之后的项目数,默认 5,最大 20project (string) - 项目名称筛选器审查步骤 1 的标题和步骤 2 的上下文。选择相关的 ID。丢弃其余部分。
使用 get_observations MCP 工具:
get_observations(ids=[11131, 10942])
对于 2 个及以上观察记录,务必使用 get_observations - 单次请求对比 N 次请求。
参数:
ids (array of numbers, required) - 要获取的观察记录 IDorderBy (string, optional) - "date_desc"(默认)、"date_asc"limit (number, optional) - 要返回的最大观察记录数project (string, optional) - 项目名称筛选器返回: 完整的观察记录对象,包含标题、副标题、叙述、事实、概念、文件(每个约 500-1000 令牌)
查找最近的错误修复:
search(query="bug", type="observations", obs_type="bugfix", limit=20, project="my-project")
查找上周发生的情况:
search(type="observations", dateStart="2025-11-11", limit=20, project="my-project")
了解某个发现周围的上下文:
timeline(anchor=11131, depth_before=5, depth_after=5, project="my-project")
批量获取详情:
get_observations(ids=[11131, 10942, 10855], orderBy="date_desc")
每周安装量
507
仓库
GitHub 星标数
40.0K
首次出现
2026年2月7日
安全审计
安装于
opencode490
gemini-cli478
codex476
github-copilot453
cursor443
kimi-cli437
Search past work across all sessions. Simple workflow: search -> filter -> fetch.
Use when users ask about PREVIOUS sessions (not current conversation):
NEVER fetch full details without filtering first. 10x token savings.
Use the search MCP tool:
search(query="authentication", limit=20, project="my-project")
Returns: Table with IDs, timestamps, types, titles (~50-100 tokens/result)
| ID | Time | T | Title | Read |
|----|------|---|-------|------|
| #11131 | 3:48 PM | 🟣 | Added JWT authentication | ~75 |
| #10942 | 2:15 PM | 🔴 | Fixed auth token expiration | ~50 |
Parameters:
query (string) - Search termlimit (number) - Max results, default 20, max 100project (string) - Project name filtertype (string, optional) - "observations", "sessions", or "prompts"obs_type (string, optional) - Comma-separated: bugfix, feature, decision, discovery, changedateStart (string, optional) - YYYY-MM-DD or epoch msdateEnd (string, optional) - YYYY-MM-DD or epoch msoffset (number, optional) - Skip N resultsorderBy (string, optional) - "date_desc" (default), "date_asc", "relevance"Use the timeline MCP tool:
timeline(anchor=11131, depth_before=3, depth_after=3, project="my-project")
Or find anchor automatically from query:
timeline(query="authentication", depth_before=3, depth_after=3, project="my-project")
Returns: depth_before + 1 + depth_after items in chronological order with observations, sessions, and prompts interleaved around the anchor.
Parameters:
anchor (number, optional) - Observation ID to center aroundquery (string, optional) - Find anchor automatically if anchor not provideddepth_before (number, optional) - Items before anchor, default 5, max 20depth_after (number, optional) - Items after anchor, default 5, max 20project (string) - Project name filterReview titles from Step 1 and context from Step 2. Pick relevant IDs. Discard the rest.
Use the get_observations MCP tool:
get_observations(ids=[11131, 10942])
ALWAYS useget_observations for 2+ observations - single request vs N requests.
Parameters:
ids (array of numbers, required) - Observation IDs to fetchorderBy (string, optional) - "date_desc" (default), "date_asc"limit (number, optional) - Max observations to returnproject (string, optional) - Project name filterReturns: Complete observation objects with title, subtitle, narrative, facts, concepts, files (~500-1000 tokens each)
Find recent bug fixes:
search(query="bug", type="observations", obs_type="bugfix", limit=20, project="my-project")
Find what happened last week:
search(type="observations", dateStart="2025-11-11", limit=20, project="my-project")
Understand context around a discovery:
timeline(anchor=11131, depth_before=5, depth_after=5, project="my-project")
Batch fetch details:
get_observations(ids=[11131, 10942, 10855], orderBy="date_desc")
Weekly Installs
507
Repository
GitHub Stars
40.0K
First Seen
Feb 7, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode490
gemini-cli478
codex476
github-copilot453
cursor443
kimi-cli437
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
105,000 周安装
Vite Flare Starter:开箱即用的全栈Cloudflare应用模板,集成React 19、Hono、D1
375 周安装
VectorBT + OpenAlgo Python回测环境一键配置指南 | 量化交易开发
375 周安装
Turso数据库测试指南:SQL兼容性、Rust集成与模糊测试方法详解
375 周安装
LLM硬件模型匹配器:自动检测系统配置,推荐最佳LLM模型,支持GPU/CPU/量化
375 周安装
MySQL数据库管理、优化与开发实战指南 - 生产环境技能全解析
375 周安装
Cosmos dbt Core 集成指南:Airflow 中运行 dbt 任务的完整配置清单
376 周安装