[FEATURE] Add `/mode <mode>` command to switch Claude Code mode
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
Shift + tab is not enterable on some terminals (e.g. from mobile). I know there have been previous feature requests about this but they've all been closed as a duplicate of https://github.com/anthropics/claude-code/issues/3429.
However the workarounds proposed in that issue only work for initializing Claude Code in a certain mode, not switching mid-session. For example, I like to start my sessions in plan mode, then switch to auto, and sometimes when Claude is going off the rails i like to turn auto mode off and ask it questions / re-plan.
Proposed Solution
Add a /mode <mode> slash command to switch the mode, e.g.:
/mode default— ask before edits/mode plan— plan mode/mode edit(alias:/mode accept-edits) — auto-accept edits/mode auto— auto mode
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
Interactive mode (TUI)
Use Case Example
Example of why I might want to switch mid-session:
- Start my claude code in default mode to provide it with context and talk about a problem
- Switch to plan mode when we're clear on the direction and approach
- Switch to auto mode when plan is approved
- Switch back to default mode if things aren't working as expected
Additional Context
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗