You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
3
3
This project provides a command-line interface (CLI) tool to discover and export AI chat data from [Cursor](https://cursor.sh). The tool is implemented in `chat.py` and leverages utility classes for querying the database, formatting the chat data, and saving it to files.
4
4
5
-
Cursor's chat history is stored in `sqlite3` databases using `state.vscdb` files. One such file is for one workspace. All the chats for a workspace are saved here in socalled *tabs*, one tab means a single chat.
5
+
Cursor's chat history is stored in `sqlite3` databases using `state.vscdb` files. One such file is for one workspace. All the chats for a workspace are saved here in so-called *tabs*, one tab means a single chat.
6
6
7
7
Also see [this](https://forum.cursor.com/t/guide-5-steps-exporting-chats-prompts-from-cursor/2825) forum post on this topic.
8
8
9
9
## Features
10
10
11
11
-**Discover Chats**: Discover all chats from all workspaces and print a few lines of dialogue so one can identify which is the workspace (or chat) one is searching for. It's also possible to filter by text.
12
-
-**Export Chats**: Export chats for the most recent (or a specific) workspace to Markdown files or print it to the command line.
12
+
-**Export Chats**: Export chats for the most recent (or a specific) workspace to Markdown files or print them to the command line.
13
13
14
14
## Installation
15
15
@@ -26,7 +26,7 @@ Also see [this](https://forum.cursor.com/t/guide-5-steps-exporting-chats-prompts
26
26
27
27
## Usage
28
28
29
-
First, find, where the `state.vscdb` files are located on your computer. Confirm that corresponding to your system, the right path is setin the [config.yml](./config.yml) file. Update it if not set correctly.
29
+
First, find where the `state.vscdb` files are located on your computer. Confirm that corresponding to your system, the right path is setin the [config.yml](./config.yml) file. Update it if not set correctly.
30
30
31
31
Both the `discover` and `export` commands will work with this path by default, but you can also provide a custom path any time.
32
32
@@ -64,6 +64,9 @@ See `./chat.py export --help` for general help. Examples:
64
64
# Export only the latest chat of the most recent workspace
0 commit comments