Follow Discord
Sweep 04 Dec 2026 · 17:52Z Build v2.1.337 554 read Stable v2.1.332 Latest v2.1.337 Next v2.1.337 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.337 ·

The guard against deleting files can now keep chosen folders safe

Claude Code's protection against the rm command can now be told to protect certain folders as well as the working folder

You'll notice Improvements
JSON All of v2.1.337
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Bash SafetyArea: what it touches
ImprovementsKind: in v2.1.337,
ImprovementsSection of the release

Unclear It is not clear what supplies the list of folders to keep, or whether a user can set it.

What

When Claude Code runs a shell command, it has a guard that limits what the rm command (the command that deletes files) is allowed to remove. That guard can now be given a list of folders to keep. When the list is given, the guard covers the current working folder plus those folders. Before, the guard took only a setting about the sandbox, which is the restricted space commands run in.

Why

It gives extra folders the same protection from accidental deletion.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear what supplies the list of folders to keep, or whether a user can set it.

See this entry in the whole of v2.1.337 →

Feedback