{"version":"2.1.331","anchor":"sandbox-new-gate-for-scrubbing-head-beside-git","canonical_anchor":"sandbox-new-gate-for-scrubbing-head-beside-git","heading":"The sandbox can now also handle HEAD files next to a .git folder","tier":"soon","area":"Sandbox","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/sandbox-new-gate-for-scrubbing-head-beside-git","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### The sandbox can now also handle HEAD files next to a .git folder\n\nA new switch lets the sandbox treat HEAD files of bare git repositories next to a .git folder the same way it treats lock files\n\n**What**\n\nThe sandbox is the protected space where Claude Code runs commands with limited access to your system. It treats some git files specially, and until now these were only `commondir` and `.lock` files. Behind a new switch, it now also covers the HEAD files of bare git repositories that sit next to a `.git` folder. It also keeps track of denied git files and added folders each time it sets itself up.\n\n**Why**\n\nThis tightens the sandbox on Linux and WSL around git files that could otherwise be left exposed.\n\n- Area: Sandbox\n- Tier: Nothing to try yet\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}