Unclear It is not clear whether the rewritten check now accepts or rejects any paths differently.
--add-dir lets Claude read and edit files in extra folders. When a directory is rejected because it is outside the allowed area, the message now says it is not a subdirectory of the session's working directory or of a launch-time --add-dir root. Before, it said "cwd".
The check behind it was also rewritten. It now compares against the session's own working directory and uses a shared comparison step.
If you hit this error, the message says plainly which folder it compared against.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
* On Windows, map the share to a drive letter and pass the drive at launch. In PowerShell, for example, run `net use Z: \\server\share` and then `claude --add-dir Z:\`.errors see the edit
Claude reads files in your session's [working directories](/docs/en/permissions#working-directories), and in the temporary directory it writes pages to, without asking. To let Claude publish from another folder without the prompt, add the …artifacts see the edit
It is not clear whether the rewritten check now accepts or rejects any paths differently.
Anthropic's documentation has since written up --add-dir, on Share session output as artifacts.