The fear of losing a file is a big deal using Claude Code since it has access to bash tools and can run bash commands on its own. This is possible whenever --dangerously-skip-permissions is enabled or I have accepted edits inside a particular session. A workaround for this can be to skip running rm command inside Claude Code settings. I have added "Bash(rm:)" to a "deny" list inside Claude Code's global settings file (/.claude-code/global-settings.json):
No comments yet. Log in to reply on the Fediverse. Comments will appear here.