You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Bug FixesKind: in v2.1.327,
Bug FixesSection of the release
Unclear It is not clear which launches use the rewritten paths, so it is unclear when a relative --add-dir path now points somewhere different.
What
--add-dir gives Claude access to extra folders. --worktree (or -w) starts Claude in a separate git worktree, which is a second working copy of your repository in its own folder. Claude Code now picks the --add-dir values out of the command line and rewrites them, taking into account whether --worktree was also given.
The workspace trust check reads --add-dir values in this same way. That check asks whether you trust a folder before Claude works in it. It used to read the values separately, without rewriting them.
Why
This affects how relative --add-dir paths behave in worktree and background launches. A relative path is one written from the current folder, such as ../shared.
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 --worktree, on Run parallel sessions with worktrees.Pass `--worktree` or `-w` with a name to create a worktree and start Claude in it. By default, the worktree is created under `.claude/worktrees/<name>/` at your repository root, on a new branch named `worktree-<name>`:worktreessee the edit
Confirmed sinceAnthropic's documentation has since written up --add-dir, on Configure permissions.> If you use `claude --add-dir` or `/add-dir` in an interactive terminal session to add a folder your [workspace trust](#project-allow-rules-and-workspace-trust) doesn't cover, Claude Code asks you to trust it first. Requires Claude Code v…permissionssee the edit
Added sinceA small documentation edit on Create custom subagents touched a line naming --add-dir after this was published.Claude Code skips a file in a project, user, or managed `agents` directory, or in one under a directory you add with `--add-dir`, when the frontmatter has any of these problems:sub-agentssee the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear which launches use the rewritten paths, so it is unclear when a relative `--add-dir` path now points somewhere different.
Anthropic's documentation agreesA small documentation edit on Create custom subagents touched a line naming --add-dir after this was published.
Anthropic's release notes agreeChanged --worktree with a relative --add-dir beside the launch folder to give the Bash sandbox that folder, not one beside the worktree