Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.222 ·

Agent state writes preserve worktree provenance

Agent records keep their worktree history across saves, so lineage info no longer gets wiped.

You'll notice Internal Changes
JSON All of v2.1.222
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
WorktreesArea: what it touches
Internal ChangesKind: in v2.1.222,
Internal ChangesSection of the release
What

Persisting an agent record no longer loses the worktree lineage fields that were set by an earlier write.

Details
  • A new persistence wrapper reloads the previous agent record before writing.
  • It carries over parentAgentId, inheritedWorktreePath, spawnedWithWorktree and worktreeCleanlyRemoved.
  • worktreePath and worktreeBranch are deleted when the prior record had none.
Evidence

inheritedWorktreePath

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.222 →

Feedback