Skip to content
Development
Command

/memory-search

Search across all memory files by keyword.

From plugin
13219 skills19 commands9 hooks
shell
$ npx -y skills add HelloRuru/claude-memory-engine --agent claude-code

Ships with claude-memory-engine. Installing the plugin gets this command.

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/memory-search

Context preview

What this command does when you run it.

Search across all memory files by keyword.

Command definition

memory-search.md

/memory-search -- Search Memory Files

Search across all memory files by keyword.

Usage

`/memory-search {keyword}`

Steps

1. **Identify search scope**: Scan these directories for `.md` files:

  • `~/.claude/projects/{current-project-id}/memory/`
  • `~/.claude/sessions/diary/`
  • `~/.claude/skills/learned/`
  • `~/.claude/sessions/` (session summaries)

2. **Search**: Use Grep to find the keyword across all `.md` files in those directories

3. **Report results**:

Memory Search: "{keyword}"

Found {N} matches in {M} files:

{filename}:{line_number} — {matching line preview}
{filename}:{line_number} — {matching line preview}
...

4. If no results: suggest related keywords or broader search terms

Notes

  • Case-insensitive search
  • Show max 20 results, sorted by most recently modified file first
  • Truncate long lines to 120 characters
  • If the keyword is in Chinese, also search for related terms
Read it on GitHub ↗
Ships withclaude-memory-engine

Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.

Get the whole plugin, auto-invoked
Stats
132
Stars
0
Views
27
Forks
Maintained
Maintenance
JavaScript
Language
MIT
License
2mo ago
Last commit
4mo ago
Created

Repo: HelloRuru/claude-memory-engine