Feature Request: Shell Take Over / Release
Resolved 💬 3 comments Opened Aug 2, 2025 by kitaekatt Closed Aug 15, 2025
Feature Request: Streamlined Terminal Help with !! Command
Summary
Add !! prefix to request Claude's assistance with recent terminal commands, reducing friction when troubleshooting command failures.
Current Behavior
When a bash command fails, users must:
- Execute command with
!prefix - See error
- Request help from Claude
- Wait for Claude's analysis and fix
Proposed Feature
The !! prefix signals Claude to analyze all commands executed since the last !! interaction:
!command- Execute bash command normally!!command- Execute bash command AND send command history to Claude!!- Send command history to Claude without executing additional command
Example Usage
Current: User requests feedback
! cd Backups
⎿ (eval):cd:1: no such file or directory: Backups
**> feedback**
⏺ The directory "Backups" doesn't exist in your current location. Let me check what directories are available:
⏺ List(.)
⎿ Listed 1019 paths (ctrl+r to expand)
⏺ I can see there's a directory called "Bacups" (with a typo) in your home directory. Did you mean to navigate to that instead of "Backups"?
⏺ Bash(cd Bacups)
⎿ (No content)
⏺ You're now in the "Bacups" directory. What would you like to do here?
With the proposed feature, !!cd Backups would automatically trigger the same helpful response without requiring a separate feedback request.
Implementation Details
- Commands between
!!markers form a "help context" - Claude receives all commands and results since last
!! - The
!!command itself executes before Claude responds - Each
!!resets the context boundary
Open Question
When !!command succeeds without errors, should Claude respond? A full API response for "Successfully changed directory" would add unnecessary noise and latency. Potential solutions:
- Suppress Claude's response on successful commands unless there's something noteworthy
- Local quick-reply for simple success confirmations (if available in Claude Code)
- Only trigger Claude's analysis when errors are present in the command history
Benefits
- Single character addition (
!→!!) to request help - No context switching between terminal and chat
- Claude automatically sees full troubleshooting history
- Maintains predictable, deterministic behavior
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗