$ recombobulate _
home / tips / run-shell-commands-with-the-prefix
0

Run Shell Commands with the ! Prefix

bagwaa @bagwaa · Mar 23, 2026 · Shortcuts
run-shell-commands-with-the-prefix

You can run any shell command directly in Claude Code by prefixing it with !:

! git status
! php artisan route:list --compact
! npm run build

This is especially useful when Claude suggests you run something interactively (like gcloud auth login) — just type it with the ! prefix and the output lands directly in the conversation context.

You can also chain commands:

! php artisan migrate && php artisan db:seed

The output becomes part of the conversation, so Claude can see the results and respond accordingly. Think of ! as your escape hatch to the shell without breaking the flow.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Ask Side Questions Without Polluting Context with /btw

The /btw command lets you ask quick side questions that are answered immediately but never added to the conversation history.

bagwaa @bagwaa · 1 hour ago
0
Jump Back Into Your Most Recent Conversation with --continue

The --continue flag loads your most recent conversation instantly, no session ID required.

bagwaa @bagwaa · 1 hour ago
0
Give Claude Visual Context by Pasting Images from Any Source

Claude Code accepts images from any clipboard source — screenshots, Slack messages, browser windows, and design mockups all paste directly into your prompt.

bagwaa @bagwaa · 3 hours ago