Feature Request Native Slash Command for Direct Bash Execution (e.g., /sh, /exec) #7301

Open
opened 2026-02-16 18:06:45 -05:00 by yindo · 2 comments
Owner

Originally created by @imcco on GitHub (Jan 23, 2026).

Originally assigned to: @thdxr on GitHub.

Question

Currently, executing simple bash commands (like ls, git status, or file checks) through the AI agent involves a full reasoning cycle (Analysis → Tool Call → Execution → Output). This process consumes tokens and adds unnecessary latency when the user already knows exactly what command they want to run and just wants the output within the chat context.

I request a native slash command (e.g., /sh , /exec , or /bash ) that allows users to execute bash commands directly.

  • Bypass AI Reasoning: The command should bypass the LLM's planning/reasoning steps entirely.

  • Direct Execution: It should send the command directly to the agent's persistent shell session.

  • Immediate Feedback: Output (stdout/stderr) should be displayed immediately in the chat interface without interpretation.

  • Asking the AI to "run ls" (Slow, consumes tokens).

  • Using existing skills like /quick-cmd (if available, it should be made more discoverable or aliased to a shorter command like /sh).

This feature would bridge the gap between a chat interface and a terminal, allowing for a hybrid workflow where users can perform quick checks manually while letting the AI handle complex tasks, all within the same timeline.

Originally created by @imcco on GitHub (Jan 23, 2026). Originally assigned to: @thdxr on GitHub. ### Question Currently, executing simple bash commands (like ls, git status, or file checks) through the AI agent involves a full reasoning cycle (Analysis → Tool Call → Execution → Output). This process consumes tokens and adds unnecessary latency when the user already knows exactly what command they want to run and just wants the output within the chat context. I request a native slash command (e.g., /sh <command>, /exec <command>, or /bash <command>) that allows users to execute bash commands directly. * Bypass AI Reasoning: The command should bypass the LLM's planning/reasoning steps entirely. * Direct Execution: It should send the command directly to the agent's persistent shell session. * Immediate Feedback: Output (stdout/stderr) should be displayed immediately in the chat interface without interpretation. * Asking the AI to "run ls" (Slow, consumes tokens). * Using existing skills like /quick-cmd (if available, it should be made more discoverable or aliased to a shorter command like /sh). This feature would bridge the gap between a chat interface and a terminal, allowing for a hybrid workflow where users can perform quick checks manually while letting the AI handle complex tasks, all within the same timeline.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7750: Persistent shell mode - keep shell session alive after executing commands
  • #1970: Feature Request: Add Background Bash Execution (Like Claude Code's Ctrl+b)
  • #5247: Direct Tool Access for Humans - Bridge the Agent-Human Capability Gap

These issues also request improved direct command/tool execution capabilities that might address your use case. Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #7750: Persistent shell mode - keep shell session alive after executing commands - #1970: Feature Request: Add Background Bash Execution (Like Claude Code's Ctrl+b) - #5247: Direct Tool Access for Humans - Bridge the Agent-Human Capability Gap These issues also request improved direct command/tool execution capabilities that might address your use case. Feel free to ignore if none of these address your specific case.
Author
Owner

@saksham1341 commented on GitHub (Jan 23, 2026):

Start a prompt with ! to enter bash mode, this runs the command directly in the terminal.

@saksham1341 commented on GitHub (Jan 23, 2026): Start a prompt with `!` to enter bash mode, this runs the command directly in the terminal.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7301