{"version":"2.1.324","anchor":"sandbox-git-dir-protection-handles-symlinked-worktrees-and","canonical_anchor":"sandbox-git-dir-protection-handles-symlinked-worktrees-and","heading":"The sandbox guards protected files more carefully against links","tier":"notice","area":"Sandbox","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/sandbox-git-dir-protection-handles-symlinked-worktrees-and","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### The sandbox guards protected files more carefully against links\n\nSandbox write protection now follows symbolic links, handles .mcp.json more cases, and gives clearer warnings and failure reasons\n\n**What**\n\nThe sandbox is a restricted environment that limits which files commands run by Claude Code can read or change. Claude Code uses it to keep some files, such as git's own folders and `.mcp.json`, from being changed. Several parts of this protection changed:\n\n- Links: Claude Code now follows symbolic links (shortcuts that point to another location) when working out which paths to block.\n\n- Worktrees folder: Claude Code warns when a worktrees folder is a link that points to another computer.\n\n- `.mcp.json`: the block now also holds when the file cannot be accessed because of permissions, and when the file does not exist.\n\n- Moved-aside files: the message saying a suspicious file was moved aside now tells you to inspect it first.\n\n- Start-up failures: when the sandbox fails to start, the reason given names its source more precisely.\n\n**Why**\n\nThese changes make it harder to get around the sandbox's write protection by using links that point somewhere else.\n\n- Flag `tengu_mighty_thimble`: Not enough to say (read for one account on one subscription tier against v2.1.324; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: yes"}