Add 'Remember this permission' option to permission prompts
Feature Request
Problem
Currently, when Claude Code asks for permissions, the user is presented with options like:
- Yes (one-time)
- No
- Allow for this session
- Allow for this directory
However, there's no way to permanently save a permission decision directly from the prompt.
Proposed Solution
Add a new option to permission prompts: "Yes, allow and save to settings" (or similar wording)
When selected, this option would:
- Allow the current operation
- Automatically append the permission pattern to
.claude/settings.jsonin thepermissions.allowarray - Apply the permission to all future sessions
Benefits
- Reduces friction: Users won't need to manually edit settings.json after deciding to permanently allow something
- Better UX: Natural workflow - if a user trusts an operation enough to allow it multiple times, they should be able to persist that decision easily
- Consistency: Works seamlessly with git worktrees that symlink to a shared settings.json file
Current Workaround
Users must manually edit .claude/settings.json to add permissions to the allow array, which is less intuitive and interrupts the workflow.
Use Case
Common scenario: When working with project-specific directories like .claude/plans/**, users frequently need to allow Read/Write/Edit operations. Having to approve these repeatedly across sessions is tedious, but manually editing settings.json is not discoverable for many users.
Related
- This would complement the existing
PermissionRequesthook system - Different from session-based allowing, which is temporary
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗