Expand description
Filesystem layout for Cursor state.
Cursor splits its data across two roots: an Anysphere-specific tree
at ~/.cursor/ (used for project slugs and the per-composer JSONL
agent transcript), and a VS Code-flavored Electron user-data tree
at ~/Library/Application Support/Cursor/ on macOS,
~/.config/Cursor/ on Linux, and
%APPDATA%\Cursor\ on Windows.
The source of truth for conversations is the global SQLite database
at <user-data>/User/globalStorage/state.vscdb. The JSONL
transcripts are useful for fast project-keyed listing but lossy.
Structs§
- Ensured
Workspace Id - Outcome of
PathResolver::ensure_workspace_storage_entry. - Path
Resolver - Builder-style resolver over Cursor’s data directories.
Functions§
- slug_
from_ abs_ path - Slugify an absolute filesystem path into Cursor’s project-slug form
(the directory name under
~/.cursor/projects/).