Claude Desktop/code-session
Start a Claude Code session
Launches Claude Code from the desktop app, with a prompt and working directory.
Format
claude://code/new?q={prompt}&folder={folder}Try it
claude://code/new?q=Fix%20the%20failing%20test&folder=%2FUsers%2Fme%2FrepoOpenWhat you supply
{prompt}optionalText to place in the composer.
promptis accepted as an alias forq.{folder}optionalAbsolute path to use as the working directory.
URL-encode the path — the slashes become
%2F.
Note there is no claude.ai host on this one. Chat links have it, the agent surfaces do not.
The folder confirmation always appears. Folders arriving by link are treated as untrusted every time, even ones you have trusted before, so this link cannot silently drop an agent into a directory.
A file parameter is accepted but does nothing today.
This is the desktop app's route into Claude Code. For a link that opens Claude Code directly in a terminal instead, see claude-code.