Skip to content

feat: bang (!) batch commands — shell exec bypassing model, zero tokens - #368

Closed
alecuba16 wants to merge 3 commits into
Kuberwastaken:mainfrom
alecuba16:feat/bang-batch-commands
Closed

feat: bang (!) batch commands — shell exec bypassing model, zero tokens#368
alecuba16 wants to merge 3 commits into
Kuberwastaken:mainfrom
alecuba16:feat/bang-batch-commands

Conversation

@alecuba16

Copy link
Copy Markdown

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)
  • Works in plan mode (blocked with warning)
  • Output rendered via render_bang_display_lines()
  • Intercept in main.rs main loop (was dead code in App::run)
  • Render output when transcript empty (transcript_empty includes display_messages.is_empty())

Files Changed (18 files)

  • src-rust/crates/cli/src/main.rs — bang intercept in main loop
  • src-rust/crates/tui/src/render.rsrender_bang_display_lines() + bang output rendering
  • src-rust/crates/tui/src/app.rs — bang command state handling
  • src-rust/crates/tui/src/input.rs — bang command input parsing
  • src-rust/crates/core/src/lib.rsbangCommands.enabled setting
  • docs/commands.md — documentation
  • FEATURE_DESIGN_batch_commands_no_model.md — design doc

Note

Part of 5-PR set. Shares app.rs, render.rs, main.rs with other PRs. Consolidated from 2 branches (1 feat + 1 fix).

@alecuba16
alecuba16 force-pushed the feat/bang-batch-commands branch 3 times, most recently from fb651cb to 374baa3 Compare August 2, 2026 15:27
alecuba16 and others added 2 commits August 7, 2026 09:02
@alecuba16
alecuba16 force-pushed the feat/bang-batch-commands branch 3 times, most recently from 3da0e10 to 1909ac8 Compare August 8, 2026 14:57
@alecuba16
alecuba16 force-pushed the feat/bang-batch-commands branch 4 times, most recently from 167d887 to a84c4c6 Compare August 10, 2026 18:16
@alecuba16

Copy link
Copy Markdown
Author

Closing in favor of consolidated group branches. The changes from this PR have been merged into a functional group branch.

@alecuba16 alecuba16 closed this Aug 10, 2026
@alecuba16
alecuba16 deleted the feat/bang-batch-commands branch August 10, 2026 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant