Answer: Set `local.cwd` to set the parent directory for local session workspaces; each session uses `/` unless a per-send `workspaceDir` overrides it. Status: Confirmed Entry: tool/cursor/agents-and-automation/local-cwd-option Revision: 1 Digest: sha256:0371ab8d7ad5ea1c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:08:45Z Last changed: 2026-11-13T03:08:45Z Last verified: 2026-11-20T12:33:30Z Next check: 2026-11-21T12:33:30Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of setting | local.cwd | [1] | 2026-11-20 session workspace path | / | [1] | 2026-11-20 override | workspaceDir | [1] | 2026-11-20 Sources: [1] Anysphere. "cursor.com/docs/agent-sdk/reference/agent-config.md". https://cursor.com/docs/agent-sdk/reference/agent-config.md Role: primary. Accessed: 2026-11-20T12:33:30Z Quote: "`local.cwd` sets the parent directory for local session workspaces." (Supports: setting) Quote: "Each session uses `/` unless a per-send `workspaceDir` overrides it." (Supports: session workspace path) Quote: "unless a per-send `workspaceDir` overrides it" (Supports: override) Snapshot SHA-256: 7574d56863c59152980745ae49994194e50f7dbc586b4c482c23edafa57dd9fa (captured 2026-11-13T03:08:44Z) 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:08:45Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:33:30Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:33:30Z Last attempt: 2026-11-20T12:33:30Z Notes and limitations: Extracted automatically from a single official source (section "Local cwd"). Related: https://latestn.com/tool/cursor/agents-and-automation/lock-kept-wins How do I lock every kept win in Cursor hillclimbing? https://latestn.com/tool/cursor/agents-and-automation/machine-selection How does Cursor decide which My Machines worker runs a request, and when can a worker= request fail? https://latestn.com/tool/cursor/agents-and-automation/manage-cloud-agent-builds How do I trigger or manage a Cloud Agent Build in Cursor? https://latestn.com/tool/cursor/agents-and-automation/instruction-authoring-forms What forms can I use to author instructions for a Cursor agent? https://latestn.com/tool/cursor/agents-and-automation/instruction-delivery-local-cloud How are Cursor agent instructions delivered to local versus cloud turns? https://latestn.com/tool/cursor/agents-and-automation/jev-review-turns How do I use Jev to decide whether a pull request needs review in Cursor? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:08:45Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/cursor/agents-and-automation/local-cwd-option/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/agents-and-automation/local-cwd-option POST: https://latestn.com/dispute/tool/cursor/agents-and-automation/local-cwd-option with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/cursor/agents-and-automation/local-cwd-option?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set the working directory (cwd) for a local Cursor agent run? Revision 1, last verified 2026-11-20T12:33:30Z. https://latestn.com/tool/cursor/agents-and-automation/local-cwd-option (accessed 2026-11-21T10:07:25Z). @misc{LatestN_tool_cursor_agents_and_automation_local_cwd_option_r1, title = {How do I set the working directory (cwd) for a local Cursor agent run?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/cursor/agents-and-automation/local-cwd-option}}, note = {Revision 1; digest sha256:0371ab8d7ad5ea1c; last verified 2026-11-20T12:33:30Z; accessed 2026-11-21T10:07:25Z} } 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/agents-and-automation/local-cwd-option