Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

/cd

slash never mined documented JSON

A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.

Move this session to a new working directory, keeping the conversation. Type a partial path to see matching directory suggestions; press Tab to accept one. The suggestions require Claude Code v2.1.206 or later. For what Claude Code applies from the new directory as soon as you move, and how /cd differs from /add-dir, see Move the session to another directory

Anthropic's own wording. Read off Commands, captured 2026-09-28.

First seen — never in a mined build
Last seen — never in a mined build
Builds0 / 149on this box, as of v2.1.308
Written about v2.1.200 first named in a changelog, 3 Jul 2026

In the changelogs

10

Releases whose published page names /cd.

  1. v2.1.281
    /cd drops the 'environment block is stale' sentence when no request has been built yet

    After /cd, Claude is only told its startup directory info is out of date if a request had already been sent

    found in this entry's text, named in this entry

  2. v2.1.277
    /cd (directory-move) gains a 'fresh session' reset path for remote set_cwd

    /cd can now fully reset session state when changing directory on a still-fresh session

    found in this entry's text, named in this entry

  3. v2.1.277
    set_cwd (headless /cd) now documented to re-anchor session state before the first turn

    The internal /cd tool now re-anchors a session's whole state when the move happens before any turn has run

    found in this entry's text, named in this entry

  4. v2.1.246
    /cd rebuilt: one routine re-homes everything, and it tells you what was left behind

    /cd now re-points transcript, settings, hooks and skills in one pass and reports anything left behind.

    named in this entry, found in this entry's text

  5. v2.1.246
    /cd tells you what the new directory would grant before you trust it

    /cd into an untrusted folder now lists exactly what its settings would grant before you trust it.

    named in this entry, found in this entry's text

  6. v2.1.246
    Skills and commands follow the session when it changes directory

    Using /cd now makes skills and slash commands follow you to the new directory.

    named in this entry, found in this entry's text

  7. v2.1.246
    Trust dialog gets a stricter variant when a directory is only trusted through its parent

    The trust prompt got rewritten and now ignores an Enter or Esc that arrives too fast.

    named in this entry, found in this entry's text

  8. v2.1.246
    Settings watcher can re-home and report whether it is watching

    The settings file watcher re-points itself after you change directory mid-session.

    named in this entry, found in this entry's text

  9. v2.1.246
    /cd says when MCP server approvals could not be saved

    /cd now warns when your MCP server approvals couldn't be saved and names the file to check.

    named in this entry, found in this entry's text

  10. v2.1.200
    set_cwd SDK Tool

    found in this entry's text

First cited

0

No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.

Presence across releases

0

The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.

Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.

Feedback