Skip to content
BENIBIX Learn

Hermes Command Approval

AI🪽 Hermes AgentHermes Tools

Also known as Hermes dangerous command approval, Hermes approvals.mode, Hermes --yolo

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

Think of it like

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

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.

Why it matters

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

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 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.
A risky shell command must pass this gate first.

Common mistake

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

Key takeaways

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

Compare