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

**URL:** <https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440>\
**Category:** Bug Reports\
**Tags:** agents-window, worktrees\
**Created:** [March 21, 2026, 12:02am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440 "2026-03-21T00:02:43Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raghav\_Sethi](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@Raghav\_Sethi](https://forum.cursor.com/u/Raghav_Sethi)\
**Post date:** [March 21, 2026, 12:02am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/1 "2026-03-21T00:02:43Z")

</div>

### 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.

 ![CleanShot 2026-03-20 at 16.56.51@2x](https://us1.discourse-cdn.com/cursor1/original/3X/8/4/84b8b0247b9acd1842bd7b5e1bf8aeb6a58a41bb.png)

### 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

---

<div class="post-metadata">

**Author:** ![Yann\_Akoun](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/yann_akoun/32/102637_2.png) [@Yann\_Akoun](https://forum.cursor.com/u/Yann_Akoun)\
**Post date:** [March 21, 2026, 2:24am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/4 "2026-03-21T02:24:45Z")

</div>

Same here. It’s annoying

---

<div class="post-metadata">

**Author:** ![ilyapopovs](https://avatars.discourse-cdn.com/v4/letter/i/ed8c4c/32.png) [@ilyapopovs](https://forum.cursor.com/u/ilyapopovs)\
**Post date:** [March 21, 2026, 9:32pm UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/5 "2026-03-21T21:32:50Z")

</div>

Same ☹

---

<div class="post-metadata">

**Author:** ![ProEvilz](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@ProEvilz](https://forum.cursor.com/u/ProEvilz)\
**Post date:** [March 23, 2026, 3:26am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/6 "2026-03-23T03:26:24Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Looking at docs [Parallel Agents | Cursor Docs](https://cursor.com/docs/configuration/worktrees) , 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

 ![Screenshot 2026-03-23 at 03.24.12.png](https://us1.discourse-cdn.com/cursor1/original/3X/7/e/7e908f9b5d4c817657757b98e5b9c911d6d254b8.png)

### 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

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [March 24, 2026, 7:18am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/9 "2026-03-24T07:18:42Z")

</div>

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](https://cursor.com/docs/configuration/worktrees) 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.

---

<div class="post-metadata">

**Author:** ![blummis](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@blummis](https://forum.cursor.com/u/blummis)\
**Post date:** [March 25, 2026, 9:30am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/10 "2026-03-25T09:30:45Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [March 25, 2026, 5:48pm UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/11 "2026-03-25T17:48:58Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Alexander\_Clay](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Alexander\_Clay](https://forum.cursor.com/u/Alexander_Clay)\
**Post date:** [March 26, 2026, 11:42am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/12 "2026-03-26T11:42:34Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/4/5/457d222c73051f75707a7e1451555d1d1bd8b767.png)

---

<div class="post-metadata">

**Author:** ![Alexander\_Clay](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Alexander\_Clay](https://forum.cursor.com/u/Alexander_Clay)\
**Post date:** [March 26, 2026, 11:47am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/13 "2026-03-26T11:47:43Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/e/1/e183fd3e7b44a7bde2fee22fc24d52482830bcb1.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [March 26, 2026, 11:55am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/14 "2026-03-26T11:55:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Alexander\_Clay](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Alexander\_Clay](https://forum.cursor.com/u/Alexander_Clay)\
**Post date:** [March 26, 2026, 12:09pm UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/15 "2026-03-26T12:09:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![philkuz](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/philkuz/32/44044_2.png) [@philkuz](https://forum.cursor.com/u/philkuz)\
**Post date:** [March 26, 2026, 11:15pm UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/16 "2026-03-26T23:15:30Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [March 27, 2026, 9:22am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/17 "2026-03-27T09:22:53Z")

</div>

Updating my earlier reply – as @Colin explained [above](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/11), 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.

---

<div class="post-metadata">

**Author:** ![brianhempel](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/brianhempel/32/103900_2.png) [@brianhempel](https://forum.cursor.com/u/brianhempel)\
**Post date:** [April 2, 2026, 10:16pm UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/23 "2026-04-02T22:16:41Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![mohitjain](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/mohitjain/32/100229_2.png) [@mohitjain](https://forum.cursor.com/u/mohitjain)\
**Post date:** [April 3, 2026, 9:48am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/24 "2026-04-03T09:48:19Z")

</div>

Building on [deanrie’s reply above](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/23) — 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.

---

<div class="post-metadata">

**Author:** ![Nader\_Al-Naji](https://avatars.discourse-cdn.com/v4/letter/n/77aa72/32.png) [@Nader\_Al-Naji](https://forum.cursor.com/u/Nader_Al-Naji)\
**Post date:** [April 3, 2026, 11:10am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/26 "2026-04-03T11:10:38Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![GitandGeek](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/gitandgeek/32/38117_2.png) [@GitandGeek](https://forum.cursor.com/u/GitandGeek)\
**Post date:** [April 4, 2026, 1:28pm UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/27 "2026-04-04T13:28:09Z")

</div>

### 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

---

<div class="post-metadata">

**Author:** ![gemyagouatc](https://avatars.discourse-cdn.com/v4/letter/g/f07891/32.png) [@gemyagouatc](https://forum.cursor.com/u/gemyagouatc)\
**Post date:** [April 12, 2026, 9:21pm UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/28 "2026-04-12T21:21:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [June 13, 2026, 11:24am UTC](https://forum.cursor.com/t/cant-find-a-way-to-run-an-agent-on-a-worktree/155440/31 "2026-06-13T11:24:04Z")

</div>

Closed on June 13, 2026, 11:24am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
