Summary
When Claude Code prompts for permission to run a command and the user approves it, add an "Always allow" option that automatically adds the command pattern to ~/.claude/settings.json.
Current Workflow
- Claude asks permission to run a command
- User approves
- Next time, Claude asks again for the same command
- User must manually edit
settings.json to permanently allow it
Proposed Workflow
- Claude asks permission to run a command
- User selects "Always allow" (in addition to current Yes/No)
- Command is automatically added to
permissions.allow in settings
- Future runs don't require approval
Benefits
- Build allowlist organically based on actual usage
- Reduces friction for repetitive workflows
- No need to manually edit JSON files
- Could offer scope choice: global (
~/.claude/settings.json) vs project (.claude/settings.json)
Summary
When Claude Code prompts for permission to run a command and the user approves it, add an "Always allow" option that automatically adds the command pattern to
~/.claude/settings.json.Current Workflow
settings.jsonto permanently allow itProposed Workflow
permissions.allowin settingsBenefits
~/.claude/settings.json) vs project (.claude/settings.json)