Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.337 ·

Resumed background agents are checked against worktree permission rules

A background agent resumed after a restart is now blocked if your permission rules forbid agents running in a worktree

You'll notice Improvements
JSON All of v2.1.337
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
AgentsArea: what it touches
ImprovementsKind: in v2.1.337,
ImprovementsSection of the release
What

A background agent is a helper that carries on with a task by itself while you keep working. A worktree is a separate working copy of your project folder that git can create, so an agent can make changes away from your main copy.

When Claude Code resumes a background agent, it checks the agent against your current permission rules. That check now also covers which model the agent uses and whether it was started in a worktree. If the agent was started in a worktree and your rules now block that, or require approval for it, Claude Code stops with this message: "This session's permission rules now block an agent in a worktree, or require approval for one."

Saved records of agents to resume now remember the model and whether the agent was in a worktree.

Why

An agent brought back after a restart can no longer slip past rules you set for agents in worktrees.

See this entry in the whole of v2.1.337 →

Feedback