You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release
What
The --add-dir flag gives Claude Code access to extra working folders. When you start a background session with it (a session that runs on its own while you do other things), Claude Code now checks that each added folder is trusted. If a folder isn't, Claude Code stops with exit code 1 and the message "Added folder not trusted:" followed by that folder.
Why
Before this, starting a background session with an extra folder could skip the trust question that normally protects you from untrusted folders. If a background start fails with this message, open that folder in Claude Code once and trust it.
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.
Confirmed sinceAnthropic's documentation has since written up --add-dir, on Claude Code changelog.* Changed `--worktree` with a relative `--add-dir` beside the launch folder to give the Bash sandbox that folder, not one beside the worktreechangelogsee the edit
Added sinceA small documentation edit on CLI reference touched a line naming --add-dir after this was published.| `--bare` | Minimal mode: skip auto-discovery of your hooks and of skills, custom commands, subagents, installed plugins, MCP servers, auto memory, and CLAUDE.md so scripted calls start faster. Skills in a directory you pass with `--add-d…cli-referencesee the edit
How sure we are
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agreesA small documentation edit on CLI reference touched a line naming --add-dir after this was published.
Anthropic's release notes agreeFixed a prompt typed after --add-dir, --allowedTools or another list option being dropped without a message