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.299 ·

Subagents refused a different working folder now fail with a clear error

If a subagent is not allowed to run in another folder, Claude Code now stops before starting it and says to start it without cwd

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

Unclear The conditions under which a different working folder is refused are not stated.

What

A subagent is a separate helper agent that Claude Code starts to handle part of a task. When a subagent is asked to run in a different working folder (its cwd) and that is refused, Claude Code now stops before launching it and shows an error.

The message is either:

  • "Cannot run the agent in another directory: ... Start it without cwd."
  • "A plugin's agent.spawn hook set cwd on this spawn", when a plugin's hook asked for the different folder
Why

If you or a plugin start subagents in other folders, a refusal now shows up as a clear error at launch.

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 doubtThe conditions under which a different working folder is refused are not stated.
Anthropic's release notes agreeFixed the agent.spawn mod hook not running when a finished subagent or a killed teammate is resumed: the hook's event now carries resume…

See this entry in the whole of v2.1.299 →

Feedback