[FEATURE] Stay in terminal mode (bash 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
I am coming from Warp terminal. Warp is clever enough to distinguish between a terminal command (bash command) and a natural language prompt.
Claude Code requires ! to be placed in front of a terminal command, or it assumes it is a natural language prompt by default. The results in trying to run simple commands like ls and cd ~ burning tokens and taking relatively long amounts of time.
Proposed Solution
I would like to have the ability, similar to CAPS LOCK, to stay in terminal mode (bash mode) and have to use a symbol to engage the agent.
For example, maybe in "terminal mode" it assumes a bash command unless I prefix the command with ! (or # or some other character).
This way I can treat the Claude Code environment like a bash terminal until I ask for AI assistance.
Alternative Solutions
A more advanced solution would be for Claude Code to smartly determine if I am trying to run a terminal command or a natural language prompt.
Priority
High - Significant impact on productivity
Feature Category
Interactive mode (TUI)
Use Case Example
- I start the terminal in my home directory.
- I launch Claude Code to get it running.
- I want to see the directory structure.
- If I type "ls" now, it will run an agentic query instead of checking the directory.
- I switch into terminal mode (so I don't have to prepend
!tols). - I type
lsand get directory output as expected. - I type
cd my-projectto switch into my project directory. - I type
git statusto make sure I'm in the right branch. - Then I type
!Can you pick up where we left off?and Claude Code engages with my natural language prompt.
Additional Context
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗