Skip to content
BENIBIX Learn

/cd Command

Also known as /cd, Change working directory

It moves the session to a new folder. The chat stays.

Think of it like

It is like you take your notes to a new room. Then you work there.

Example

Lucy planned a change with Claude in the web app folder. The real work is in the API, so she runs /cd ../api and goes on with the same chat.

Why it matters

You do not have to start over and explain the task again just because the work moved.

Definition

/cd moves the session to a new working folder and keeps the chat. Claude then works from that folder, as if the session had started there. Type part of a path to see matching folders, and press Tab to pick one. It is different from /add-dir, which keeps the first folder and adds a second one.

Example code

console
/cd ../api
Move this session to the api folder.
Right: /cd moves the whole session to the other folder.

Common mistake

Using /cd when you need both folders. After the move, the first folder is no longer where the session works. Use /add-dir for both.

Key takeaways

  1. 1
    Moves the session. To a new folder.
  2. 2
    Keeps the chat. Nothing is lost.
  3. 3
    Not /add-dir. One folder, not two.

Compare

Learn it properly