Skip to content

Feature: Auto-add approved commands to permissions allowlist #21606

Description

@morrid0

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

  1. Claude asks permission to run a command
  2. User approves
  3. Next time, Claude asks again for the same command
  4. User must manually edit settings.json to permanently allow it

Proposed Workflow

  1. Claude asks permission to run a command
  2. User selects "Always allow" (in addition to current Yes/No)
  3. Command is automatically added to permissions.allow in settings
  4. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions