{"version":"2.1.299","anchor":"subagent-cwd-is-refused-with-a-clear-error","canonical_anchor":"subagent-cwd-is-refused-with-a-clear-error","heading":"Subagents refused a different working folder now fail with a clear error","tier":"notice","area":"Subagents","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.299\/e\/subagent-cwd-is-refused-with-a-clear-error","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.299","markdown":"### Subagents refused a different working folder now fail with a clear error\n\nIf a subagent is not allowed to run in another folder, Claude Code now stops before starting it and says to start it without cwd\n\n**Unclear.** The conditions under which a different working folder is refused are not stated.\n\n**What**\n\nA 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.\n\nThe message is either:\n\n- \"Cannot run the agent in another directory: ... Start it without cwd.\"\n\n- \"A plugin's agent.spawn hook set cwd on this spawn\", when a plugin's hook asked for the different folder\n\n**Why**\n\nIf you or a plugin start subagents in other folders, a refusal now shows up as a clear error at launch.\n\n- Area: Subagents\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}