5 min read

AI Agent Approvals With Reasons: Why Skyportal Asked, Ran or Blocked a Command

Skyportal
AI Agent Approvals With Reasons: Why Skyportal Asked, Ran or Blocked a Command

An AI agent approval prompt usually shows a command and a yes button, and people press yes. Anthropic says people approve 97% of the permission prompts in Claude Code. In a study with 1,053 paid testers, the testers blocked about 17% of the dangerous commands early in a session and about 5% after 50 or more prompts (Anthropic, August 2026). Their answer was to make auto mode the default in Claude Code, where a classifier reviews each tool call instead of you.

Skyportal still asks you, and it puts the reason on the card. Before SARA, Skyportal's AI agent, runs a command on your AWS or GCP VM, the card names the host and the reason it's asking. When a command is refused, the chat shows what blocked it and who can change that. You connect the VM over SSH, so Skyportal doesn't need your cloud account keys.

What the approval card tells you

The card's header says Command Approval and the host, like "on gpu-train-1". Under Why there's a title and one line per reason. Below that is the exact command, with a button to copy it.

On a new account, most cards say "Needs your approval" and "Not on any allow list". Skyportal starts with an empty allow list and with Read-Only Mode off, and a command that no rule allows waits for you. So even ls or nvidia-smi asks the first time.

The card lists every reason that applies, not only the one that decided. These are lines you'll see on a cloud VM:

  • "Reads a secret: ~/.aws/credentials" when SARA wants to read your AWS credentials. Paths under ~/.ssh and ~/.kube, .env files, .pem and .key files and ~/.netrc get the same line.
  • "Reads environment variables, which can hold secrets" for printenv or env.
  • "Searches for credentials" for something like grep -r password /etc.
  • "On the allow list (cat), but this kind of command always asks" when an allow list entry covers a command that touches one of those.

Those commands get the title "Touches sensitive data". They ask every time, even when your allow list covers them.

When a command runs without a card

A command skips the card when an entry on the host's allow list covers it. You add entries with Always allow, below, and the allow list in the settings file of the repo selected in the chat counts too. If you turn on Read-Only Mode, which is off by default, safe reads skip the card as well.

Approving a card covers that one run. Approve nvidia-smi once, and the next nvidia-smi on that host asks again. In the web chat, a command that ran looks the same whichever way it got through: its output, with a green "Completed on" and the host in the footer.

Blocked and failed commands

A refused command doesn't end on a green "Completed". Its footer reads "Blocked on" and the host, next to a red dot. Under the output you get the rule's title and "You can change this.", with a Settings link when there's a setting to change. On your own VM, two rules can block a command:

  • "Blocked by the repo deny list". The command matched a deny rule in the settings file of the repo selected in the chat, and the output names the rule.
  • "Blocked: read-only host". The host is labeled Production, which is read-only by default, and Skyportal sees the command as one that deletes or changes data. The output says you can scope the step to other hosts or change the policy in the chat scope sidebar.

When a command runs and fails, the footer says "Failed on" and the host.

Always allow shows what it adds

The double check mark on the card is Always allow. Hover it, or open the card's details, and it tells you exactly what it adds, like "Always allow nvidia-smi on gpu-train-1". The entry goes on that host's allow list and on no other host. After the click, a message confirms it: "Now always allowed on gpu-train-1: nvidia-smi".

The entry is a prefix: the first word of the command, or the first two for tools like git, docker, pip and systemctl. A command with several parts adds one prefix per part. So Always allow on systemctl status docker adds systemctl status, and a later systemctl restart docker still asks.

The button isn't there for commands that touch sensitive data, since those ask whatever the allow list says. It isn't on a card for several hosts either, because an allow list entry belongs to one host. If an old browser tab or a script tries it anyway, the server answers "Always allow is not offered for this command. Approve it once instead."

Commands that delete files still get the button. An entry matches the command with any arguments, so Always allow on rm -rf /data/old-checkpoints would let later rm commands on that host run without a card, unless they touch a sensitive file or the host is a read-only Production host. I'd keep Always allow for reads you run all day, like nvidia-smi or df -h, and let the card catch anything that changes something.

The same reasons in the terminal

The skyportalai interactive terminal prints the same words. When SARA asks, you see the host, the title, the reasons and the Always allow label, then the prompt Approve this action? [y/N/a=always/r=reject with reason]. The a option is only there when the server offers Always allow. A command that ran without asking gets its rule's title in gray, and a refused one gets a red "blocked:" line that says who can change it.

To see the settings behind those answers, run:

skyportalai whoami

It prints your approval mode, whether Read-Only Mode is on, and the policy for each environment on your own hosts. Production shows read_only unless you changed it.

Get started

The approval rules are on every plan, so the Free plan, with up to three hosts, is enough to try this. Sign up, connect a VM on AWS or GCP over SSH, and ask SARA something you'd normally check by hand, like which process is holding the GPU memory. The CLI and the Python SDK are on PyPI.