Branching a session into a copy you can take somewhere else, and going back to an earlier point. Subagents that start from your conversation are on the Subagents page.
Worktrees: create, set up, integrate and clean up isolated checkouts
| Question | Cursor Agentchecked at 2026.10.12-d47ca18 |
|---|---|
| Fork a session | Type
|
| Fork or rewind from an earlier point | Partly
The Cursor editor can fork from a specific message, copying the chat through that message and dropping later ones. |
| What the fork keeps | The fork gets the full conversation history, including subagent and summary data. In CLI 2026.10.12 it also keeps the mode (agent, plan or ask), the last-used model, the Run Everything and approval settings, and the current plan file. It runs in the same working directory, and you can change model or mode afterwards with Flags such as |
| File changes and worktrees | Partly Forking does not copy or isolate files: the original and the fork edit the same working tree. Rewinding files in a fork also changes them for the original chat, because both share the same directory. Rewind file history is stored locally and isn't a replacement for git. |
| Where a fork came from | Partly The fork is named after the original with |
| Fork from the SDK or API | Not supported No. Headless mode (
|