Does cursor IDE agent allow to open worktree from workspace (not the agents window)

This shows how to have agents commit in a worktree using the agents window.

I refer to project window as the cursor IDE opened at a specific folder.

Can I also specify to use a new/existing worktree in the project window? See screenshot

May be related to Better Workspaces Support

A few related questions:

How do I see the chats from the agents window in the project window? Once I close a chat, I don’t see an option to add it again (but it appears in the agents window).

From the agents window, can I open the worktree in a new window (button rather than doing it manually). I cannot find a button here to open it in the normal cursor IDE.

Similarly, how can I open the file. The context menu does not show an option to open the file or the enclosing workspace.

When I open the worktree as a workspace, “Go to next diff file” does not work, but it works in the main workspace.
If any of these are not possible, this should be understood as feature requests.

Hey, I’ll break it down.

Can I use a new or existing worktree right in the project window in the IDE? Yes. The old dropdown Local, Cloud, Worktree is gone and replaced with slash commands in the editor agent chat:

  • /worktree [branch=<name>] <task> creates a worktree and starts an agent in it
  • /apply-worktree merges the worktree changes back into your main branch
  • /delete-worktree deletes the worktree
  • /best-of-n <model1,model2,...> <task> runs the same prompt in parallel on multiple models

Important note: these commands work in the Classic editor layout. They’re not available in the Agents Window yet. That’s a known limitation and there’s no ETA.

How do I bring back a closed chat? Closing the chat tab doesn’t delete it. You can reopen it from the history icon in the composer header, or from the Agents Window. There’s no separate control to move an Agents Window chat back into the IDE panel.

Open a worktree in a new window with a button? This is already available. Right click the worktree chat, open the … menu, then select Open new window in worktree. You can also pick Open terminal in worktree there.

Open file or enclosing workspace from the mini tree context menu? That option doesn’t exist yet, it’s a feature request. Workaround: click a file to open it, or open the worktree via Open new window in worktree and work with files there like normal.

About Go to next diff file not working when you open the worktree as a workspace, that’s a separate case. Please share your Cursor version from Help > About and the repro steps, and I’ll take a look.

Thanks for the replies.

I cannot find the option to open it in a new window when right-clicking on the worktree chat.

The chat window itself with the ... also does not seem to offer this:

The buttonEditor Window opens a random cursor window, but not the worktree.

Version: 3.9.16
Commit: 042b3c1a4c53f2c3808067f519fbfc67b72cad80
Date: 2026-06-27T06:41:01.941Z
Layout: editor
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Cursor/3.9.16 Chrome/144.0.7559.236 Electron/40.10.3 Safari/537.36

Hey, thanks for sharing the screenshots and the version. That helped me understand what’s going on.

The actions Open new window in worktree, Open terminal in worktree, and Copy worktree path only show up in the menu for chats that are actually running in a worktree. In your screenshots, those are regular local chats (Current time script, Random letter printing, Hello world). They aren’t linked to a worktree, so those menu items won’t appear.

To get a chat with a worktree, run this in an editor agent chat:

  • /worktree [branch=<name>] <task> This will create a worktree and start the agent inside it.

After that, right click on that chat and you should see the worktree actions, including Open new window in worktree. Let me know if they show up. If not, please send a screenshot of the menu for that worktree chat.

About the Editor Window button opening a random window instead of the worktree, that’s a known bug and we’ve already reported it. I can’t share an ETA for a fix yet. As a workaround, use Open new window in worktree from the worktree chat menu. That should open the correct worktree window.

This is running in a worktree, but right click does not show the option to open it in a new editor window.

I confirm that the “open in worktree” appears in the context menu for test_project.

Once the Editor window bug is fixed, that will be even more convenient.

Great, that means the worktree actions are showing up as expected.

Quick terminology note: there isn’t a separate “open in a new editor window” option for the worktree chat, and it isn’t needed. Open new window in worktree is exactly the action you’re looking for, it opens the worktree in a new editor window. Use it instead of the Editor Window button.

The bug with the Editor Window button opening a random window instead of the worktree has already been reported on our side. I can’t share an ETA for a fix yet. Until then, the workaround is Open new window in worktree from the worktree chat menu, it opens the correct window.

Let me know if anything else comes up.