⌨️Additional Directories
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
Example code
json
{
"permissions": {
"additionalDirectories": ["../shared-lib"]
}
}Common mistake
Key takeaways
- 1Flag, command or setting. Three ways.
- 2Same rules. As the main folder.
- 3Files only. Not settings.