Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

--add-dir paths are adjusted when combined with --worktree

Claude Code now rewrites --add-dir paths when --worktree is used, and the workspace trust check reads them the same way

You'll notice Bug Fixes
JSON All of v2.1.327
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.

Read from
Names in the bundle--add-dir--worktree
Since it was published

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 since Anthropic'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>`: worktrees see the edit
Confirmed since Anthropic'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… permissions see the edit
Added since A 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-agents see 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

See this entry in the whole of v2.1.327 →

Feedback