Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:42 evey Hermes plugins Hermes Agent Runtime

From Leeroopedia
Knowledge Sources
Domains Infrastructure, Autonomous_Agents, LLM_Delegation
Last Updated 2026-10-29 00:00 GMT

Overview

Python 3.10+ runtime on Linux with Hermes Agent v0.22.5, using only stdlib plus optional paho-mqtt and pyyaml.

Description

This environment is the base runtime context for every evey Hermes plugin. Plugins are pure Python modules loaded by the Hermes Agent gateway at startup. Each plugin registers tools via ctx.register_tool() and makes LLM calls through ctx.llm.complete(). The runtime relies on HERMES_HOME (default ~/.hermes) as the root for all state files: bridge DBs, goals, cron jobs, memory, telemetry logs, and cache. Most plugins use only the Python standard library (json, os, sqlite3, subprocess, urllib, pathlib, re), with two optional dependencies: paho-mqtt for MQTT streaming and pyyaml for sandbox config parsing.

Usage

Use this environment for any evey Hermes plugin that calls ctx.llm or reads/writes files under HERMES_HOME. It is the mandatory prerequisite for all 17 core implementation pages including the autonomy engine, delegation, telemetry, caching, validation, memory, identity, and learning plugins.

System Requirements

Category Requirement Notes
OS Linux (Ubuntu/Debian recommended) Hermes gateway runs on Linux; WSL2 on Windows
Hardware Any CPU No GPU required; plugins run on free local models
Disk 100MB+ State files, telemetry logs, cache under ~/.hermes
Python 3.10+ Uses zoneinfo (3.9+ with backport), f-strings, type hints

Dependencies

System Packages

  • python3 >= 3.10
  • git (for project monitoring in evey-autonomy)

Python Packages

  • Python stdlib (always available): json, os, sqlite3, subprocess, urllib, pathlib, re, math, time, hashlib, base64, logging, concurrent.futures, contextvars
  • paho-mqtt (optional; only evey-mqtt)
  • pyyaml (optional; only evey-sandbox, has fallback parser)

Hermes Agent

  • Hermes Agent >= v0.22.5 (provides ctx.llm, ctx.register_tool, agent.plugin_llm.PluginLlmTrustError)

Credentials

The following environment variables configure the runtime (none are secrets):

  • HERMES_HOME: Root directory for all state files (default ~/.hermes)
  • HERMES_TIMEZONE: IANA timezone name for time-aware scheduling (default UTC)
  • HERMES_OPERATOR_NAME: Display name for the operator (default operator)
  • HERMES_AUTONOMY_HEAVY_MODEL: Model id for heavy task routing
  • HERMES_AUTONOMY_CHEAP_MODEL: Model id for cheap task routing
  • HERMES_AUTONOMY_CONFIG: Path to autonomy JSON config (default $HERMES_HOME/evey-autonomy.json)
  • WORK_HOURS: Work-hours window as "START-END" (default 9-21)

Quick Install

# Install Hermes Agent v0.22.5+ first, then:
pip install paho-mqtt pyyaml  # optional: only for evey-mqtt and evey-sandbox

# Set HERMES_HOME if not using default
export HERMES_HOME="$HOME/.hermes"

# Install plugins
hermes plugins install 42-evey/hermes-plugins/evey-autonomy --enable
hermes plugins install 42-evey/hermes-plugins/evey-delegate-model --enable
hermes plugins install 42-evey/hermes-plugins/evey-telemetry --enable

# Validate
hermes plugins doctor --ci ./evey-autonomy
hermes plugins validate ./evey-autonomy

Code Evidence

Runtime version check from README.md:

Checked on Hermes v0.22.5: every plugin passes `hermes plugins doctor --ci`
and `hermes plugins validate`, and the skills load on a fresh install
running a local model.

Plugin registration pattern from evey-telemetry/__init__.py:232-241:

def register(ctx):
    _ensure_dir()
    emit_event("plugin_loaded", {"plugin": "evey-telemetry", "version": "1.0.0"})
    ctx.register_tool(
        name="telemetry_query",
        toolset="evey_telemetry",
        schema=QUERY_SCHEMA,
        handler=query_handler,
    )
    logger.info("evey-telemetry plugin loaded — structured logging active")

LLM call through ctx.llm from evey-validate/__init__.py:29-40:

def call_llm(prompt, max_tokens=200, temperature=0.3):
    if _CTX is None:
        return None
    try:
        result = _CTX.llm.complete(
            messages=[{"role": "user", "content": prompt}],
            max_tokens=max_tokens, temperature=temperature, purpose="evey-validate",
        )
    except Exception:
        return None
    return _visible(result.text) or None

Optional dependency import with fallback from evey-mqtt/__init__.py:13-16:

try:
    import paho.mqtt.client as paho_mqtt
except ImportError:
    paho_mqtt = None

Common Errors

Error Message Cause Solution
plugin not registered _CTX is None — register() not called Ensure the plugin is enabled via hermes plugins install --enable
PluginLlmTrustError: model not allowed Model override attempted without operator grant Set plugins.entries.evey-delegate-model.llm.allow_model_override: true in config.yaml
ImportError: No module named paho paho-mqtt not installed pip install paho-mqtt (only needed for evey-mqtt)
zoneinfo not found Python < 3.9 or missing tzdata Install backports.zoneinfo or upgrade to Python 3.10+

Compatibility Notes

  • Windows: Not directly supported; use WSL2. The sandbox plugin has a _win_to_wsl() path converter for Windows paths.
  • macOS: Should work with Python 3.10+; untested by the maintainer.
  • Local models: All plugins run on free local models (e.g., qwen35-4b, hermes3:8b); no paid API keys required for core functionality.
  • Python stdlib only: 28 of 32 plugins use only the standard library; no requirements.txt needed for most.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment