A user discovered that Anthropic's Claude Code can delete files, and the built-in `/rewind` function is insufficient for recovery. While `/rewind` can restore files modified by Claude's internal editing tools, it cannot recover files deleted by shell commands like `rm -rf ~`. The user recommends checking local file history, Git, or backups in order of preference, and suggests implementing custom guard hooks to prevent such deletions, as standard deny rules may be bypassed by scripts. AI
IMPACT Highlights potential risks in AI code generation tools and the need for robust safety mechanisms beyond basic commands.
RANK_REASON User-discovered vulnerability and workaround for a specific AI coding tool.
Read on dev.to — Claude Code tag →
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →