Claude Tips mascot
Claude Tips & Tricks
Claude Code intermediate

Auto-Accept Safe Edits to Move Faster

Configure Claude Code to auto-approve read operations and safe edits so you're not clicking 'approve' on every file read.

Tired of approving every file read? Configure your allowed tools in .claude/settings.json:

{
  "permissions": {
    "allow": [
      "Read",
      "Glob",
      "Grep",
      "Bash(git *)",
      "Bash(npm test*)",
      "Bash(npm run lint*)"
    ]
  }
}

What to Auto-Approve

Safe to auto-approve:

  • Read: reading files can’t break anything
  • Glob: file search is harmless
  • Grep: content search is harmless
  • Bash(git status*), Bash(git log*), Bash(git diff*): read-only git

Keep manual approval for:

  • Edit, Write: file modifications
  • Bash(rm*), Bash(git push*): destructive operations
  • Any bash command that could have side effects

The Sweet Spot

Auto-approve reads, require approval for writes. Claude explores freely but always asks before changing anything.

Paste into Claude Code
Show me how to configure my Claude Code permissions so that file reads, glob, and grep are auto-approved, but file writes still require my approval.