I only ever open Documents/Code/mono. I have never run git worktree add. There are dozens of worktrees under .cursor/worktrees/mono/ with three-letter names (e.g. dnh, mnm, uqg). Something is creating these automatically. Please confirm whether Cursor or a Cursor Git integration creates worktrees, and whether this can be disabled so I stay in the main repo.
Steps to Reproduce
I don’t know what started this - I’ve been using cursor fine
Expected Behavior
The agent makes edits in my worktree instead of creating a new one every few minutes and sprinkling its edits in them
Hey, thanks for the report. Worktrees in .cursor/worktrees/ are created automatically when you use Parallel Agents or Best-of-N (the “Use Multiple Models” option). Each agent run gets its own worktree so it can make changes in isolation, so folders with three-letter names are expected.
A couple questions to narrow this down:
When you send a request, do you select “Use Multiple Models” or run agents in worktree mode (there’s a dropdown at the top of the agent panel)? If you want the agent to edit your working copy directly, make sure you’re using a single local (Local) agent.
If you’re already using a single local agent but worktrees are still being created, that’s a bug. Can you confirm?
I did spend some time using multiple models running concurrently. I managed to put this particular agent in a state where I couldn’t select any options for
I’m not sure what steps I took to get here. However a new agent window shows what I’m used to seeing where I can be sure I’m not running parallel agents.