Cockpit
Shell lines
Run !commands yourself in your chosen shell.
A line that starts with ! runs the rest as a shell command that you chose to run, the same way Claude Code's ! lines work. The output is shown, and it joins the conversation so the model sees it.
! git status
! npm testWhile you type one, a hint under the prompt says ! shell mode: Enter runs this in <your shell>, so it is clear that Enter will run it.
/run <command> does the same thing with a word instead of a symbol.
It runs only what you typed
- One line only. A pasted block that happens to begin with
!, such as a Markdown note or a log, is a message for the model. Any line break turns the whole thing into a normal message, so a pasted block never runs. - No keys. The command's environment has the variables ending in
_API_KEY,_TOKEN,_SECRET,_PASSWORDand the like removed, so a script cannot print your keys. Name an exact variable inpermissions.passEnvif a command needs it. See Permissions. - Redacted output. Whatever the command prints is masked for secrets before it is shown or added to the conversation.
- A cap. At most 500 lines of output are kept, and the message says how many were left out.
Which shell
/shell show the shell in use
/shell powershell run commands in PowerShell (also pwsh, cmd, auto)The default, auto, is cmd on Windows and sh elsewhere. The choice is saved in your user settings, and the agent is told, so it writes PowerShell instead of cmd syntax. A repository's settings cannot set the shell. If the agent writes Get-ChildItem and you see 'Get-ChildItem' is not recognized, you are in cmd: type /shell powershell.
/status shows the shell in use.