Fork an existing chat into a new worktree

Feature request for product/service

Cursor IDE

Describe the request

I would like to fork a chat in the Agents Window into a new git worktree. The original chat should stay where it is. I already use Fork Chat when I want a copy of a conversation. I can copy the whole chat, or only the part up to one message. The copy still works on the same files. I need that copy in its own worktree.

I use this when I want to try a second approach from the same chat. I want the new edits in the worktree, and I want my current files left alone. I also need it after a review. I start in a normal chat, with no worktree. The work gets reviewed. By then I am on another branch. I want to answer that review from the same chat, in a new worktree, so those edits stay off the branch I am on now.

ChatGPT Work already lets me branch a chat and continue the copy in a new worktree. I want something similar.

Operating System (if it applies)

MacOS

Hey @samyakpiya, thanks for the suggestion!

There isn’t a one-step “Fork into worktree” option yet, but you can get the same result in two steps:

  1. Fork the chat as usual (the whole chat, or from the message you want).
  2. In the forked chat, send a message like: “Create a new git worktree on a new branch for this work and move yourself into it before making any changes.”

The agent will set up the worktree and continue the conversation there. You’ll see the fork reappear under the worktree (the pre-move copy gets archived), and your original chat and current checkout stay exactly as they were.

Send that request as its own message while nothing else is running in the fork. If you ever see an extra copy of the chat appear after the move, stop it so two copies aren’t editing the same worktree.