Skip to content

Hermes Approval

The hermes-like approval panel: a bordered box with the question, the command and the numbered choices.

On this page

Examples

The shared grammar with the look fixed: the same as <CliPermission preset="hermes-like" />, so it reads as the hermes-like look on its own or inside a session. Every part in all eight looks is on Agent CLI.

Installation

npx knowns-ui@latest add agent-cli-hermes
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

tool
string
The tool asking: its name goes into the session choice.
title / detail
string
What it wants to do, and the command or change as is.
onPick
(choice: "once" | "session" | "deny") => void
The answer. 1-3 or y, a, n pick; the arrows move; Escape says no.
pressed
"once" | "session" | "deny"
A choice shown as pressed (a scripted answer about to land).
autoFocus
boolean
Defaultfalse
Take focus on mount, for keyboard answers.

When to use

When to use

  • Asking before a command runs, in the hermes-like look.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Hermes Approval to my app and wire it to my own data.
  • I need asking before a command runs, in the hermes-like look. Set that up with the Knowns UI Hermes Approval.
  • Which Hermes Approval props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "hermes-approval" }) and search_docs({ query: "hermes approval" }).

Need help?

Stuck on Hermes Approval, or found something off? We read every message.