/memory-search
Search across all memory files by keyword.
$ npx -y skills add HelloRuru/claude-memory-engine --agent claude-codeShips 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
Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.
Repo: HelloRuru/claude-memory-engine
Other commands on claude-memory-engine.
- /analyze
Analyze user corrections and log them into the error notebook
Open command - /backup
Push local memory files to your GitHub backup repository.
Open command - /bb-pause
Pause the SessionEnd auto-commit hook when refactoring core engine files.
Open command - /check
Run a quick scan of the memory system's health. For daily use.
Open command - /compact-guide
Help decide when to use `/compact` based on the current conversation state.
Open command - /correct
Review the error notebook — flip through past corrections before working
Open command

