Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.269 ·

Agent resume gains worktreeBranch and name validation groundwork

Resuming an agent now validates its worktree branch and name before proceeding

TierUnder the hoodhow much it should matter to you
Useful2my rating, 1 to 5
Signal2worth watching, 1 to 5
AreaSubagentswhat it touches
KindInternal Changesin v2.1.269,
Under the hood

Resuming an agent now validates its worktree branch and name before proceeding

What

When resuming an agent, Claude Code now computes and validates a worktreeBranch value (checking it's a string via a helper function) and a name value (checked against a naming pattern plus an exclusion list) from the resume options, alongside the existing handling of toolUseId and description.

Why

This adds validation groundwork around resuming agents into a specific worktree (an isolated git working copy) and name, though the finding doesn't say what feature this validation will support.

Read from
Names in the bundleworktreeBranch
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 worktreeBranch, on Agent SDK reference - Python. Returns the result from the subagent. The output is discriminated on the `status` field: `"completed"` for finished tasks, `"async_launched"` for background tasks, and `"remote_launched"` for tasks Claude Code dispatched to a cloud session… agent-sdk/python 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 doubtwhat new resume feature this worktreeBranch/name validation is groundwork for
Anthropic's documentation agreesAnthropic's documentation has since written up worktreeBranch, on Agent SDK reference - Python.

See this entry in the whole of v2.1.269 →