{"version":"2.1.334","anchor":"set-cwd-gains-a-by-field-modelperson-controlling-sandbo","canonical_anchor":"set-cwd-gains-a-by-field-modelperson-controlling-sandbo","heading":"Apps can say whether Claude or a person changed folders, and the sandbox follows","tier":"notice","area":"Sandbox","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/set-cwd-gains-a-by-field-modelperson-controlling-sandbo","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Apps can say whether Claude or a person changed folders, and the sandbox follows\n\nApps that embed Claude Code can mark a folder change as made by the model or a person, which decides whether the sandbox stays on\n\n**What**\n\nApps that embed Claude Code, such as Claude Desktop, can tell it to move to another working folder. That instruction now takes an optional `by` value saying who chose the folder. It decides what happens to the sandbox, the limits on what commands may touch:\n\n- `model`: the sandbox stays on according to the settings of the folder being left.\n\n- `person`: the sandbox follows the settings of the new folder, the same way `\/cd` does.\n\n- left out: if an earlier move kept the sandbox on, it stays on.\n\nThe value only counts when it comes from the program that started Claude Code and feeds it input.\n\n**Why**\n\nIf Claude decides to change folders, it can no longer switch off the sandbox by moving somewhere with looser settings. A person choosing a folder still gets that folder's own settings.\n\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}