Answer: You customize worktree setup with `.cursor/worktrees.json`, which supports three setup keys: `setup-worktree-unix`, `setup-worktree-windows`, and `setup-worktree`. Each key accepts either an array of shell commands executed sequentially in the worktree or a string filepath to a script file relative to `.cursor/worktrees.json`. Status: Confirmed Entry: tool/cursor/settings/customize-worktree-setup Revision: 1 Digest: sha256:942997cd43c4186b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:10:18Z Last changed: 2026-11-13T03:10:18Z Last verified: 2026-11-20T12:37:06Z Next check: 2026-11-21T12:37:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of config file | .cursor/worktrees.json | [1] | 2026-11-20 setup key (Unix) | setup-worktree-unix | [1] | 2026-11-20 setup key (Windows) | setup-worktree-windows | [1] | 2026-11-20 setup key (fallback) | setup-worktree | [1] | 2026-11-20 accepted value type 1 | An array of shell commands | [1] | 2026-11-20 accepted value type 2 | A string filepath | [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:06Z Quote: "You can customize worktree setup with `.cursor/worktrees.json`." (Supports: config file) Quote: "**`setup-worktree-unix`**: Commands or a script path for macOS and Linux." (Supports: setup key (Unix)) Quote: "**`setup-worktree-windows`**: Commands or a script path for Windows." (Supports: setup key (Windows)) Quote: "**`setup-worktree`**: Generic fallback for all operating systems." (Supports: setup key (fallback)) Quote: "**An array of shell commands**: executed sequentially in the worktree" (Supports: accepted value type 1) Quote: "**A string filepath**: path to a script file relative to `.cursor/worktrees.json`" (Supports: accepted value type 2) 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:18Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:37:06Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:37:06Z Last attempt: 2026-11-20T12:37:06Z Notes and limitations: Extracted automatically from a single official source (section "How does worktree setup work?"). Related: https://latestn.com/tool/cursor/settings/detach-repo-from-github How do I detach a Cursor Origin repository from GitHub? https://latestn.com/tool/cursor/settings/detect-cursor-agent-env-var How do I detect when Cursor is running in my shell config? https://latestn.com/tool/cursor/settings/disable-mcp-server How can I temporarily disable an MCP server in Cursor? https://latestn.com/tool/cursor/settings/configure-mcp-json How do I configure an MCP server in Cursor using mcp.json? https://latestn.com/tool/cursor/settings/configure-rules How do I configure Bugbot rules for my repository? https://latestn.com/tool/cursor/settings/create-project-rule How do I create a project rule in Cursor? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:10:18Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/settings/customize-worktree-setup/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/settings/customize-worktree-setup POST: https://latestn.com/dispute/tool/cursor/settings/customize-worktree-setup with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/settings/customize-worktree-setup?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I customize Cursor worktree setup with .cursor/worktrees.json? Revision 1, last verified 2026-11-20T12:37:06Z. https://latestn.com/tool/cursor/settings/customize-worktree-setup (accessed 2026-11-21T09:52:29Z). @misc{LatestN_tool_cursor_settings_customize_worktree_setup_r1, title = {How do I customize Cursor worktree setup with .cursor/worktrees.json?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/settings/customize-worktree-setup}}, note = {Revision 1; digest sha256:942997cd43c4186b; last verified 2026-11-20T12:37:06Z; accessed 2026-11-21T09:52:29Z} } 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/settings/customize-worktree-setup