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.
Log in to leave a comment.
The /btw command lets you ask quick side questions that are answered immediately but never added to the conversation history.
The --continue flag loads your most recent conversation instantly, no session ID required.
Claude Code accepts images from any clipboard source — screenshots, Slack messages, browser windows, and design mockups all paste directly into your prompt.