Command approvals
A deep agent can run shell commands, and a command can change files or reach other systems. So before it runs one, the agent stops and asks the person it is talking to. Nothing runs until that person answers.
Command approval is on for every agent by default. To turn it off for one agent, open the agent’s Security tab and clear Ask before running commands, under Command approval. The switch can be changed only when the agent’s Agent type is Deep. With it off, the agent’s commands run without this prompt in web chat and the CLI: in sandboxes, in Workstations and on runners without a command check. On your own computer, the CLI’s command check still asks before what it doesn’t clear. The switch doesn’t open the channels: on Slack, Telegram, Google Chat and A2A the agent keeps asking either way (see Approvals in channels).
The same prompt also covers tools that can change something: a custom tool or an MCP tool with Ask before each call (or Ask) on. An answer that covers more than one call covers the agent’s commands and those tools alike.
The prompt
Section titled “The prompt”In web chat, and in the VirtuAI CLI’s virtuai chat when its command check is off, the conversation shows The agent wants to run a command, the exact command, and a countdown. Choose one of:
| Option | What it allows |
|---|---|
| Allow once | This command, this time only. |
| Allow for this chat | Every command this agent runs in the current conversation. |
| Allow 60 min | Every command this agent runs for you in the next 60 minutes, in any conversation. |
| Always allow | Every command this agent runs for you, from now on. |
| Deny | The command does not run. The agent is told it was denied and can continue another way. |
If nobody answers within 5 minutes, the command is denied, and the agent is told not to run it again and to ask you. The card then says This prompt is no longer waiting for an answer: the agent was told nobody answered in time. Ask it to try again if you still want it run., and its buttons stop working. The card says the same if you answer a prompt that stopped waiting for another reason, instead of failing silently.
Standing permissions (Allow for this chat, Allow 60 min and Always allow) belong to you and to this one agent. They don’t carry over to other users or other agents.
When the agent asks about several commands at once, the chat shows them one at a time, with +N more waiting on the card. A standing permission you give also answers the waiting commands it covers, so they don’t sit until they time out.
A long command, such as a whole script, sits in a box that scrolls, with its size in lines and characters. Show more makes the box taller. The answers stay on screen.
The test chat of an agent’s canvas offers only Allow once and Allow for this chat, so testing a draft never leaves an approval that reaches other conversations.
Commands on your own computer
Section titled “Commands on your own computer”When the agent’s commands go to your own computer, the VirtuAI CLI’s command check decides first. Commands that only read inside the agent’s folder run, and so do the ones Tev1, a small model on your machine, says only read or run the project’s tests or build. Your computer asks about the rest, and VirtuAI doesn’t ask again with the prompt above.
Where you’re asked depends on how the computer is connected:
| Connected with | Where you’re asked |
|---|---|
virtuai chat |
In the terminal. |
virtuai run, CLI 1.0.25 or newer |
In web chat, in the conversation the command came from. With no web chat open, the command doesn’t run and the agent is told why. |
VirtuAI Desktop is a local IDE over Completions; it does not host the channel connector. For Slack and other channels on this computer, use virtuai run.
In web chat, the card reads Your computer asks before running, with the command and The classifier did not clear it: and the reason. Choose one of:
| Option | What it allows |
|---|---|
| Allow once | This command, this time only. |
| In this conversation | This command’s base, such as npm install, in this conversation. |
| For 1 hour | This command’s base for the next hour, in any conversation. |
| Always in a folder | This command’s base in that folder, from now on. |
| Deny | The command does not run. |
Under the options, A grant covers this command base in that folder: names the base. Allowing npm install doesn’t allow npm publish. Only you, whose computer it is, can answer. Your answer goes back to your computer, which keeps the permission; VirtuAI doesn’t keep it. See Standing permissions for what can’t be allowed ahead of time and how to remove a permission.
Some commands are never put to web chat: what deletes, reads secrets, changes the system, runs inline code such as bash -c, or reaches outside the agent’s folder. Under virtuai run they don’t run, and the agent is told you can run them yourself. When the check can’t tell what a chain of commands does, the card offers Allow once and Deny only.
VirtuAI’s own prompt still applies when the runner isn’t your own computer’s command check: a Workstation, someone else’s computer, a runner in a container or started with --isolate-sessions or --no-guard, or a CLI older than 1.0.25.
Approvals in channels
Section titled “Approvals in channels”On Slack, Telegram, Google Chat and A2A the agent asks the person whose message started the turn, in the conversation the message came from, before a command or a tool that asks runs. Nothing runs until that person answers.
| Channel | How it asks | The answers |
|---|---|---|
| Slack | A message with buttons | Allow once, Allow for this conversation, Allow 60 min, Always allow (Slack asks you to confirm) and Deny |
| Telegram | A message with buttons | ✅ Allow once, 💬 This conversation, ⏱ 60 min, ♾ Always and ❌ Deny |
| Google Chat | A card with buttons | Allow once, This conversation, 60 min, Always and Deny |
| A2A | The task waits in input-required. Gemini Enterprise shows the question in its own form. |
A number from 1 to 5, the answer typed in words, or an approval_decision data part |
The answers are web chat’s:
| Answer | What it allows |
|---|---|
| Once | This call only. The next one asks again. |
| This conversation | This call and the next ones in the same conversation: the Slack thread (or the direct message or channel when you wrote at the top level), the Telegram chat, the Google Chat space, or the A2A contextId. |
| 60 min | Your calls to this agent on that channel for the next 60 minutes, in any conversation. |
| Always | Your calls to this agent on that channel until someone who can edit the agent revokes it. |
| Deny | The call doesn’t run, and the agent is told you declined. |
- Only the person who asked can answer. When someone else clicks or taps, only they see a note saying so, and the prompt stays.
- A broader answer covers that person, with that agent, on that channel only. Another member of the same Slack thread is still asked, and an answer given in Telegram never counts in Slack or in web chat. Prompts already waiting that the answer covers are approved too, and say which answer approved them.
- Once answered, the buttons are replaced by who answered and for how long, for example Approved by @ana for this conversation.
- No answer within 10 minutes counts as a denial: the prompt says it expired and that nothing was run, and the agent is told not to run it again on its own.
A standing approval you give in web chat or the CLI also counts when you write to the same agent from a channel where VirtuAI knows it’s you, for example Slack or Google Chat with the email of your VirtuAI account, or Telegram after you link your account: the agent doesn’t ask you there either.
Where nobody can be asked
Section titled “Where nobody can be asked”OpenCode and evals have no one to ask, so a tool that asks is refused there, and the agent is told to send the person to web chat or the CLI. In OpenCode, commands run through OpenCode’s own shell on your machine, under OpenCode’s permissions. An evaluation gives the agent no shell at all, so commands never run there (see What an evaluation refuses).
An editor can turn on Run commands from channels without approval (dangerous) in the agent’s Security tab, for an agent whose channel users are all trusted. Its commands on Slack, Telegram, Google Chat and A2A then run with nobody approving them: anyone who can message the agent, or any text it reads, can run commands in its Workstation or on the paired computer. Tools keep their own Ask before each call setting.
On your own computer, the command check still applies to messages from those channels: under virtuai run a command the check doesn’t clear doesn’t run.
See and revoke standing approvals
Section titled “See and revoke standing approvals”If a command runs without asking, a standing approval covers it: This conversation, 60 min or Always, given in web chat, in the CLI or on a channel. There are two places to see them:
- In web chat, while you have one for the agent, a shield button appears in the chat’s top bar: Approvals you’ve given for this agent. It lists yours (This conversation, Until a time, Always), with Revoke on each and Revoke all. Revoking one makes the agent ask you again, in web chat, the CLI and the channels where VirtuAI knows it’s you.
- In the agent’s Security tab, people who can edit the agent (
agents.edit) see Standing approvals on a deep agent: one list of every standing approval on the agent, from web chat and from the channels. Web chat / CLI names the person who gave each one; Channels names the channel (Slack, Telegram, Google Chat or A2A) and the person who answered there. Each shows This conversation, Until a time or Always. An editor can revoke anyone’s, with Revoke on one or Revoke all. The section appears only while the agent has at least one.
Approvals from your own computer (Always in a folder) are kept by that computer, not here. See Standing permissions to remove them.
Related approvals
Section titled “Related approvals”Publishing an agent can also require a second person’s approval. That is a separate setting, described in Drafts and publishing.
