Feature Request: Introduce a Persistent Interactive "Shell Mode" for Direct Command Execution

Resolved 💬 6 comments Opened Jul 24, 2025 by coygeek Closed Jan 16, 2026

Title: Feature Request: Introduce a Persistent Interactive "Shell Mode" for Direct Command Execution

Labels: feature-request, enhancement, ux, cli

Body

Is your feature request related to a problem? Please describe.

While Claude Code has a powerful Bash tool, invoking it requires phrasing the request in natural language (e.g., "run the command ls -l"). This adds an unnecessary layer of abstraction and latency when a developer knows the exact shell command they want to run. It forces an LLM interaction for a task that could be direct, slowing down common developer workflows.

Describe the solution you'd like

I propose implementing a "shell mode" inspired by the Google Gemini CLI, which would provide a more fluid and efficient workflow for developers who frequently interact with their shell.

This feature would have two main components:

  1. Persistent Interactive Shell Mode:
  • A simple command, like /shell or just !, would toggle the user into a dedicated "shell mode".
  • While in this mode, the input prompt would change (e.g., from > to $) to indicate that input is being interpreted directly by the shell.
  • Any command typed is executed immediately, with stdout and stderr piped directly to the terminal, bypassing the LLM entirely.
  • The user can exit shell mode by typing exit or using the toggle command again.
  1. One-Off Shell Commands:
  • For single, non-interactive commands, a prefix like ! could be used.
  • For example, typing !git status would execute the command directly, display the output, and immediately return the user to the standard Claude prompt without changing modes.
What are the benefits of this feature?
  • Improved UX: This creates a much more fluid experience, allowing developers to seamlessly switch between conversing with the AI agent and interacting directly with their system shell.
  • Increased Efficiency: It removes the LLM from the loop for simple, known commands, making the tool faster and more responsive for common tasks like listing files, checking git status, or running build scripts.
  • Direct Control: It gives developers direct, low-latency access to their shell when needed, without leaving the Claude Code environment.
Additional Context & Implementation Reference

This feature is heavily inspired by its excellent implementation in the Google Gemini CLI. Their public documentation provides a clear example of the desired user experience and can serve as a reference.

Implementing this feature would be a significant enhancement to Claude Code's usability for day-to-day development tasks. Thank you for your consideration

View original on GitHub ↗

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