Auto-accept option for Bash commands

Resolved 💬 3 comments Opened May 19, 2025 by tmratwork Closed May 19, 2025

Description

When using Claude Code that requires Bash commands, I frequently need to manually confirm each Bash command execution by selecting "Yes" from the prompt menu. This creates a workflow interruption where I must actively wait for and respond to each confirmation prompt, preventing me from multitasking or stepping away during longer operations.

Proposed Solution

If it does not already exist, please add a persistent option to auto-accept Bash commands, similar to the existing "auto-accept edits" feature. This could be implemented as:

  1. A new option in the Bash command confirmation prompt that reads: "Yes, and auto-accept all future Bash commands this session"
  2. A configuration setting that can be toggled via command (e.g., /auto-accept bash on)
  3. A command-line flag for enabling this behavior when launching Claude Code (e.g., --auto-accept-bash)

Use Case

This would be particularly valuable for workflows where:

  • Multiple Bash commands need to be executed in sequence
  • Commands are running in a trusted environment where repeated confirmation adds friction without additional security benefits
  • The user wants to initiate a process and return later to review the completed work

Current Workarounds

Currently, I manually confirm each Bash command. This limits the utility of Claude Code for certain automated workflows.

Additional Context

The existing auto-accept for edits feature demonstrates this pattern works well for file modifications. Extending similar functionality to Bash commands would maintain consistency in the user experience while adding significant convenience.

thanks!

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗