Keyboard Shortcut
! — run a bash command directly
Starting your input with ! runs the rest as a literal shell command, without Claude interpreting or reasoning about it first.
Not every command needs Claude's involvement — sometimes you just want to run git status or ls and see the output, without spending a turn asking Claude to do it for you. Prefixing your input with ! sends it straight to the shell.
The output still shows up in the conversation, so Claude can see and react to it on your next message — this is a shortcut for running things yourself, not a way to hide commands from context.
It's a small thing, but it adds up: fewer unnecessary tool-call round-trips for the commands you already know you want to run.
!git statusFrequently asked questions
What does ! — run a bash command directly do in Claude Code?
Starting your input with ! runs the rest as a literal shell command, without Claude interpreting or reasoning about it first.
How do I use it?
Try: !git status
Any caveats to know about?
It's a small thing, but it adds up: fewer unnecessary tool-call round-trips for the commands you already know you want to run.
Is this covered in OG Flow Code Premium Toolkit?
Yes — ! — run a bash command directly and patterns like it are covered by the commands, and in higher tiers the specialist agents and guided skills, in OG Flow Code Premium Toolkit. Tiers start at $19.90.
Want the full command, hook, and template pack?
This is one pattern from the OG Flow Code toolkit. Choose the tier that fits your workflow, including Multi-Stack for six additional language stacks.
See pricing — from $19.90 once