mem-search

Search past session observations stored in a local DuckDB memory store.

5|3|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/PedroGiudice/Claude-Code-Projetos --skill mem-search-pedrogiudice
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mem-search
Source: https://github.com/PedroGiudice/Claude-Code-Projetos/tree/main/.claude/skills/mem-search
Command: npx skills add https://github.com/PedroGiudice/Claude-Code-Projetos --skill mem-search-pedrogiudice

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you locate information from past Claude Code sessions by searching the memory context. It is ideal for recalling decisions, implementations, bugs, or any important observations from earlier work.

Core Features & Use Cases

  • Cross-session recall: Find what was decided, implemented, or fixed in previous sessions.
  • Topic-based search: Query for terms like “authentication”, “branch-name”, or “history” to surface relevant context.
  • Stats and context: Retrieve statistics about memory and full context for a given branch.

Quick Start

To search, use: 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 stored in memory include: decision (D), bugfix (B), feature (F), refactor (R), discovery (i), change (C).

Frequently Asked Questions about mem-search

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search for past Claude Code session context and decisions?

Search past session observations using the context memory store. Run `python3 "$CLAUDE_PROJECT_DIR/.claude/memory/context_memory.py" search "<query>"` to find decisions, bug fixes, features, refactors, and discoveries from earlier work across sessions.

Can I recall specific implementation details or bug fixes from previous work?

Yes. The memory context stores observation types including bug fixes (B), features (F), refactors (R), and discoveries (i). Query by topic or branch name to surface timestamped summaries of what was implemented or fixed.

What observation types does session memory track?

Session memory stores seven observation types: decision (D), bugfix (B), feature (F), refactor (R), discovery (i), change (C), and general observations. Each is timestamped and branch-aware for precise cross-session recall.

How do I check memory statistics and get full context for my current branch?

Run `stats` to retrieve memory statistics, or `context "branch-name"` to retrieve full context for a specific branch. Both commands access the local DuckDB store at ~/.claude/context_memory.duckdb.

Does session memory work across different project branches?

Yes. Memory context is branch-aware, storing timestamped observations grouped by branch. Query specific branches to isolate decisions and implementations relevant to each line of work.