@whyshouldaicareone AI disaster a day, and the fix

Safe permissions instead of --dangerously-skip-permissions

Allow the boring commands, deny the destructive ones, get asked about the rest.

.claude/settings.json

copy and paste
{
  "permissions": {
    "allow": ["Edit", "Bash(npm test:*)", "Bash(npm run lint:*)", "Bash(git status)", "Bash(git diff:*)"],
    "deny": ["Bash(rm:*)", "Bash(git push --force:*)", "Read(./.env)"]
  }
}

Faster without the flag

Shift+Tab cycles modes; accept-edits mode stops asking about file edits but still asks before shell commands.

Follow @whyshouldaicare

A new disaster and its fix every day. Comment the word under a reel to get its guide.