Hacker News new | ask | show | jobs
Show HN: LLMnesia – search across ChatGPT, Claude, Gemini chats locally (chromewebstore.google.com)
8 points by keiranflynn 79 days ago
I kept running into this annoying problem:

I’d remember a really useful answer, but not where it was.

ChatGPT? Claude? Gemini? No idea. So I’d end up digging through all of them or just rewriting the prompt.

Built this to fix that.

It’s a Chrome extension that indexes chats locally and lets you search across them all in one place. Once it’s indexed, search is basically instant.

Still early. UIs change and break things sometimes, so it’s a bit fragile in places.

Curious if other people have the same issue or if it’s just me jumping between tools too much.

3 comments

You can download your conversations.json file.

Or JS to call Claude's APIs (from the browser) to see/search/download old conversations. there's more to it than this, but it's a start:

    const search = 'fetch =';
    
    console.clear();
    const org = intercomSettings.lastActiveOrgUuid;
    for (var o = 0; ; o += 30) {
        const r = await fetch(`/api/organizations/${org}/chat_conversations_v2?limit=30&offset=${o}&consistency=eventual`);
        const ccs = await r.json();
        ccs.data.forEach(async cc => {
            const r = await fetch(`/api/organizations/${org}/chat_conversations/${cc.uuid}?tree=True&rendering_mode=messages&render_all_tools=true&consistency=strong`);
            const c = await r.json();
            for (const cm of c.chat_messages) {
                for (const co of cm.content) {
                    if (co.text?.includes(search)) {
                        console.log('https://claude.ai/chat/' + c.uuid, c.name);
                        console.log(co.text);
                    }
                }
            }
        });
        if (!ccs.has_more) break;
    }
Nice, that works well for Claude on its own. My itch was more the cross-tool problem, not knowing which LLM a conversation was even in before I could search it.
This is genuinely useful. I've lost count of how many times I've searched "that Claude conversation where I figured out X" with zero luck.

Quick question — how do you handle conversations that were deleted from the source? Does LLMnesia keep a local copy of the indexed content, or does the link just break?

Happy to answer anything. Also curious what other tools people are switching between regularly.