# Multi-agent bug - Failed to create Git worktree

**URL:** <https://forum.cursor.com/t/multi-agent-bug-failed-to-create-git-worktree/140278>\
**Category:** Bug Reports\
**Created:** [October 31, 2025, 5:54pm UTC](https://forum.cursor.com/t/multi-agent-bug-failed-to-create-git-worktree/140278 "2025-10-31T17:54:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wenli](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@wenli](https://forum.cursor.com/u/wenli)\
**Post date:** [October 31, 2025, 5:54pm UTC](https://forum.cursor.com/t/multi-agent-bug-failed-to-create-git-worktree/140278/1 "2025-10-31T17:54:35Z")

</div>

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

Cursor IDE

### Describe the Bug

I couldn’t run multi-agent. When I was trying to do that, I got error messages across all the agents:

Failed to create Git worktree: Error executing git: Preparing worktree (detached HEAD bd190a9) fatal: ‘/Users/wli/.cursor/worktrees/api/ZMR40’ already exists , cwd: /Users/wli/projects/api, command: “git worktree add --detach /Users/wli/.cursor/worktrees/api/ZMR40 bd190a91ec52811b14bf7e9cd56e72d3274edf52”

### Steps to Reproduce

1. Go into Agents mode.
2. Select multiple agents.
3. Enter any prompt.

### Expected Behavior

The expected behavior is for the agents to run successfully.

### Screenshots / Screen Recordings

 ![Screenshot 2025-10-29 at 4.30.40 PM.png](https://us1.discourse-cdn.com/cursor1/original/3X/a/d/ad9df0261df52d638c299280dc738a7051c1a0ce.png)

### Operating System

MacOS

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.38  
VSCode Version: 1.99.3  
Commit: 3fa438a81d579067162dd8767025b788454e6f90  
Date: 2025-10-29T20:45:40.883Z  
Electron: 34.5.8  
Chromium: 132.0.6834.210  
Node.js: 20.19.1  
V8: 13.2.152.41-electron.0  
OS: Darwin arm64 23.6.0

### For AI issues: which model did you use?

Any model will break as long as it’s using the multi-agent capability.

### For AI issues: add Request ID with privacy disabled

None. The agents weren’t even kicked off.

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<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:** [November 22, 2025, 5:55pm UTC](https://forum.cursor.com/t/multi-agent-bug-failed-to-create-git-worktree/140278/2 "2025-11-22T17:55:07Z")

</div>

Closed on November 22, 2025, 5:55pm UTC

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