Can't find a way to run an agent on a worktree

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Can only see ‘Local’ and ‘Cloud’ options for both IDE and Glass, and unable to run agents in worktrees as a result.

Steps to Reproduce

Click ‘Local’ dropdown in Agents sidebar

Expected Behavior

Show three option - Local, Cloud and Worktrees

Operating System

MacOS

Version Information

Version: 2.7.0-pre.96.patch.0
VSCode Version: 1.105.1
Commit: c6712eb06f4e47a06a31f4d7adf484bfcbf61cc0
Date: 2026-03-19T17:53:17.088Z
Build Type: Stable
Release Track: Nightly
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

Additional Information

Want to use Glass, but it’s not usable without worktrees!

Does this stop you from using Cursor

Yes - Cursor is unusable

3 Likes

Same here. It’s annoying

Same :frowning:

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Looking at docs Parallel Agents | Cursor Docs , they show a Worktree option the agent location dropdown.

i don’t seem to have it? That means i can’t use the multiple agents feature

Steps to Reproduce

Open the dropdown

Expected Behavior

Worktree option shows

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.7.0-pre.113.patch.0
VSCode Version: 1.105.1
Commit: 6f6ca294486449fb5e8fbae6c138d459ae95dd10
Date: 2026-03-22T08:13:33.045Z
Build Type: Stable
Release Track: Nightly
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey all,

Worktrees are temporarily unavailable right now. The team is aware and actively tracking this.

I understand this is frustrating, especially since the worktrees docs page describes the feature. We don’t have an ETA for re-enabling it yet, but it’s being actively worked on.

In the meantime, Cloud mode supports running prompts across multiple models and doesn’t require worktrees, so it can serve as an alternative for parallel execution.

I’ll update this thread when there’s news.

1 Like

I removed the Glass early access option from Cursor settings to restore worktree support. After doing so, Cursor downgraded to the previous version. After Cursor restarted my entire agent chat history is GONE across all projects. How can I restore it?

Hi there! The worktree experience has been updated on recent builds. Instead of the dropdown option, you can now use the /worktree command directly in the agent chat - just type /worktree followed by your prompt, and the agent will create and work in a worktree for you.

There’s also /best-of-n if you want to compare results from multiple models in parallel.

The docs haven’t been updated yet to reflect this change (which is still only on nightly builds). Let us know if you have any questions or run into any issues with the new flow!

Hi @Colin it doesn’t seem to work that way, at least not in glass (on latest cursor)

Also ideally for QOL in glass if I am in a worktree I would hope the scm pane on the right could pick this up and detect the chat we are on is on this worktree so show the branch/changes that is on

it always assumes youre in the main worktree root, but if you use worktrees to work on three different features, each their own chat for the same repo you’d ideally like to see the changes unique to the chat you are on’s worktree and branch

2 Likes

@Alexander_Clay Glass support is a WIP! Give it a try in the editor.

Ah yes I see it there, apologies! saw this thread tagged as glass and was looking to give glass feedback as loving it!!!

1 Like

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

How do i see worktrees and send off parallel agents?

Feels like the feature was deleted. Would love to have it back.

Steps to Reproduce

n/a

Operating System

MacOS

Version Information

Version: 2.7.0-pre.140.patch.0
VSCode Version: 1.105.1
Commit: ccfa72ce1f439af527c44b009c67fb94169b1100
Date: 2026-03-26T01:58:51.913Z
Build Type: Stable
Release Track: Nightly
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Updating my earlier reply – as @Colin explained above, the worktree experience has been updated on recent nightly builds. The old dropdown selector has been replaced with slash commands in the editor agent chat:

  • /worktree [branch=<name>] <task> – creates a worktree and runs the agent in it

  • /apply-worktree – merges worktree changes back into your main working tree

  • /delete-worktree – removes a worktree

  • /best-of-n <model1,model2,...> <task> – runs the same prompt across multiple models in parallel

These are available in the editor only for now. Glass support is still being worked on.

Cloud mode also remains an option for parallel execution without worktrees.

@philkuz - you’re on a recent enough nightly build to have these. Give /worktree a try in the editor and let us know how it goes.

@blummis - your lost chat history after removing Glass early access sounds like a separate issue. I’d recommend filing a new thread so the team can look into recovery options for you.

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I initialize a new agent task in a worktree, but the task begins locally instead.

Steps to Reproduce

  1. New Agent
  2. Choose “Worktree”
  3. Submit prompt
    It’s not in a worktree

Expected Behavior

It should be in a worktree.

Is worktree creation now up to agents? This is a problem because:

  1. That’s not what the UI implies.
  2. Now all benign terminal commands require approval instead of auto-running.
  3. Apparently, one of my agents failed to create a work tree, or moved changes to main without asking, I didn’t realize it AND I PERMANENTLY DELETED UNTRACKED FILES IN THE DIFF VIEW, THINKING THEY WERE MISTAKENLY COPIED TO THE WORKTREE. But in fact, it was not the worktree because I guess the agent didn’t create a worktree like asked?! Those untracked files are now gone.

I have so far found Cursor 3 to be a major usability AND FILE INTEGRITY regression.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.0.4
VSCode Version: 1.105.1
Commit: 63715ffc1807793ce209e935e5c3ab9b79fddc80
Date: 2026-04-02T09:36:23.265Z
Layout: glass
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 22.6.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Building on deanrie’s reply above — I want to specifically address the lost files.

If those untracked files were ever in git history (even staged but not committed), there may be recovery options:

  • git stash list — check if any stash entries exist

  • git fsck --lost-found — can recover staged content that was never committed

  • Time Machine (macOS) — check for recent snapshots of your project folder

If the files were truly never touched by git, OS-level backups would be the last resort.

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

  • The dropdown under the Agent chat window shows “Local” but the option for “Worktree” and “Cloud” are both greyed out. No way to fix it. Even ran it on a fresh GitHub repo. Reverting to 2.6 fixed it.

Steps to Reproduce

Run Cursor 3 on Ubuntu 22.04 using cursor . in a Git repo. Go to the dropdown under the agent window that defaults to “Local”

Expected Behavior

Worktrees and cloud should be an option. And multiple agents should also work.

Operating System

Linux

Version Information

Cursor 3 …

Does this stop you from using Cursor

Yes - Cursor is unusable

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I can’t find the /worktree and /best-of-n commands in Agents Window.

Steps to Reproduce

  1. Type either of the two commands in the chat bar in the Agents Window.
  2. They are not found in the slash commands dropdown that appears as I type the commands.

Expected Behavior

These commands should appear in the slash commands dropdown in Agents Window.

Operating System

MacOS

Version Information

Version: 3.0.9 (Universal)
VSCode Version: 1.105.1
Commit: 93e276db8a03af947eafb2d10241e2de17806c20
Date: 2026-04-03T02:06:46.446Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

worktrees ergonomics was not the best in previous version, but since 3 I think it just degraded even further. Why can’t I just create a worktree, do stuff there and merge it back to the original branch? I would literally like to see this flow, I’m doing it manually now and it’s pain since I have to switch editor windows

1 Like