Answer: Start a task with `/worktree` when you want Cursor to do the rest of that chat in a separate checkout, for example by typing `/worktree fix the failing auth tests and update the login copy`. You can then commit and push directly from the worktree, use `/apply-worktree` to bring changes into your main checkout, and use `/delete-worktree` when done. Status: Confirmed Entry: tool/cursor/commands-and-shortcuts/worktree-command-ide Revision: 1 Digest: sha256:13747e926310056c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:10:19Z Last changed: 2026-11-13T03:10:19Z Last verified: 2026-11-20T12:37:09Z Next check: 2026-11-21T12:37:09Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command | /worktree | [1] | 2026-11-20 example usage | /worktree fix the failing auth tests and update the login copy | [1] | 2026-11-20 apply command | /apply-worktree | [1] | 2026-11-20 delete command | /delete-worktree | [1] | 2026-11-20 list worktrees command | git worktree list | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/configuration/worktrees.md". https://cursor.com/docs/configuration/worktrees.md Role: primary. Accessed: 2026-11-20T12:37:09Z Quote: "Start a task with `/worktree` when you want Cursor to do the rest of that chat in a separate checkout." (Supports: command) Quote: "/worktree fix the failing auth tests and update the login copy" (Supports: example usage) Quote: "If you want to bring the changes into your main checkout to test them, use `/apply-worktree`." (Supports: apply command) Quote: "When you are done with the isolated checkout, use `/delete-worktree`." (Supports: delete command) Quote: "git worktree list" (Supports: list worktrees command) Snapshot SHA-256: cc4e372cea406d6f15d4bbfc1a7cc6b680781163fa1d6ed680b34fb52ab4e79d (captured 2026-11-13T03:10:18Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:10:19Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:37:09Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:37:09Z Last attempt: 2026-11-20T12:37:09Z Notes and limitations: Extracted automatically from a single official source (section "Use `/worktree` for one isolated run"). Related: https://latestn.com/tool/cursor/features/agent-review-depth What review depth options does Cursor Agent Review support? https://latestn.com/tool/cursor/features/agent-tools-list What tools can Cursor Agent use during a task? https://latestn.com/tool/cursor/features/api-caching How does caching work in the Cursor APIs? https://latestn.com/tool/cursor/commands-and-shortcuts/switch-to-plan-mode How do I switch to Plan Mode in Cursor? https://latestn.com/tool/cursor/commands-and-shortcuts/target-pull-request How do I target a specific pull request with Cursor Origin CLI commands? https://latestn.com/tool/cursor/commands-and-shortcuts/teams-commands-options What commands and options can I use with @Cursor in Microsoft Teams? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:10:19Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/commands-and-shortcuts/worktree-command-ide/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/cursor/commands-and-shortcuts/worktree-command-ide POST: https://latestn.com/dispute/tool/cursor/commands-and-shortcuts/worktree-command-ide with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/commands-and-shortcuts/worktree-command-ide?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I use the /worktree command in Cursor IDE? Revision 1, last verified 2026-11-20T12:37:09Z. https://latestn.com/tool/cursor/commands-and-shortcuts/worktree-command-ide (accessed 2026-11-21T09:57:22Z). @misc{LatestN_tool_cursor_commands_and_shortcuts_worktree_command_ide_r1, title = {How do I use the /worktree command in Cursor IDE?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/commands-and-shortcuts/worktree-command-ide}}, note = {Revision 1; digest sha256:13747e926310056c; last verified 2026-11-20T12:37:09Z; accessed 2026-11-21T09:57:22Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/cursor/commands-and-shortcuts/worktree-command-ide