[FEATURE] Allow switching to dontAsk mode at runtime.
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Currently it is only possible to set the permission mode to "dontAsk" when starting a new claude session. I would like to be able to change into that mode in a session that is already open.
Proposed Solution
Add a new slash command that allows setting the permission mode to any of the available modes.
For example, /permission-mode dontAsk would set the permission mode to "dontAsk".
Alternative Solutions
The only workaround I know of is to close the clause session, then start claude again with claude --resume --premission-mode dontAsk.
This could also be solved by
- Allowing the set of permission modes in the cycle to be customized
- Adding
dontAskto the modes in the cycle - Adding a new key binding to the TUI to switch to dontAsk mode.
However, while #32604 would be nice to have as well, I think having a slash command is the most flexible option. And scales the best if additional permission modes are added.
Priority
High - Significant impact on productivity
Feature Category
Interactive mode (TUI)
Use Case Example
I start a session in plan mode. claude starts asking permission to run a lot of commands while it is exploring. Many of these commands are find, ls, and grep commands, but are constructed in ways that don't match the allowed commands, and it _should_ be able to get the information it needs using tools it is allowed to use without prompting. I would like to switch to it being constrained to only using tools it is allowed to use without asking me, without having to restart the session.
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗