Promptles
Claude Code

Permission Rule

intermediate

Definition

A line in Claude Code's settings that always allows, always blocks, or always asks before a specific action, such as running your tests, and Claude Code enforces it no matter what a prompt says.

In the wild

You allow `Bash(npm test *)` so Claude can run tests freely, set `Bash(git push *)` to ask so every push needs your OK, and deny `Bash(git push --force *)` so it can never force-push. Writing "please don't push" in a prompt is only a request.

More from Claude Code