About

Pre-Approving Permissions in Claude Code with /permissions

Claude Code

Wildcard rules for Bash, Edit and other tools

Claude Code uses a permission system combining prompt injection detection, static analysis, sandboxing, and human oversight. Only safe commands are pre-approved by default, and tools you repeatedly approve can be pre-allowed via /permissions.

How to Use

1

Open permissions settings UI with /permissions command

2

Specify allowed tools with wildcards — e.g., Bash(bun run *), Edit(/docs/**)

3

Block tools can also be specified the same way

4

Check in to settings.json to share with the entire team

Tags

#permission #security #wildcard #settings

Source

Boris Cherny (@bcherny)

← How to Create Custom Agents in Claude Code What Is Claude Code Sandbox Mode? File and Network Isolation →