{"version":"2.1.271","anchor":"new-scratchpad-file-save-safety-check-for-githooktoolagen","canonical_anchor":"new-scratchpad-file-save-safety-check-for-githooktoolagen","heading":"New scratchpad file-save safety check for git\/hook\/tool\/agent config paths","tier":"notice","area":"File Safety","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271\/e\/new-scratchpad-file-save-safety-check-for-githooktoolagen","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.271","markdown":"### New scratchpad file-save safety check for git\/hook\/tool\/agent config paths\n\nClaude Code now sets aside fetched files instead of saving them into protected config directories or symlinked paths\n\n**What**\n\nWhen Claude Code fetches a file and its destination would land inside a protected directory, such as a git internals folder, or a hooks, tool, or agent configuration directory, or the destination is a symlink pointing outside the current working scratch area, the file is no longer written there. Instead, Claude Code shows a message explaining the file was 'set aside' rather than saved, and a new filtering step checks each candidate destination for this condition before saving.\n\n**Why**\n\nThis stops a fetched file from silently landing somewhere that could alter git behavior, hooks, or tool and agent configuration, protecting sensitive setup files from unintended changes.\n\n- Area: File Safety\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}