memory_search — Claude Code prompt: what it does and how to install
The memory_search Claude Code prompt searches saved facts, preferences, and approved ways of working. Ask it to retrieve something the user previously wanted remembered.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/memory_search.mdWhat memory_search does
The prompt searches for facts, preferences, and approved working methods that the user asked to store. Results contain up to 8 entries, each with an ID, kind, and content. If the first search returns nothing, try different query terms.
The latest result set supplies the candidate IDs that memory_edit can target. In Claude Code, place the prompt file at .claude/commands/memory_search.md.
What it helps with
- retrieve a saved fact
- find a user's stored preferences
- locate an approved way of working
Example prompts for the agent
- Find what I asked you to remember about code formatting.
- Search for my preferences about project structure.
- Look up the saved guidance on working with tests.
How to install memory_search
Manually: put the files in place
.claude/commands/memory_search.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about memory_search
How do I install memory_search in Claude Code?
Save the prompt file at .claude/commands/memory_search.md.
What does memory_search do?
It searches saved facts, preferences, and approved working methods. It returns up to 8 entries with IDs, kinds, and content.
How many entries does memory_search return?
Up to 8. The latest results provide candidate IDs for memory_edit.
Source text
memory_search.md · Apache-2.0
Search what the user has told Mika to remember (facts, preferences, approved ways of doing things). Returns up to 8 {id, kind, content}. Try other words if the first query finds nothing. The latest result set defines the candidate ids that memory_edit may target.
© wangzan101 · Apache-2.0 · wangzan101/Mika