task_memory_search — Claude Code prompt: search past tasks
The task_memory_search prompt for Claude Code finds summaries of earlier tasks across conversations. Search by task wording, then narrow results by app package or start date.
Apache-2.0 ★ 9,488 updated 2026-11-16
.claude/commands/task_memory_search.mdWhat task_memory_search does
The prompt searches earlier tasks using words from their titles, conclusions, or steps. It returns up to 10 brief records with a title, run time, apps or sites involved, a one-line conclusion, and the step count. Full step details are excluded.
Add an app package or a start date to narrow the search. For a relevant result, open its timeline with task_memory_timeline, then inspect a particular step with task_memory_step. In Claude Code, save the prompt as .claude/commands/task_memory_search.md.
What it helps with
- find an earlier task from words in its title
- reuse the conclusion from a previous run
- filter task summaries by app package and date
- open a matching task’s timeline and a specific step
Example prompts for the agent
- Find earlier tasks mentioning “profile screen update”.
- Search for tasks whose conclusion mentions authentication setup and filter by app package.
- Find a run after the given start date, then open its timeline and a specific step.
How to install task_memory_search
Manually: put the files in place
.claude/commands/task_memory_search.mdHow to use
Paste the text at the start of a chat or into project instructions
Questions about task_memory_search
How do I install task_memory_search in Claude Code?
Save the prompt to .claude/commands/task_memory_search.md.
What does task_memory_search do?
It searches summaries of earlier tasks and returns up to 10 brief records with their title, run time, apps or sites, conclusion, and step count.
What details appear in a search result?
Results show compact task summaries, not full steps. Use task_memory_timeline to inspect a timeline, then task_memory_step for a particular step.
Source text
task_memory_search.md · Apache-2.0
Look up summaries of past tasks (across conversations) so you can reuse what worked and avoid repeating what failed. Returns up to 10 compact entries — only the title, when it ran, which apps/sites it touched, its one-line conclusion and step count, never the full steps. Query with words from the task title, its conclusion or its steps; filter by app package and/or a start date when you know them. When a returned entry looks relevant, read its timeline with task_memory_timeline and then a specific step with task_memory_step.
© wangzan101 · Apache-2.0 · wangzan101/Mika