Answer: Use `cwd` when everyone who clicks the link has the project at the same absolute path, such as a standardized devcontainer or VM image; use `repo` when the link is shared and each person clones to a different location. With `repo`, Claude Code resolves the slug to a local path by opening the linked repository's clone or worktree where you most recently ran `claude`. Status: Confirmed Entry: tool/claude-code/integrations/cwd-vs-repo-parameter Revision: 1 Digest: sha256:21a7739698d5ef60 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:57Z Last changed: 2026-11-13T03:03:57Z Last verified: 2026-11-20T12:20:06Z Next check: 2026-11-21T12:20:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of cwd use case | everyone who clicks the link has the project at the same absolute path | [1] | 2026-11-20 repo use case | the link is shared and each person clones to a different location | [1] | 2026-11-20 repo resolution | opens the linked repository's clone or worktree where you most recently ran `claude` | [1] | 2026-11-20 branch behavior | The link does not change which branch is checked out. | [1] | 2026-11-20 Sources: [1] Anthropic. "Launch sessions from links". https://code.claude.com/docs/en/deep-links.md Role: primary. Accessed: 2026-11-20T12:20:06Z Quote: "Use `cwd` when everyone who clicks the link has the project at the same absolute path" (Supports: cwd use case) Quote: "Use `repo` when the link is shared and each person clones to a different location." (Supports: repo use case) Quote: "`repo` opens the linked repository's clone or worktree where you most recently ran `claude`." (Supports: repo resolution) Quote: "The link does not change which branch is checked out." (Supports: branch behavior) Published: 2026-11-20T10:36:06Z Snapshot SHA-256: 9a2ba767a17696ddcfe7f1cc0b6d3f8da82882922555fd605045b6e18eeb3f8f (captured 2026-11-13T03:03:57Z) 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:03:57Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:20:06Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:20:06Z Last attempt: 2026-11-20T12:20:06Z Notes and limitations: Extracted automatically from a single official source (section "Choose between `cwd` and `repo`"). Related: https://latestn.com/tool/claude-code/integrations/disable-mcp-server-without-removing How do I disable an MCP server in Claude Code without removing it? https://latestn.com/tool/claude-code/integrations/eligible-marketplaces-for-hints Which marketplaces qualify for Claude Code CLI plugin hints? https://latestn.com/tool/claude-code/integrations/emit-claude-code-hint-tag How do I emit a claude-code-hint tag from my CLI so Claude Code users are prompted to install my plugin? https://latestn.com/tool/claude-code/integrations/connect-claude-code-to-gateway How do I connect Claude Code to an LLM gateway my organization already runs? https://latestn.com/tool/claude-code/integrations/connect-github-repository How do I connect a GitHub repository to Claude Code cloud sessions? https://latestn.com/tool/claude-code/integrations/connect-tools What tools and integrations can I connect to Claude Code, like Chrome, Slack, or CI/CD? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:03:57Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/integrations/cwd-vs-repo-parameter/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/claude-code/integrations/cwd-vs-repo-parameter POST: https://latestn.com/dispute/tool/claude-code/integrations/cwd-vs-repo-parameter with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/integrations/cwd-vs-repo-parameter?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is the difference between the cwd and repo parameters in a Claude Code deep link? Revision 1, last verified 2026-11-20T12:20:06Z. https://latestn.com/tool/claude-code/integrations/cwd-vs-repo-parameter (accessed 2026-11-21T09:57:42Z). @misc{LatestN_tool_claude_code_integrations_cwd_vs_repo_parameter_r1, title = {What is the difference between the cwd and repo parameters in a Claude Code deep link?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/integrations/cwd-vs-repo-parameter}}, note = {Revision 1; digest sha256:21a7739698d5ef60; last verified 2026-11-20T12:20:06Z; accessed 2026-11-21T09:57:42Z} } 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/claude-code/integrations/cwd-vs-repo-parameter