Challenge
- With many working folders, you cannot remember which folder and which session a discussion happened in
- Old sessions are cleaned up automatically, so the built-in resume list cannot reach older discussions
Approach
- Search prompts and Claude's replies, fast over the last 30 days first, then automatically across all time and the permanent archive if nothing turns up
- Each result shows the folder, session name, a matching excerpt and a resume command; records that survive only in the archive show the file location instead
Outcome
- A keyword or two takes you back to an old discussion's session in seconds
- Even cleaned-up sessions can be read from the archive, so the history behind past decisions is not lost
The author uses Claude Code in many working folders and often cannot recall where a topic came up. The built-in resume list only shows recent sessions in the current folder, and old records are eventually deleted automatically.
So every session is copied into an archive when it ends, and search widens from recent, to all time, to the archive. A found session can be resumed by pasting one command into a new terminal.
Key points
Widen from the fastest scope. The archive is large, so searching all of it every time is slow. The last 30 days come first; if nothing turns up, all time and the archive. Saying "from a while ago" searches everything from the start.
Return something you can resume from. Every result carries a resume command. Records that survive only in the archive cannot be resumed, so the result says so and points to the file to read. Branched conversations are recognised and handled separately.
Search with the words you used then. Searching for a skill or script name matches every session that used it. To find the session where something was built, search for the design vocabulary you were using at the time.