Harness Notes

Transcripts

Updated 2026-11-25,

On this page

Where each harness keeps the record of past sessions, how to get back into one, and how to keep, export or remove them. Every record type and field inside a transcript is on the Transcript format page. Automatic notes carried between sessions are on the Memories page.

What is saved

QuestionCursor Agentchecked at 2026.10.12-d47ca18
Where sessions are saved

In CLI 2026.10.12 each chat lives in ~/.cursor/chats/<md5 of the absolute workspace path>/<chatId>/ (store.db, meta.json, prompt_history.json), so chats are grouped per directory. A readable JSONL copy is written to ~/.cursor/projects/<workspace path with non-alphanumerics turned into dashes>/agent-transcripts/<chatId>/<chatId>.jsonl. The chats root follows CURSOR_CONFIG_DIR (or $XDG_CONFIG_HOME/cursor), and the projects root follows CURSOR_DATA_DIR.

Only the config directory override is documented; the chats/ and projects/ layout is how CLI 2026.10.12 behaves on disk.

Current packaged ACP implementation has its own acp-sessions root; the older chat/project mirror paths are not exhaustive across transports. See the 2026-11-15 audit.

Subagent and forked sessions

Partly

Subagent transcripts are written next to their parent at ~/.cursor/projects/<slug>/agent-transcripts/<parentChatId>/subagents/<subagentId>.jsonl, and the subagentStop hook receives the path as agent_transcript_path. Completed subagents keep checkpoints so they can be resumed. A /fork creates a new independent chat in the same ~/.cursor/chats/<hash>/ folder.

Prompt history

Up-arrow history is per conversation: since June 2026 it is saved in that chat's own ~/.cursor/chats/<hash>/<chatId>/prompt_history.json (up to 500 entries), separate from store.db. An older global ~/.cursor/prompt_history.json may still exist from earlier versions.

Getting back to a session

QuestionCursor Agentchecked at 2026.10.12-d47ca18
Resume or continue

Run agent resume or agent --continue (an alias for --resume=-1) to reopen the latest chat, agent --resume <chatId> to open a specific one, or /resume (Ctrl+Y) inside a session. Resume also works with -p for headless follow-ups, and /fork branches the current chat into a new session.

Find a past session

agent ls (or agent --resume with no id, or /resume) opens a picker that lists All chats across workspaces by default, with Created and Last updated columns. Left/Right switches to This workspace. There is no full-text search over CLI chats; /copy-conversation-id copies the current chat id.

Export or share

Partly

The CLI has no export or share command. You can copy the JSONL file under ~/.cursor/projects/<slug>/agent-transcripts/<chatId>/ yourself. Share links (cursor.com/s/...) are created from the Cursor editor's chat header and need a Teams or Enterprise plan.

/copy copies only a previous user message, not the conversation.

Read sessions from code

In print mode, --output-format json emits one final result object on success; stream-json emits NDJSON messages and tool events. A failed run may have no final result. --stream-partial-output adds deltas and duplicate flush events that consumers must distinguish. Session IDs support resume; native ACP has a separately scoped session/load and storage path. The output stream is not the internal SQLite or project transcript schema.

thinking events are left out of print-mode output.

Keeping and removing

QuestionCursor Agentchecked at 2026.10.12-d47ca18
How long they are kept

Partly

Local CLI chats have no expiry and are kept until you delete them. In the agent ls / /resume picker, press Backspace or Delete on a chat and confirm to permanently remove its ~/.cursor/chats/.../<chatId> folder. You can also delete that folder, and the matching agent-transcripts/<chatId> folder, by hand.

Deleting from the picker removes the chat folder. The JSONL copy under ~/.cursor/projects is a separate file, so check it too.

Don't save this session

Not documented

A universal no-save interface has not been established for the current CLI, ACP and host variants. The historical CLI survey observed local chat storage. The current packaged SQLite implementation can degrade to in-memory state after a failure, but that is recovery behavior, not an intentional privacy/no-save contract.

Historical 2026.10.12-d47ca18 answer, superseded where it asserted absence: There is no flag, setting or environment variable to run without saving the session; every interactive and -p run creates a chat under ~/.cursor/chats. To get a throwaway session, point CURSOR_CONFIG_DIR and CURSOR_DATA_DIR at a temporary directory (you will need credentials there too) or delete the chat afterwards.

Cloud sync and upload

Partly

The historical CLI survey observed a local chat database and separate cloud handoff. Current packaged source also includes transcript submission for server-side classification/summaries. This audit does not establish a general absence of upload, editor sync or cross-device history across Cursor hosts. Hosted retention and Privacy Mode require separate policy evidence.

The resume picker can also list your cloud agents next to local chats.

Historical 2026.10.12-d47ca18 answer, superseded where it asserted absence: CLI chats are stored only on your machine and are not synced to the Cursor editor, the web or other devices. Your prompts and context still go to Cursor's servers for each model request, and Privacy Mode controls whether that data can be retained or used for training. Prefixing a message with & hands the conversation off to a Cloud Agent, which you can then open at cursor.com/agents.

Current source path: non-local-agent UI effect registers the classification service and starts polling. isClassificationEnabled checks cursor_blame, privacy state and team-admin settings before reading recent local transcripts and calling ingestConversation. Feature availability, account/team settings and actual network delivery were not probed.

Notes and sources

Cursor Agent, 16 sources
Where sessions are saved, 2
Subagent and forked sessions, 3
Prompt history, 3
Resume or continue, 3
Find a past session, 4
Export or share, 1
Read sessions from code, 5
How long they are kept, 2
Don't save this session, 2
Cloud sync and upload, 4