How to Search Claude Code and Codex Chat History: Find Old Conversations by Content with PandaSI

Want to search your Claude Code and Codex chat history? PandaSI’s Agent sidebar can search past conversations by their content and show matching snippets. This article explains how to search, what content is included, and how to turn the feature off and delete your data.

PandaSIFirst published on
How to Search Claude Code and Codex Chat History: Find Old Conversations by Content with PandaSI

Last week, I asked Claude Code to investigate a database timeout issue. It gave me a key troubleshooting command in its reply, but now I can’t remember which conversation it was in. The conversation titles are automatically generated—“Fix login,” “Investigate API”—and dozens of them look much the same. Now you can search conversation content directly in PandaSI’s Agent sidebar: enter “timeout” or a word from the command, and the results will list relevant conversations and show the matching passage below each one.

This article explains how to search, what gets indexed, why some conversations may not show up, and how to turn content search off and delete saved content if you don’t want it.

Who it’s for

  • People who use multiple engines such as Claude Code and Codex and have lots of conversations across several computers;
  • People who often need to find “the solution / command / conclusion the AI gave me last time”;
  • People who need to review a troubleshooting process they went through (search is limited to conversations under your own account).

If you only have three to five conversations, browsing the list is enough. This feature really saves time once you have dozens.

  1. Go to pandasi.ai, sign in, and open the Agent page.
  2. At the top of the conversation sidebar on the left, click the magnifying glass icon. A search box will appear with the placeholder “Search conversations…”.
  3. Below the search box, you’ll see the note “Content search covers conversations you’ve opened.” On the right is the “Turn off and delete” button, indicating that content search is currently on (it’s enabled by default).
Conversation search in the Agent sidebar: search box, content search note and toggle, and results with matching snippets
The orange box is the search box, the blue box is the content search note and “Turn off and delete” toggle, and the green box is the matching snippet. Screenshot is in English; conversation content is sample data.

Step 2: Enter a keyword and check the matching snippets

Enter any word you remember: wording from your original question, or an error message, function name, file name, or command that appeared in the AI’s reply. Results are grouped into two types and listed in this order:

  1. Title matches: Conversations whose titles contain the search term appear first.
  2. Content matches: Conversations whose titles don’t contain the term but whose content is relevant to it appear afterward.

Content matches show up to two lines of matching snippets underneath, so you can tell whether you’ve found the right conversation without opening it. Results that match only the title may not include a snippet. Click a result to open that conversation and continue asking questions in its original context.

Tips for choosing search terms:

  • Use specific terms, not broad ones. Searching for “ECONNRESET” is much more precise than searching for “error”; “migration 0042” is more precise than “database.”
  • You can search in both Chinese and English. Content results are sorted by relevance, so the exact phrase you enter may not appear verbatim in the conversation. The more specific your keywords, the better.
  • If you remember how you phrased your question, search for that. The index includes both your messages and the AI’s replies, saved in question-and-answer segments. Searching for your original question is often the quickest way.
  • If you can’t find it, try a synonym. For example, try “timeout” instead of “timed out”; AI replies often mix English and Chinese.

Why some conversations don’t show up

This is the most common question. The reasons are usually one of the following:

What you see Why it happens What to do
You can’t find the content of an old conversation, only its title The current version only indexes conversations you’ve opened Open the conversation from the list, wait for its history to load, and search again after a short while
You can’t find something you just discussed After a conversation pauses, the system waits for it to be idle briefly before indexing it in the background in batches Usually, wait 2–3 minutes before searching (about 1 minute for an older conversation you’ve just opened); it may take longer when the system is busy
You remember the AI running a command, but can’t find it Commands run by the AI through tools, command output, and content written to files aren’t indexed Search for your original question or the wording in the AI’s reply
You can’t find an archived conversation Both title and content search skip archived conversations Unarchive it first

There are also a few limitations on what gets indexed:

  • Only questions you actually sent and the AI’s text replies are indexed. Image attachments, automatically inserted system prompts, tool output, subagent messages, NPC conversations, and Q&A from shared-conversation visitors aren’t indexed.
  • Each indexing run reads the most recent portion of the conversation currently available. Older content that has never been indexed may not show up, though previously indexed older snippets remain searchable. Individual entries that are too long will also be truncated.
  • An active subscription (including a trial that hasn’t expired) is required to index new content. Without an active subscription, new content won’t be indexed, but you can still search by title.

How search content is stored and how sensitive information is handled

When content search is enabled, PandaSI saves the text of conversations you’ve opened on its servers in segments so they can be searched and ranked by relevance. Here are a few things to know:

  • Only you can see it. Search is strictly isolated by account. No one else—including people you’ve shared conversations with—can search your content.
  • Deleting a conversation also deletes its index.
  • Common secrets are masked first. Before text is added to the index, strings that match common API key and token formats are masked. But this is only a safeguard—don’t rely on it. You shouldn’t paste real secrets into AI conversations in the first place.
  • The terms explain this. The scope and purpose of data storage are described in PandaSI’s Terms of Service and Privacy Policy, so no consent prompt will appear.

Don’t want your content saved? Turn off search and delete it in one click

If you don’t need content search, or you’re working on a sensitive project for a while:

  1. Open the search box in the sidebar.
  2. Click “Turn off and delete” to the right of the note.

This will stop indexing and delete all saved conversation content indexes under your account. The note will change to “Content search is off; searching titles only.” From then on, searches will match conversation titles only. Click “Turn on” to restore content search when you need it; conversations you open afterward will be indexed again.

A complete example of finding an old conversation

Suppose you want to find “the Nginx WebSocket reverse proxy configuration the AI gave me last time”:

  1. Open search in the Agent sidebar and enter proxy_set_header Upgrade.
  2. There are no title matches, but a content match appears for a conversation titled “Fix real-time message disconnections.” Its snippet shows the exact lines of configuration.
  3. Open it and say directly in the original conversation: “Update this configuration to support both the /ws and /api/stream paths.”

There’s no need to describe the background again, and the AI can continue working in the original context. If the conversation is already long and nearing its context limit, you can also use history compaction before continuing.

FAQ

Can trial users use it? Yes. Conversations are indexed and searchable during the trial. New content won’t be indexed after your subscription or trial expires.

Can I search conversations from multiple computers? Yes, you can search conversations under your current account. For content search, those conversations must have been opened in PandaSI.

Can I search content without searching titles? The sidebar currently searches both titles and content by default, with title matches shown first.

Summary

The more conversations you have, the more valuable it is to “find what the AI said last time.” PandaSI’s conversation content search puts titles and conversation content in the same search box, with matching snippets to help you quickly confirm a result. If you don’t want content saved, turn off search and delete it in one click. Go to the Agent page on pandasi.ai, click the magnifying glass, and try searching for a question you asked last week.