Skip to content

Hermes Agent

Hermes Agent by Nous Research is a self-improving AI agent with a built-in learning loop. It creates skills from experience, improves them during use, and builds a deepening model of the user across sessions.

Installation

bash
curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash

See the Hermes quickstart for full details.

Base Invocation

Hermes is invoked in its scripted one-shot mode (-z), designed for programmatic callers:

text
hermes -z "<prompt>"

This produces single prompt in, final response text out — no banner, no spinner, no tool previews.

Common Flags

FlagTypeDescription
--providerstringOverride provider (e.g. openrouter, anthropic)
--modelstringOverride model
--yolobooleanBypass dangerous-command approval prompts
--quietbooleanSuppress banner/spinner/tool previews
--toolsetsstringComma-separated toolsets (e.g. web,terminal,skills)
--skillsstringPreload skills
--checkpointsbooleanEnable filesystem checkpoints
--max-turnsnumberMaximum iterations per turn

YOLO Mode

Hermes supports a --yolo flag that bypasses dangerous-command approval prompts. This is essential for fully automated workflows where no human is present to approve commands:

yaml
steps:
  - name: auto-refactor
    action: harness.run
    with:
      provider: hermes
      prompt: "Refactor the auth module to use interfaces"
      yolo: true
      toolsets: "terminal,skills"

Generated invocation:

text
hermes -z "Refactor the auth module to use interfaces" --toolsets terminal,skills --yolo

Warning: This bypasses safety checks for dangerous commands. Only use in isolated or trusted environments.

Example

yaml
steps:
  - name: refactor-auth
    action: harness.run
    with:
      provider: hermes
      prompt: "Refactor the auth module to use interfaces"
      yolo: true
      toolsets: "terminal,skills"

Generated invocation:

text
hermes -z "Refactor the auth module to use interfaces" --toolsets terminal,skills --yolo

Fallback Example

yaml
harness:
  provider: hermes
  yolo: true
  fallback:
    - provider: claude
      model: sonnet

steps:
  - name: analyze
    action: harness.run
    with:
      prompt: "Analyze the codebase for security issues"

Notes

  • Hermes supports many providers via --provider: openrouter, anthropic, openai-codex, copilot, gemini, deepseek, nvidia, and many more
  • Use --quiet or --yolo for CI/automated workflows where interactive prompts are not possible

See Also

Released under the MIT License.