AI Responses in Cursor's Database

Hi all,

I’m trying to retrieve AI responses from previous conversations in Cursor, I’ve tried using the term “supercalifragilisticexpialidocious” for uniqueness, but I’m having trouble locating the response to it in the database.

What I’ve found so far:

  1. I can see my user messages in aiService.generations and aiService.prompts in this workspace database:

~/Library/Application Support/Cursor/User/workspaceStorage/d33fe239a8543fbeb139bd56de860ed5/state.vscdb

  1. These messages are associated with a composer ID “6511e483-d06c-4b5b-8c46-3629bf4813f7” named “Whimsical Word Wonders” in agent mode.

  2. The exact generation UUIDs are:

  • “b446489a-7d7e-4aa2-9c58-2d15414ab9c4” for “supercalifragilisticexpialidocious”

  • “ed877087-47fe-4e4c-bf98-cfe1c721ef4b” for “supercalifragilisticexpialidocious2”

What I’ve tried:

  1. Searched for the generation UUIDs in all database records

  2. Checked composer.composerData which shows the composer information but not the actual conversation

  3. Looked in the global storage database at /Users/umop/Library/Application Support/Cursor/User/globalStorage/state.vscdb

  4. Searched for common phrases that might appear in AI responses like “I apologize” or “I understand”

  5. Looed through cursor-chat-export but it looks like that uses an old composer format.

My question:

Where are the AI responses stored in Cursor’s database system? How can I retrieve the AI’s response to a specific message I sent?

Any help would be greatly appreciated! I’m comfortable with SQLite queries and technical solutions.