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.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is not clear what supplies the list of folders to keep, or whether a user can set it.