/cd
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.
What it is
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](/docs/en/permissions#move-the-session-to-another-directory). Requires Claude Code v2.1.169 or later
Anthropic's own wording. Read off Commands, captured 2026-08-28.
Presence across releases
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.
Changelog entries naming it
-
v2.1.246
/cdrebuilt: 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
-
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
-
v2.1.246Skills 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
-
v2.1.246Trust 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
-
v2.1.246Settings 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
-
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
Documentation pages
- Commands reference table Claude Code CLI
A reference table page is one whose own table defines this name, and it is where the description above came from. A page that mentions it carries the name somewhere in its text and may say nothing about it at all. Every page carrying it.
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.