{"name":"\/cd","slug":"cd","family":"slash","title":"Slash commands","noun":"slash command","description":"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)","description_source":"docs","described_by":{"doc":"claude-code\/commands","title":"Commands"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.281","anchor":"cd-drops-the-environment-block-is-stale-sentence-when-no","heading":"\/cd drops the 'environment block is stale' sentence when no request has been built yet","line":"After \/cd, Claude is only told its startup directory info is out of date if a request had already been sent","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.277","anchor":"cd-directory-move-gains-a-fresh-session-reset-path-for","heading":"\/cd (directory-move) gains a 'fresh session' reset path for remote set_cwd","line":"\/cd can now fully reset session state when changing directory on a still-fresh session","released_at":"2026-09-18 16:22:26","reason":"found in this entry's text, named in this entry"},{"version":"2.1.277","anchor":"set-cwd-headless-cd-now-documented-to-re-anchor-session-s","heading":"set_cwd (headless \/cd) now documented to re-anchor session state before the first turn","line":"The internal \/cd tool now re-anchors a session's whole state when the move happens before any turn has run","released_at":"2026-09-18 16:22:26","reason":"found in this entry's text, named in this entry"},{"version":"2.1.246","anchor":"cd-rebuilt-one-routine-re-homes-everything-and-it-tells-you-","heading":"\/cd rebuilt: one routine re-homes everything, and it tells you what was left behind","line":"\/cd now re-points transcript, settings, hooks and skills in one pass and reports anything left behind.","released_at":"2026-08-25 19:17:34","reason":"named in this entry, found in this entry's text"},{"version":"2.1.246","anchor":"cd-tells-you-what-the-new-directory-would-grant-before-you-t","heading":"\/cd tells you what the new directory would grant before you trust it","line":"\/cd into an untrusted folder now lists exactly what its settings would grant before you trust it.","released_at":"2026-08-25 19:17:34","reason":"named in this entry, found in this entry's text"},{"version":"2.1.246","anchor":"skills-and-commands-follow-the-session-when-it-changes-direc","heading":"Skills and commands follow the session when it changes directory","line":"Using \/cd now makes skills and slash commands follow you to the new directory.","released_at":"2026-08-25 19:17:34","reason":"named in this entry, found in this entry's text"},{"version":"2.1.246","anchor":"trust-dialog-gets-a-stricter-variant-when-a-directory-is-onl","heading":"Trust dialog gets a stricter variant when a directory is only trusted through its parent","line":"The trust prompt got rewritten and now ignores an Enter or Esc that arrives too fast.","released_at":"2026-08-25 19:17:34","reason":"named in this entry, found in this entry's text"},{"version":"2.1.246","anchor":"settings-watcher-can-re-home-and-report-whether-it-is-watchi","heading":"Settings watcher can re-home and report whether it is watching","line":"The settings file watcher re-points itself after you change directory mid-session.","released_at":"2026-08-25 19:17:34","reason":"named in this entry, found in this entry's text"},{"version":"2.1.246","anchor":"cd-says-when-mcp-server-approvals-could-not-be-saved","heading":"\/cd says when MCP server approvals could not be saved","line":"\/cd now warns when your MCP server approvals couldn't be saved and names the file to check.","released_at":"2026-08-25 19:17:34","reason":"named in this entry, found in this entry's text"},{"version":"2.1.200","anchor":"set-cwd-sdk-tool","heading":"set_cwd SDK Tool","line":null,"released_at":"2026-07-03 04:33:49","reason":"found in this entry's text"}],"entries_total":10,"docs":[{"source":"claude-code","path":"commands","title":"Commands","documented":true}],"docs_total":1,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/slash\/cd","family_url":"https:\/\/changelogs.core-directive.com\/reference\/slash.json"}