cursor-helper
Stop losing your Cursor chat history. This CLI fixes the things Cursor doesn't expose in the UI.
The Problem
When you rename or move a project folder, Cursor loses all your chat history. Weeks of conversations, context, and problem-solving — gone.
The Solution
Your chat history, workspace settings, and MCP cache stay intact.
Installation
# From crates.io (recommended)
# Or from source
Requires Rust 1.70+. Works on macOS, Linux, and Windows.
Pre-built binaries for major platforms are available on the Releases page.
Key Commands
rename — Move Projects Without Losing History
# Move/rename a project
# Copy instead of move
# Preview changes first
export-chat — Export Everything Cursor Hides
Cursor's built-in export omits thinking blocks and tool calls. This doesn't.
# Full export with thinking, tools, and token counts
# Just the conversations
# Export to JSON
# Split into separate files per session
# Exclude empty sessions
# Remote sessions (SSH, tunnels, WSL, dev containers)
| Flag | What it does |
|---|---|
--with-thinking |
Include AI reasoning/thinking blocks |
--with-tools |
Include tool calls (file reads, edits, etc.) |
--with-stats |
Include model name and token counts |
-v |
All of the above |
--split |
Export each session to a separate file |
--exclude-blank |
Skip sessions with no messages |
--include-archived |
Include archived sessions |
--workspace-id |
Export by workspace ID (for remote sessions) |
list — See All Your Projects
# List all projects (most recent first)
# Show workspace IDs (for use with export-chat --workspace-id)
# Sort by chat count
# Filter by type
clean — Reclaim Disk Space
Remove workspace data for deleted projects.
Other Commands
| Command | Description |
|---|---|
stats |
Show chat count and storage size for a project |
backup |
Create a portable backup of project metadata |
restore |
Restore metadata to a new location |
clone |
Duplicate a project with independent chat history |
How It Works
Cursor stores metadata in platform-specific locations:
| Platform | Location |
|---|---|
| macOS | ~/Library/Application Support/Cursor/User/workspaceStorage/ |
| Linux | ~/.config/Cursor/User/workspaceStorage/ |
| Windows | %APPDATA%\Cursor\User\workspaceStorage\ |
Each project has a unique ID derived from its path. When you rename a folder, the ID changes and Cursor can't find the old data. This tool updates the necessary references.
Note: Linux support is experimental. Workspace hash computation depends on filesystem birthtime support, which varies by filesystem and kernel version.
Disclaimer
This tool is not affiliated with or endorsed by Anysphere, Inc. (Cursor).
It reads your local data files for personal backup and portability. It does not access Cursor's servers, APIs, or source code. See DISCLAIMER.md for details.
License
MIT — see LICENSE.