Skip to content

Conversation

@ajjucoder
Copy link

Summary

This PR adds a new documentation file (SAFE_PERMISSIONS.md) that provides a recommended settings.json configuration for enabling bypass mode while maintaining safety guardrails.

Problem

Claude Code's default permission system asks for confirmation on every command, slowing down development. The --dangerously-skip-permissions flag removes ALL safety checks, which is risky.

Solution

This guide provides a balanced approach:

  • Enables bypass mode for faster workflows
  • Maintains a deny list that blocks dangerous operations
  • Protects sensitive files from being read

What's Blocked

  • Destructive commands: rm -rf /, sudo rm -rf, mkfs
  • System control: sudo shutdown, sudo reboot
  • Dangerous git: git push --force origin main
  • Sensitive files: .env, SSH keys, credentials

What's Allowed

100+ safe development commands run without prompts:

  • File operations, git, package managers
  • Language runtimes, DevOps tools

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant