feat: bang (!) batch commands — shell exec bypassing model, zero tokens - #368
Closed
alecuba16 wants to merge 3 commits into
Closed
feat: bang (!) batch commands — shell exec bypassing model, zero tokens#368alecuba16 wants to merge 3 commits into
alecuba16 wants to merge 3 commits into
Conversation
alecuba16
force-pushed
the
feat/bang-batch-commands
branch
3 times, most recently
from
August 2, 2026 15:27
fb651cb to
374baa3
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
alecuba16
force-pushed
the
feat/bang-batch-commands
branch
3 times, most recently
from
August 8, 2026 14:57
3da0e10 to
1909ac8
Compare
alecuba16
force-pushed
the
feat/bang-batch-commands
branch
4 times, most recently
from
August 10, 2026 18:16
167d887 to
a84c4c6
Compare
Author
|
Closing in favor of consolidated group branches. The changes from this PR have been merged into a functional group branch. |
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
Adds bang (
!) batch command support — commands prefixed with!execute directly in the shell, bypassing the model entirely (zero tokens consumed).Features
! <command>→ runs shell command, shows output in transcript!! <command>→ multi-line mode (pastes output into input buffer)render_bang_display_lines()main.rsmain loop (was dead code inApp::run)transcript_emptyincludesdisplay_messages.is_empty())Files Changed (18 files)
src-rust/crates/cli/src/main.rs— bang intercept in main loopsrc-rust/crates/tui/src/render.rs—render_bang_display_lines()+ bang output renderingsrc-rust/crates/tui/src/app.rs— bang command state handlingsrc-rust/crates/tui/src/input.rs— bang command input parsingsrc-rust/crates/core/src/lib.rs—bangCommands.enabledsettingdocs/commands.md— documentationFEATURE_DESIGN_batch_commands_no_model.md— design docNote
Part of 5-PR set. Shares
app.rs,render.rs,main.rswith other PRs. Consolidated from 2 branches (1 feat + 1 fix).