Safety
Protect your codebase and secrets with proper git practices, file permissions, and smart auto-approve rules that balance speed with security.
4 tips

4
Use Git Extensively
Git is your safety net when Claude makes sweeping changes. Commit often, review diffs, and know your recovery commands.

5
Protect Sensitive Files
Claude Code automatically reads .env files without asking. Add deny rules to protect secrets.

6
Never Auto-Approve Bash Commands
Auto-approving bash commands is the single most dangerous thing you can do with Claude Code.

7
Auto-Approve Safe Actions
Speed up your workflow by auto-approving low-risk actions like reads and searches.