[FEATURE] Cross-project full-text search in --resume
Summary
claude --resume is great for jumping back into a recent session, but it has two limitations that make it hard to find older or cross-project work:
- Directory-scoped — only shows sessions from the current project
- Title-only search — matches against
firstPromptinsessions-index.json, not the full prompt text
The data already exists
~/.claude/history.jsonl contains every prompt ever typed across all projects, with four fields per entry:
display— the full prompt textproject— which directory it came fromtimestamp— when it was typedsessionId— which session it belongs to (used byclaude --resume)
Proposed change
When a search query is passed to --resume, also search history.jsonl by full prompt text across all projects — not just the current directory's sessions-index.json.
Why it matters
It's common to remember roughly what you typed in a past session ("I was debugging an auth redirect issue") but not which project it was in or when. Right now there's no built-in way to find it. The data exists — it just isn't searchable.
Workaround
I built a /history slash command that does this by reading history.jsonl directly, which confirmed the approach works well. But a first-class --resume that searches cross-project and against full prompt text would be a much better experience than a workaround script.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗