搜索

PythonReactSEOPDF
GitHub Skill

mem-search

Search through past session context and observations. Use when asking about past work, previous implementations, how something was done before, or recalling decisions. Keywords: remember, recall, last time, before, history, what did we, how did we

PedroGiudice☆ 1 仓库 Stars1 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Memory Search - Cross-Session Context

Overview

Search through stored observations from past Claude Code sessions. Use this skill when the user asks about:

  • "What did we do last session?"
  • "How did we implement X before?"
  • "What bugs did we fix recently?"
  • "What decisions were made about Y?"
  • "Show me recent work on this project"

How to Use

Run the search command to query the context memory database:

python3 "$CLAUDE_PROJECT_DIR/.claude/memory/context_memory.py" search "<query>"
Common Queries

Recent activity:

python3 "$CLAUDE_PROJECT_DIR/.claude/memory/context_memory.py" recent

Search for specific topic:

python3 "$CLAUDE_PROJECT_DIR/.claude/memory/context_memory.py" search "authentication"

Get statistics:

python3 "$CLAUDE_PROJECT_DIR/.claude/memory/context_memory.py" stats

Get full context for current branch:

python3 "$CLAUDE_PROJECT_DIR/.claude/memory/context_memory.py" context "branch-name"

Observation Types

The memory stores these types of observations:

Type Symbol Description
decision D Choices made about architecture, tools, approaches
bugfix B Bug fixes and error resolutions
feature F New features implemented
refactor R Code refactoring and cleanup
discovery i Information discovered during exploration
change C General code changes

Database Location

The context memory is stored at: ~/.claude/context_memory.duckdb

Response Format

When presenting search results:

  1. Group by type (decisions, bugfixes, features, etc.)
  2. Show most recent first
  3. Include timestamp and branch if relevant
  4. Summarize rather than dump raw data

Example Response

"Based on context memory, here's what happened:

Recent Decisions:

  • [2 days ago] Chose DuckDB over SQLite + Chroma for context storage
  • [3 days ago] Adopted tiered context injection strategy

Recent Bugfixes:

  • [Yesterday] Fixed authentication timeout in API routes

Recent Features:

  • [Today] Implemented context memory hooks"

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!