Skip to main content

Module paths

Module paths 

Source
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§

EnsuredWorkspaceId
Outcome of PathResolver::ensure_workspace_storage_entry.
PathResolver
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/).