What's the best tool to search my past Claude Code and Codex sessions?
We asked ChatGPT, Perplexity and Gemini this question on November 18, 2026. Here is who they named.
No brand was named by all three. ripgrep was named by two.
| Brand | ChatGPT | Perplexity | Gemini |
|---|---|---|---|
| Named by two | |||
| ripgrep | Named, position 1 | Not named | Named, position 3 |
| Named by one | |||
| Claude Code | Not named | Not named | Named, position 1 |
| claude-code-tools | Not named | Named, position 1 | Not named |
| Codex | Not named | Not named | Named, position 2 |
| fzf | Named, position 2 | Not named | Not named |
| session-search | Not named | Named, position 2 | Not named |
| Claude Code History & Codex History Viewer | Not named | Named, position 3 | Not named |
| Khoj | Not named | Not named | Named, position 4 |
| Cursor | Not named | Not named | Named, position 5 |
| Cline | Not named | Not named | Named, position 6 |
| VS Code | Not named | Not named | Named, position 7 |
| Obsidian | Not named | Not named | Named, position 8 |
| Smart Connections | Not named | Not named | Named, position 9 |
named, with its place in that answernot named
your companyIs it missing from this answer?
Run the free scanWhat each engine answered
ChatGPT
GPT-5.6, answering from model knowledge
- ripgrep
- fzf
The best practical setup is ripgrep (rg) + fzf. It is fast, local, works across both Claude Code and Codex’s JSONL session logs, and doesn’t require uploading your conversations anywhere.
Perplexity
Sonar with live web search
- claude-code-tools
- session-search
- Claude Code History & Codex History Viewer
The most capable general-purpose tool right now is claude-code-tools’ aichat search / find-session, which gives you fast full‑text search across all Claude Code and Codex sessions with both a TUI and scriptable CLI. That said, “best” depends on how you want to work.
Gemini
Gemini 3.1, answering from model knowledge
- Claude Code
- Codex
- ripgrep
- Khoj
- Cursor
- Cline
- VS Code
- Obsidian
- Smart Connections
Because Claude Code and Codex (and their associated CLI/IDE environments) typically store chat history in local databases (SQLite) or cloud-synced files, there isn’t a single "official" search bar for your entire history. The "best" tool depends on whether you want to search locally (files on your machine) or across the cloud.
Sources Perplexity cited
Perplexity searched the web for this answer. The count is how many times the answer cited that site.
- pypi.orgcited 4 times
- github.comcited 3 times
- marketplace.visualstudio.comcited once