Skip to content
BENIBIX Learn

Additional Directories

AI⌨️ Claude CodeConfiguration

Also known as additionalDirectories, --add-dir, /add-dir

More folders Claude may read and edit, beside the first one.

Think of it like

It is like you open a door to a second room.

Example

Jack's app uses a shared library in the next folder over. He adds it, and Claude can fix both in one session.

Why it matters

Real work often spans two folders. This opens the second one and no more.

Definition

Additional directories are extra folders Claude may read and edit, beside the one you started in. Add them with a flag, a command or a list in settings. They follow the same rules as the main folder. They give file access only. Most of their own settings do not load.

Example code

json
{
  "permissions": {
    "additionalDirectories": ["../shared-lib"]
  }
}
Let Claude work in a sibling folder too.
The added folders sit beside the main one.

Common mistake

Expecting the added folder's settings and hooks to load. It grants file access, not setup.

Key takeaways

  1. 1
    Flag, command or setting. Three ways.
  2. 2
    Same rules. As the main folder.
  3. 3
    Files only. Not settings.

Compare