search-memory
Search past sessions and facts
When & Why to Use This Skill
The Search Memory skill for Claude provides a powerful mechanism to retrieve information from past interactions and stored facts. It enables users to maintain long-term context by indexing session histories, architectural decisions, and specific technical patterns, ensuring that critical project knowledge is always accessible and searchable.
Use Cases
- Project Continuity: Quickly recall technical decisions or project requirements discussed in previous sessions to maintain consistency across long-term development cycles.
- Knowledge Retrieval: Search for specific concepts such as 'authentication' or 'state-management' across historical data to reuse proven patterns and solutions without repeating work.
- Audit and Review: Filter through past sessions by type (e.g., architecture, technology) to review the evolution of a codebase or system design and understand the rationale behind specific changes.
- Context Recovery: Efficiently resume complex tasks after a break by searching for keywords or files mentioned in earlier sessions to get back up to speed instantly.
| name | search-memory |
|---|---|
| description | Search past sessions and facts |
Search Memory
Search through saved facts and session history.
Usage
/memory-keeper:search-memory [query]
Actions
Search with query:
node "scripts/counter.js" search "query"
Search with filters:
# By type
node "scripts/counter.js" search --type=architecture
# By concept
node "scripts/counter.js" search --concept=authentication
# By file
node "scripts/counter.js" search --file=src/auth
# Combined
node "scripts/counter.js" search "react" --type=technology --concept=frontend
Show summary (no query):
node "scripts/counter.js" search
Output:
[MEMORY_KEEPER] Memory Summary:
Decisions: 5
Patterns: 3
Issues: 2
Sessions: 12
Decision types: architecture(2), technology(3)
Concepts: authentication, state-management, testing...
Examples
# Find all architecture decisions
node scripts/counter.js search --type=architecture
# Find facts about authentication
node scripts/counter.js search --concept=authentication
# Find facts mentioning specific file
node scripts/counter.js search --file=counter.js
# Free text search
node scripts/counter.js search "hooks"
Notes
- Searches decisions, patterns, and issues in facts.json
- Use
grepfor raw session file search:grep -r -i "keyword" .claude/memory/sessions/*.md