memory_search.md

 1Searches the full conversation transcript from a summarized session to recover specific details that were condensed in the summary.
 2
 3<when_to_use>
 4Use this tool when you need to:
 5- Recover exact details that are missing from the summary
 6- Find specific code snippets, file paths, or commands discussed earlier
 7- Locate tool calls or their results from earlier in the session
 8- Retrieve precise error messages or decisions made earlier
 9
10DO NOT use this tool when:
11- The information you need is already in the current conversation context
12- You're starting a fresh session with no summarization
13- You need information from a different session
14</when_to_use>
15
16<usage>
17- Provide a natural language query describing the information you want
18- The query is interpreted by a sub-agent that searches the transcript with grep/view
19- Returns a concise answer with quoted excerpts as evidence
20</usage>
21
22<parameters>
23- query: A natural language description of what you want to find (required)
24</parameters>
25
26<usage_notes>
27- Only available after a session has been summarized
28- The transcript contains the full conversation, including code blocks and tool calls
29- The tool searches only the current session transcript
30- Results include supporting excerpts to ground the answer
31</usage_notes>
32
33<limitations>
34- Cannot search across multiple sessions
35- Very long tool results may be truncated in the transcript
36- Binary file contents are not included (only paths are recorded)
37</limitations>
38
39<tips>
40- Be specific: include names, URLs, filenames, error text, or distinctive phrases
41- If the first query is too broad, refine it with additional constraints
42- Ask for exact quotes when you need verbatim text
43</tips>
44
45<examples>
46- query: "What was the exact error message when running the tests?"
47- query: "Find the implementation of the serializeTranscript function"
48- query: "What file paths were modified in the refactoring?"
49- query: "What approach did we try first that didn't work?"
50</examples>