Dangerous commands wait for you

The command check reads each command you type before it runs. A dangerous one stops on a card that says why, and it runs only when you choose.

Last updated

A red High risk on prod card above the composer, which holds rm -rf /tmp/valakes-shot/*. The card says the command deletes everything under the path with no trash, counts 3 files, and asks you to type the host name lab-prod; Cancel has the focus. Open the picture at full size in a new tab

What the check looks for

The check sorts each command into three levels by fixed rules, not by a model. High risk stops the command: rm -rf, dd onto a disk, mkfs, DROP DATABASE, TRUNCATE, shutdown, reboot, chmod -R 777 / and a download piped into sh. Medium risk, such as systemctl restart or sed -i, gets a line under the composer.

Level Examples What you see
High rm -rf, mkfs, DROP DATABASE, git push --force The risk card, and the command waits
Medium systemctl stop, kill -9, docker rm, chown -R A line under the composer, no stop
Low Everything else Nothing

The rules read the parsed command, not its text, so echo "rm -rf /" raises no alarm while sudo rm -rf does not slip past.

How it works

The check runs between your Enter and the server. Nothing is sent while the risk card is open, the answer that does nothing has the focus, and on production the card asks for one more deliberate step. You can still run the command: the check asks, it does not forbid.

  1. You type a command in the composer, the command line under the terminal, and press Enter.
  2. Valakes reads it before anything reaches the server. A dangerous command opens the risk card, “High risk”, with the reason.
  3. For a delete, the card counts what it would affect, as “Blast radius”.
  4. Cancel has the focus, so pressing Enter again does not run the command.
  5. On a production host, where a Medium command is raised to High, Run anyway stays off until you type the host name. Elsewhere it is ready at once.

See production marking for how a host becomes production. The use case working on production servers without fear of one wrong command puts the check and the markers together.

What it does not do

The check is mistake prevention for your own hand. It reads the one line you typed, and anything that happens after a program starts is outside it. It is not a sandbox and not a guard against a compromised window: the typed host name protects you from a slip, nothing more.

  • Keys you type in Raw mode, in a full-screen program such as vim, or in a nested shell never reach it.
  • Its count of affected files assumes the default shell options, and a path that depends on the shell, such as "$HOME/x", gets no count.

Questions

Can I turn the command check off?

Yes. Settings, Command check has Off, Dangerous only (the default) and Explain all, which explains every command in one line. Don't ask on this host switches the card off for one host after a native confirmation.

Does the check see inside a script?

No. It reads the line you typed in the composer. A script run with sh, a remote alias or function, SQL read from a file and the order of PATH are outside it.

Do AI agents get the same check?

Yes, without the way around it. An agent never gets the Run anyway button, so a high-risk command from an agent waits until you approve or deny it.

With an AI agent

An agent works on your servers under the host policies and approvals you set. Setup for each client: Claude Code , Codex , Cursor , MCP clients , REST API .

The app is free.

Get notified at launch

macOS is coming to the Mac App Store. iOS and Android later.