feat: add bang mode for direct shell command execution#3013
Merged
Conversation
Member
|
Awesome. Are we pulling in the user's environment variables when invoking a shell (similar to what we do with the |
Contributor
Author
|
yes happens by default since the process is a child process |
btwiuse
reviewed
Jun 5, 2026
Member
|
Small note that this will need a patch on non-client-server-mode. Otherwise working pretty nicely. |
5dbb5ec to
d72e583
Compare
368e118 to
43a3eae
Compare
9de5353 to
4ee60f4
Compare
Prefix any input with ! to run it as a shell command without triggering the LLM. The command and output are persisted as a user message so the LLM has context on follow-up prompts.
34b6cfa to
f6dbee6
Compare
11c1cb5 to
bf32eb9
Compare
bf32eb9 to
b5ccc76
Compare
69ee48c to
b7c48b9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
!prefix support for running shell commands directly without triggering the LLMTest plan
!lsin the input — should display directory listing without LLM response!echo hello— output appears as user message in chat!false) — should not error, just show empty outputCloses: #2430