Skip to content
BENIBIX Learn

/add-dir Command

Also known as /add-dir, --add-dir, Additional working directory

It lets the session work in one more folder.

Think of it like

It is like you open one more room. You keep the first one too.

Example

Jack's app uses a library that lives in a folder next to it. He runs /add-dir ../shared-lib, and Claude fixes the bug in both places in one go.

Why it matters

Real work often spans two folders. This lets one session see both without moving.

Definition

/add-dir gives the session one more folder to work in, besides the one it started in. Claude can then read and edit files there too. Most .claude settings in the added folder are not loaded, so its own skills and rules stay out. Most network paths cannot be added. The --add-dir flag does the same at start-up.

Example code

console
/add-dir ../shared-lib
Let Claude work in the shared library too.
Left: /add-dir keeps the first folder and reaches a second one.

Common mistake

Expecting the added folder's CLAUDE.md, skills and settings to load. Most of its .claude setup is not read.

Key takeaways

  1. 1
    One more folder. The first one stays.
  2. 2
    Read and edit. In both.
  3. 3
    Its setup stays out. Most of .claude.

Compare

Learn it properly