Claude/Code/How To/Answer Permission Dialog To Record Wildcard Permissions in Local Settings
Properties
- see-also
- Claude/Code
How To Answer the Permission Dialog To Record Wildcard Permissions in Local Settings
Overview
- When Claude/Code asks for permission to run a command, you can edit the suggested permission entry before confirming to make it a wildcard that covers a broader class of commands.
- This lets you grant bounded-but-flexible permissions that persist in
.claude/settings.local.jsonwithout having to manually edit that file.
Prerequisites
- Claude/Code installed and running in a project
- A session where Claude has just asked for permission to run a shell command
Steps
1. Wait for the permission prompt
2. Select option 2
3. Edit the command to a wildcard
4. Confirm
- Press Enter to confirm.
- Claude/Code writes the permission to
.claude/settings.local.jsonin the form:
5. Verify (optional)
Troubleshooting