# Hermes Command Approval

> The check Hermes runs before a risky command. You can say yes or no.

**Field:** Artificial Intelligence  
**Category:** Hermes Agent  
**Also known as:** Hermes dangerous command approval, Hermes approvals.mode, Hermes --yolo

## Think of it like

It is like a mom who must say yes before you use the sharp knife.

## Definition

Command approval is the check Hermes runs before a risky shell command. It compares each command with a list of risky patterns, such as deleting a folder. In smart mode, the default, a helper model lets safe ones run and stops bad ones. Unsure cases come to you. You can allow once, for the session, always, or say no. Manual mode always asks, and off mode never does.

## Example

Hermes wants to run rm -rf on an old folder. A prompt shows the command, and Jack picks once so it runs one time only.

## Example code

```yaml
approvals:
  mode: smart      # smart | manual | off
  cron_mode: deny  # what a scheduled job does
```

Smart is the default. A scheduled job with no one to ask is told no.

## Why it matters

An agent with a shell can wipe your files in one line. This is the guard that stops it.

## Common mistake

Leaving --yolo or off mode on outside a throwaway box. Both skip every prompt.

## Three principles

- **Patterns first.** Only risky commands are checked.
- **Three modes.** smart, manual or off.
- **Four answers.** once, session, always or deny.

## Related terms

- [Hermes Terminal Backend](https://learn.benibix.com/term/ai/hermes-terminal-backend)
- [Human-in-the-Loop](https://learn.benibix.com/term/ai/human-in-the-loop)
- [Agent Sandbox](https://learn.benibix.com/term/ai/agent-sandbox)
- [Permission Prompt](https://learn.benibix.com/term/ai/permission-prompt)
- [Hermes Cron Job](https://learn.benibix.com/term/ai/hermes-cron-job)

## Told apart from

- [Hermes Command Approval vs Terminal Backend](https://learn.benibix.com/compare/hermes-command-approval-vs-hermes-terminal-backend): People think command approval keeps Hermes in a sandbox. It does not. Approval checks a risky command before it runs and may ask you first. The terminal backend decides where every command runs: your own machine, a container or a server far away. Approval can let a bad command through. A sandbox keeps the harm away from your files.

![The agent asks to use a tool. A shell command first passes an approval gate with three modes, smart, manual and off. Web tools sit beside it: web_search and web_extract for reading, browser_exec for clicking and typing on a real page.](https://learn.benibix.com/diagrams/ai8-hermes-tool-check.svg)

---

Source: https://learn.benibix.com/term/ai/hermes-command-approval
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
