Skip to content

Evidence Hermes

Alexander Kurganov edited this page Nov 25, 2026 · 11 revisions

Evidence for the facts about Hermes Agent that the repository states in docs/clients.md. A heading here matches a heading there.

Hermes Agent

Read at Hermes v0.23.0 (commit 2bd378ed1b8d) on 2026-11-06.

  • Where the documentation lives. Documentation: the Markdown under website/docs/ in NousResearch/hermes-agent, published at hermes-agent.nousresearch.com/docs. The pages named on this page are read as Markdown at tag v0.23.0.
  • Files unchanged between v0.22.7 and v0.23.0. Hermes v0.22.7 is commit b200f5bc60e3. Between v0.22.7 and v0.23.0, the delegation, plugin, registrar, manifest, host, constants and secret_scope files are unchanged. The two exceptions are an additive delegation.prefix_stagger_seconds setting in tools/delegate_tool_config.py and one entry added to the public-import list. Seen: git diff v0.22.7 v0.23.0 over those files, 2026-11-06
  • How the runs were set up. Seen: the probe facts ran on Hermes v0.22.7 on a fresh Hermes home with a scrubbed environment, through a probe plugin named probe-router. It was a DelegationProvider that records what route_task sees and returns a route. Its live turns used hermes -z "<call delegate_task once …>" -m google/gemini-2.5-flash --provider openrouter -t delegation --ignore-rules --usage-file <file>. The other probe calls ran in a Python process of that Hermes with its network functions blocked, or inside such a turn. Seen: the facts marked Hermes v0.23.0 ran on a fresh Hermes home too, with the hermes command of that release. The runs dated 2026-11-11 used a live turn of this repository's plugin, installed from a checkout with hermes plugins install, and the plugin's tests/test_real_hermes.py under Hermes's interpreter. Seen: a change of plugins.isolation applies after hermes gateway stop. The turn that followed a change of plugins.isolation without a stop did not run in host mode, so the probe did not count it.

Hermes install and update

Read at Hermes v0.23.0 (commit 2bd378ed1b8d) on 2026-11-06.

  • hermes plugins install takes a catalog name, user/repo or a path inside a repository; third-party plugins are off until enabled and plugins.disabled wins; the install asks Enable 'name' now? [y/N], which defaults to no, and --enable and --no-enable skip it. Documentation: Plugins, Plugins are opt-in, Managing plugins
  • --ref <40-character commit> pins an install; tags, branches and short hashes are refused; update refuses a pinned plugin, and install --force --ref <new-commit> moves the pin. Documentation: Plugins, Plugins are opt-in
  • hermes plugins update <name> pulls the latest code of a Git-installed plugin and scans it first. Documentation: Managing plugins, Install-time security scanning
  • Hermes checks requires_hermes before it imports a plugin and blocks the load with a message that names the spec and the running version. Source: plugins_manifest.py L502–L510
  • ctx.register_delegation_provider(provider) takes a DelegationProvider instance, provider.name is matched by delegation.backend, and a registration logs an INFO line. Source: plugins_registrars.py L85–L90, plugins.py L345–L374
  • A delegation backend change applies from the next session; /delegation <backend> --now rebuilds the running session's tools at its next turn; a hand edit of delegation.backend changes nothing in a running session. Documentation: Delegation provider plugins, Picker metadata and switching backends
  • A configured backend that no enabled plugin provides fails closed: delegate_task returns a tool error that names the fix, and a disabled or removed plugin is such a case. Documentation: Delegation provider plugins Source: delegation_registry.py L107–L134
  • hermes plugins install file://<repo>#plugins/<name> --enable installs and enables a plugin from a subfolder with no prompt, also with standard input closed. Seen: Hermes v0.22.7, a probe plugin installed from a file:// clone of a local repository, 2026-11-06 Seen: Hermes v0.23.0, this repository's plugin installed the same way, which printed Plugin model-router-hermes enabled., hermes plugins list --plain --no-bundled listed model-router-hermes as enabled, from the user source, and hermes config set delegation.backend model-router followed by hermes config get delegation.backend printed model-router, 2026-11-06 Seen: Hermes v0.23.0, the scan that ran in the install of this repository's plugin gave the verdict safe, 2026-11-06
  • hermes plugins install --enable does not call the plugin's register in its own process; it asks a running Desktop backend and a running gateway to load the plugin. Read at Hermes v0.23.3 (commit caafe5389ae5) on 2026-11-21. Source: the enable step calls report_activation, plugins_cmd_install.py L759–L764; that calls activate_plugin_now(name, in_process=False), plugins_activation.py L311–L315; with in_process false, the function loads nothing in this process and asks the backend and the gateway, plugins_activation.py L128–L147 Seen: Hermes v0.23.3 on 2026-11-21, hermes plugins install file://<repo>#plugins/<name> --enable, then a load in a new Python process. The report file held one line after that load, so the install wrote none.
  • hermes plugins capabilities <name> prints what an installed plugin declares, and hermes plugins doctor <name> checks its discovery, manifest, import and registration. Seen: Hermes v0.23.0, after the install above, 2026-11-06: hermes plugins capabilities model-router-hermes printed declared: (none), and hermes plugins doctor model-router-hermes passed discovery, manifest, import and registration with registrations: 1 tool(s), 0 hook(s)

Hermes package files

Read at Hermes v0.23.0 (commit 2bd378ed1b8d) on 2026-11-06.

  • A plugin folder holds plugin.yaml and __init__.py with register(ctx); plugin.yaml carries keys such as name, version, requires_hermes, provides_tools and config_schema; provides_tools lists the tools and does not decide whether they load. Documentation: Build a Hermes plugin, Write the manifest, Manifest v2 reference
  • config_schema describes the keys under plugins.entries.<id>.settings; a mismatch logs a warning and never fails the load; its types; a secret entry names its .env variable with env:; the Desktop settings form edits a dict entry in a JSON editor. Documentation: Manifest v2 reference, Settings form in the Desktop
  • hermes plugins validate reads a plugin.yaml written as JSON, which is valid YAML, and checks that its requires_hermes spec parses and that its config_schema has a valid shape. Seen: Hermes v0.23.0, hermes plugins validate plugins/model-router-hermes, 2026-11-06: it parsed the JSON text, reported that the requires_hermes spec parses and printed config schema — shape valid
  • The plugin registers its skill folders with ctx.register_skill; the agent loads one as skill_view("<plugin>:<skill>"); plugin skills are read-only and the system prompt's skill index does not list them. Documentation: Build a Hermes plugin, Bundle skills

Hermes registration and settings

Read at Hermes v0.23.0 (commit 2bd378ed1b8d) on 2026-11-06.

  • ctx.get_config(key, default) reads plugins.entries.<plugin id>.settings.<key>, returns default for an absent entry or key and applies no config_schema default; ctx.set_config(key, value) writes one value in that subtree. Source: plugins.py L266–L280
  • hermes config set on a key under plugins.entries.<plugin id>.settings takes a JSON object and stores it as a mapping; hermes config get prints its fields on separate lines; hermes config set takes a scalar on such a key too and stores its text, which hermes config get prints. Seen: Hermes v0.23.0, a fresh Hermes home, 2026-11-06: hermes config set plugins.entries.model-router-hermes.settings.small_model '{"provider": "openrouter", "model": "openai/gpt-4.1-mini"}' stored a mapping with those two fields, and hermes config get printed them on two lines Seen: Hermes v0.23.3 on 2026-11-21, hermes config set plugins.entries.<plugin id>.settings.<key> auto, then hermes config get on the same key. The set reported the value stored in config.yaml, and the get printed auto.
  • A secret entry never reaches config.yaml; the Desktop settings form stores it in .env under its env: name; the plugin reads it with get_secret(NAME) from agent.secret_scope. Documentation: Settings form in the Desktop Source: secret_scope.py L230–L261
  • A plugin update that renames a secret entry and keeps its env: name leaves the stored value in place; the settings form's field list shows the renamed entry as set, and get_secret(NAME) returns the value. Seen: Hermes v0.23.3 on 2026-11-22, the plugin of this repository installed from file://<repo>#plugins/model-router-hermes with the secret typesafe_api_key, a value stored through the function behind the settings form's route, then hermes plugins update to a manifest that names the secret api_key with the same env:. The home's .env held the same value under TYPESAFE_API_KEY before and after, config.yaml named neither setting, the field list showed api_key with has_value=True, and the loaded plugin's get_secret returned the stored value.
  • Hermes's own OpenRouter provider reads OPENROUTER_API_KEY; a secret entry with that env: name sets that provider's key too. Read at Hermes v0.23.3 (commit caafe5389ae5) on 2026-11-21. Source: the provider's key from the variable, runtime_provider_backends.py L181–L183; the secret stored under its env: name, plugins_settings.py L5–L9 Seen: Hermes v0.23.3, a plugin with a secret setting whose env: is OPENROUTER_API_KEY, saved through the functions behind the settings form, 2026-11-21: the value landed in the Hermes home's .env under that name, Hermes's own OpenRouter provider resolved it as its key, and get_secret returned it
  • Hermes's own Perplexity web search reads PERPLEXITY_API_KEY, so a secret entry with that env: name sets its key too. Read at Hermes commit c84e8d7f81a8 on 2026-11-25. Source: plugins/web/perplexity/provider.py L95, tools/web_tools.py L223
  • Hermes's provider registry lists no provider for PERPLEXITY_API_KEY. Read at Hermes commit c84e8d7f81a8 on 2026-11-25. Source: the registry is built at hermes_cli/auth.py L244–L247, and the entries it names include no Perplexity provider.
  • With the provider auto, or with none requested, Hermes takes its own session's provider in this order: a key or a base URL given on the command line, model.provider of config.yaml, a model.base_url on a loopback host when model names no provider, a usable OPENROUTER_API_KEY, the OpenRouter pool, another provider's key in the environment, an OAuth login; model.provider may name a registry provider, openrouter, custom or a named custom provider. Read at Hermes v0.23.3 (commit caafe5389ae5) on 2026-11-21. Source: the order, in resolve_provider, auth.py L1611–L1674, with the command line ahead of the config at auth.py L1644–L1649; what the config rung takes, in _config_model_provider, auth.py L1530–L1569; the base URL it takes with no provider named, one on a loopback host, runtime_provider.py L104–L120 and runtime_provider.py L92–L93; the variable ahead of the pool, in _openrouter_auto_detected, auth.py L1491–L1512
  • Among other providers' keys in the environment, Hermes takes the first API-key provider in its registry's declared order whose variable holds a usable value, and logs a warning when that passes over a logged-in OAuth provider; openai-api, with OPENAI_API_KEY, stands before gemini, which reads GOOGLE_API_KEY before GEMINI_API_KEY, for the pick and for the key it sends, unless model.key_env names a variable for it. Read at Hermes v0.23.3 (commit caafe5389ae5) on 2026-11-21. Source: the walk and the warning, in _env_key_auto_detected, auth.py L1585–L1608; the declared order, auth.py L170–L173, with the row of openai-api at L179 and the row of gemini at L185–L186; the key gemini sends, in _resolve_api_key_provider_secret, auth.py L389–L400, with the variable the config names, in _model_level_key_env, at L362–L371.
  • The settings form saves a secret as it saves a provider key: Hermes writes .env, replaces the previous value in the api_key of model, auxiliary.<task>, custom_providers.<name> and providers.<id> in config.yaml and in the legacy api field of the first three, leaves delegation.api_key, and loads the credential pool of each provider its registry lists for the variable; the registry lists no OpenRouter provider; Hermes seeds the OpenRouter pool in auth.json from OPENROUTER_API_KEY when it loads that pool. Read at Hermes v0.23.3 (commit caafe5389ae5) on 2026-11-21. Source: the form writes a secret through PUT /api/env, plugin-settings.tsx L379, agent-plugins.ts L721–L723 and config.ts L214–L223; the route calls the save for every key, config_env.py L352–L374; the save, credential_lifecycle.py L166–L202; the config.yaml copies it replaces, credential_lifecycle.py L83–L142; the providers of a variable, from the registry alone, credential_lifecycle.py L21–L35; OpenRouter outside the registry, auth_plugin_providers.py L28–L30 and auth.py L1549–L1551; the seeding of the OpenRouter pool, credential_pool.py L2775–L2790 Seen: Hermes v0.23.3, the same plugin, 2026-11-21: a secret saved through the functions behind the settings form landed in the Hermes home's .env under its env: name
  • get_secret reads no credential pool, so it never returns a key that sits only in auth.json. Read at Hermes v0.23.3 (commit caafe5389ae5) on 2026-11-21. Source: the reader, which takes the profile's scope and then the process environment, secret_scope.py L249–L280; the scope, built from the home's .env, the external secret sources and the managed .env, secret_scope.py L426–L465
  • get_secret(NAME) returns the value from the Hermes home's .env, in process and in the plugin host; the variable is also in the environment of the host and of the gateway. Seen: Hermes v0.22.7, a probe plugin that declared a config_schema secret with env: TYPESAFE_API_KEY, plugins.isolation: host and in process, 2026-11-06: get_secret("TYPESAFE_API_KEY") returned the value from the Hermes home's .env, and the variable was in the environment of the host and of the gateway
  • ctx.get_config(key) returns the value from plugins.entries.<plugin id>.settings, in process and in the plugin host. Seen: Hermes v0.22.7, the probe plugin, 2026-11-06: ctx.get_config("probe_setting") returned the value from plugins.entries.probe-router.settings
  • A config_schema entry of type str may list its allowed values under choices, or under enum; ctx.get_config returns a stored value outside that list as stored; the Desktop settings form saves a plain setting through the settings action of the gateway's plugins.manage call, which refuses a value outside the list and leaves such a stored value alone when it saves another key; the form takes its fields from the list action, which gives such an entry the type enum. Read at Hermes v0.23.3 (commit caafe5389ae5) on 2026-11-21. Documentation: choices, or enum, on a str entry, plugins/index.md L1090; the action refuses a value whose choices disagree, L1113–L1114 Source: ctx.get_config returns the stored value and checks no list, plugins_context.py L75–L86; the save refuses a value outside the list and writes only the keys it is given, plugins_settings.py L128–L152; a str with a list is typed enum, plugins_settings.py L82–L85; the settings action calls that save, methods_tools.py L1876–L1877, and the list action builds the fields, L1694, both actions of plugins.manage, L1932–L1939; the form sends the settings action, agent-plugins.ts L731–L736, and reads its fields from the listed row, plugin-settings.tsx L360 Seen: Hermes v0.23.3 on 2026-11-21, hermes config set plugins.entries.<plugin id>.settings.<key> auto, then Python processes of that Hermes calling ctx.get_config and the two functions behind the actions, save_plugin_settings and plugin_settings_fields, with no gateway and no form. The read and a later save of another key kept auto. A save of a value outside choices raised ValueError, and the field list gave type enum.
  • A plugin slash command's handler runs in the gateway process that owns the session; it can declare session_id, session_key, platform and source as keyword arguments, and it returns its text. Documentation: Plugins, What plugins can do
  • The surfaces that Hermes names as not a human messaging channel. Source: session_context.py L197–L203
  • With no saved tool selection, a plugin's toolset is on by default; enabling a plugin puts its toolset back into a saved selection. Documentation: Plugins, Plugins are opt-in

Hermes routing and refusals

Read at Hermes v0.23.0 (commit 2bd378ed1b8d) on 2026-11-06.

  • DelegationProvider is an abstract class: name, the synchronous route_task(task, config) and is_available(), which is true by default and fails delegation closed when false; config is the delegation section of the active profile's config.yaml, and dict(config) is the default route; backend names the backend that routes the call. Documentation: Delegation provider plugins, The interface Source: delegation_provider.py L62–L110 Seen: Hermes v0.22.7, the probe plugin, 2026-11-06: the config argument held api_key, api_mode, backend, backends, base_url, child_timeout_seconds, compression_threshold_tokens, fallback_providers, gateway_mode, independent_completions, inherit_mcp_toolsets, max_concurrent_children, max_iterations, max_spawn_depth, max_summary_chars, model, oneshot_max_children, orchestrator_enabled, provider, reasoning_effort, request_overrides, subagent_auto_approve, surface_child_process_notifications, and backend was the plugin's backend name
  • route_task gets {goal, context, index} plus the parameters the backend declared; context can be None; no role, agent description, toolsets, images or output schema crosses. Source: delegate_tool_routes.py L299 Seen: Hermes v0.22.7, the probe plugin saw the task keys context, goal, index, and context was None when the model gave none, 2026-11-06
  • A route may carry model, provider, base_url, api_key, api_mode, request_overrides, reasoning_effort, service_tier, fallback_providers, profile and label; Hermes drops every other key silently; Hermes's own default backend returns the delegation section without service_tier. Source: delegation_provider.py L51–L54, delegate_tool_routes.py L103–L108, plugins/delegation/default/__init__.py L32–L34
  • A route that route_task returns resolves through the credential resolver of the delegation section: a provider runs resolve_runtime_provider, an empty route inherits the parent's route, and request_overrides apply on every branch. Source: delegate_tool_routes.py L233–L238, delegate_tool_config.py L478–L488
  • A child's effort is the route's effort, else delegation.reasoning_effort, else the parent's level; an effort outside the known levels refuses the task, except a value equal to delegation.reasoning_effort. Source: delegate_tool_config.py L552–L560, delegate_tool_routes.py L255–L265
  • A child pinned by provider, endpoint or model gets no fallback providers unless delegation.fallback_providers declares them. Source: config_defaults.py L1318–L1322
  • A raise from route_task, a return of None and a return of a non-mapping refuse that task, with a log line and a message; a refusal is per task, and the call is a tool error only when every task is refused; a returned {} is not a refusal. Documentation: Delegation provider plugins, Refusals are per task Source: delegate_tool_routes.py L103–L108, L288–L306, L309–L332
  • Hermes routes the tasks of a call in one loop, in index order, in the thread that runs the call, builds the children after the loop, and puts no timeout around route_task. Source: delegate_tool_routes.py L325–L331, delegate_tool.py L613, L654, tool_executor.py L856 Seen: Hermes v0.22.7, under plugins.isolation: host, task 1 started 1747 ms after task 0, which included the host's cold start, 2026-11-06
  • The main agent's turn is not routed through the provider; only delegate_task tasks are, and internal callers that pass their own credentials bypass the backend. Documentation: Delegation provider plugins Source: delegate_tool.py L507–L518
  • label is short text shown with the child's progress and result, and every result entry of a task routed by a non-default backend carries route, with the backend and what the child runs on, and label when the route sets one. Documentation: Delegation provider plugins, Result route Source: delegation_provider.py L29
  • A delegated task takes the routed model and effort, each task of a call its own, in process and under plugins.isolation: host. Seen: Hermes v0.22.7, the probe plugin, hermes -z "<call delegate_task once …>" -m google/gemini-2.5-flash --provider openrouter -t delegation --ignore-rules --usage-file <file> under a 330 s alarm, once for each turn, 2026-11-06: one in-process task, routed to openai/gpt-4.1-mini at effort low, ran a child session with model = openai/gpt-4.1-mini and reasoning_config = {enabled: true, effort: low}, and the result entry carried route: {backend: probe-router, label, model, provider: openrouter, reasoning_effort: low, service_tier: normal} and the summary pong; under plugins.isolation: host, two tasks of one call routed to openai/gpt-6-luna at effort low ran two child sessions with model = openai/gpt-6-luna and effort low, and the summaries were ping and pong Seen: Hermes v0.22.7, this repository's plugin installed with hermes plugins install "file://<clone>#plugins/model-router-hermes" --enable on a fresh Hermes home and set up as its README says, hermes -z "<call delegate_task once with two tasks …>" -m openai/gpt-6-luna --provider openrouter -t delegation --ignore-rules --usage-file <file> under a 400 s alarm, once for each mode, 2026-11-06: one call held a lookup task and a design task; the provider was typesafe, small_model was openrouter openai/gpt-6-luna and large_model was openrouter openai/gpt-6.1-terra; in process, the child sessions ran openai/gpt-6-luna at effort medium and openai/gpt-6.1-terra at effort high, and each result entry carried the plugin's label in route.label; after hermes gateway stop and plugins.isolation: host, the same call gave the same levels, models and efforts, and route.label carried both labels
  • Hermes maps a requested effort that a wire does not support to the nearest weaker supported level, and to the weakest level when none is weaker. Source: reasoning_effort.py L127–L139

Hermes task parameters

Read at Hermes v0.23.0 (commit 2bd378ed1b8d) on 2026-11-06.

  • DelegationProvider.task_parameters(config) returns {name: json_schema}, merged into delegate_task's tasks.items.properties; description(config) returns a line appended to the tool description; Hermes calls both when it builds a session's tool list, and both must give the same bytes for the same config. Source: delegation_provider.py L86–L101, delegate_tool.py L763–L772 Documentation: Delegation provider plugins, Prompt caching
  • Both methods exist from Hermes v0.22.5, the first release with delegation providers, and are unchanged in v0.22.6, v0.23.0 and v0.23.1. Seen: git log --diff-filter=A -- agent/delegation_provider.py and git diff v0.22.6 v0.23.1 -- agent/delegation_provider.py tools/delegate_tool_routes.py in a clone of NousResearch/hermes-agent, 2026-11-11
  • A parameter name must match ^[a-z][a-z0-9_]{0,63}$ and stay out of the reserved names; Hermes drops a refused name with a warning and keeps the others. Source: delegate_tool_routes.py L26, L60–L78, delegation_provider.py L45–L48 Seen: Hermes v0.23.0, a probe that declared model and Effort logged task parameter 'model' refused (reserved or invalid name) and the same for Effort, 2026-11-11
  • Before route_task, Hermes checks three things only: an undeclared non-None value, a value outside a declared enum, and None counts as absent; it checks no type, so True passes the enum [0, 1, 2]. Source: delegate_tool_routes.py L96–L100, L288–L306 Seen: Hermes v0.23.0, plugins/model-router-hermes/tests/test_real_hermes.py under Hermes's interpreter, 2026-11-11: reasoning_effort: "max" and level: "2" were refused with must be one of, priority was refused with does not take 'priority', and level: True reached route_task
  • The payload is {goal, context, index} plus each declared parameter whose value is not None. Source: delegate_tool_routes.py L299 Seen: Hermes v0.23.0, the same test file, 2026-11-11: a task with description and reasoning_effort reached route_task as {goal, context: None, index: 0, description, reasoning_effort}
  • This repository's plugin declares description, reasoning_effort and level, and appends one line from constants.json. Seen: Hermes v0.23.0, plugins/model-router-hermes/tests/test_real_hermes.py, 2026-11-11 Seen: Hermes v0.23.0, the same test file, 2026-11-11: schema_extension returned all three, none reserved, and _build_dynamic_schema_overrides() put them in tasks.items.properties and ended the tool description with the line
  • A session routes on the backend its delegate_task schema was built from; a plugin update or a backend change applies from the next session or after /delegation <backend> --now; a task that carries a parameter its session's schema lacks is refused alone. Documentation: delegation-provider-plugin.md L171–L188
  • A delegating model fills the parameters that a backend declares, and the child runs on the route that the backend returns for them. Seen: Hermes v0.23.0, the plugin installed from a checkout with hermes plugins install "file://<clone>#plugins/model-router-hermes" --enable on a fresh Hermes home, hermes -z "<call delegate_task once with two tasks …>" -m qwen/qwen3.7-flash --provider openrouter -t delegation --ignore-rules --usage-file <file> under a 400 s alarm, 2026-11-11: one call held a new task and a re-dispatch of a task described as failed at level 1; the provider was typesafe, small_model was openrouter qwen/qwen3.7-flash and large_model was openrouter openai/gpt-6-luna; the model gave both tasks a description and gave the re-dispatch level: 2 and reasoning_effort: "high"; the re-dispatch ran on openai/gpt-6-luna at effort high, and its result's route held backend, provider, model, reasoning_effort and service_tier but no label; agent.log held the plugin's line for the new task only
  • Under plugins.isolation: host, the parent builds a DelegationProvider whose methods run in the plugin host, so task_parameters and description cross as plain JSON. Source: plugin_isolation.py L63–L78, at v0.23.1
  • A route without a fallback_providers of its own takes delegation.fallback_providers, and a profile route keeps its profile's chain. Source: delegate_tool_routes.py L224–L230
  • A route may name a profile, which runs the child as another Hermes profile; Hermes ignores every other route key on it; Hermes v0.23.1 adds a route_keys property for settings editors. Source: delegation_provider.py L25–L28, delegation_provider.py L81–L86, at v0.23.1

Hermes question tool

Read at Hermes v0.23.1 (commit 3b421578588243f920886e6fe79a6faa87ea026e).

Hermes runtime, logs and environment

Read at Hermes v0.23.0 (commit 2bd378ed1b8d) on 2026-11-06.

  • A hermes -z turn on a home with no gateway starts one with gateway run --quiet --idle-exit; on macOS it starts as a one-off launchd job through osascript; the provider runs in that gateway process, on a ThreadPoolExecutor thread. Source: gateway_launchd_runtime.py L1–L13 Seen: Hermes v0.22.7, 2026-11-06: the gateway started with python3 -m hermes_cli.main --profile default gateway run --quiet --idle-exit, and the provider ran on a ThreadPoolExecutor thread
  • The gateway keeps the plugin loaded between CLI turns, so module state carries over; a change of plugins.isolation or of the plugin's code applies after hermes gateway stop, which with HERMES_HOME set stops the gateway and its plugin host. Seen: Hermes v0.22.7, 2026-11-06: module state carried over from turn 1 to turn 2, a counter read 1, then 2 and 3, in one process; a change of plugins.isolation or of the plugin's code applied after hermes gateway stop; hermes gateway stop with HERMES_HOME set stopped the gateway and its plugin host
  • Under plugins.isolation: host, the provider runs in python3 -m hermes_cli.plugin_host_child, a child of the gateway, one per profile; the host sets HERMES_PLUGIN_HOST_PROCESS, hands the plugin a RemotePluginContext and calls it on the thread plugin-host-rpc; module state persists across the tasks of one call. Documentation: Plugins, Running plugins out of process, Delegation provider plugins, Process isolation Seen: Hermes v0.22.7, 2026-11-06: HERMES_PLUGIN_HOST_PROCESS was set, the context was RemotePluginContext, the call thread was plugin-host-rpc, and a counter read 1, then 2, in one host process
  • hermes_constants.find_node_executable("node") reads the Node that Hermes's package manager selected, returns None when it installed none, and never falls back to the Node on the user's PATH; it finds Hermes's Node in process and in the plugin host. Source: hermes_constants.py L575–L613 Seen: Hermes v0.22.7, 2026-11-06: it found Hermes's Node in both modes; a Node round trip (spawn, standard input, standard output) took 63 to 89 ms in process and 376 to 388 ms in the host; route_task took 78 to 102 ms in process, 1726 ms for the first task in a fresh host and 401 ms for the next
  • Hermes writes agent.log at INFO and above, in the logs folder of the Hermes home; the plugin host sets its own log level from HERMES_PLUGIN_HOST_LOG_LEVEL, WARNING by default, and drops INFO lines unless the variable says otherwise. Source: hermes_logging.py L3, L360–L369, L396–L397, plugin_host_child.py L600–L601 Seen: Hermes v0.22.7, the real call of this repository's plugin, 2026-11-06: in process agent.log held the plugin's line for each task, and under plugins.isolation: host it held no plugin line
  • Hermes runs natively on Windows 10 and Windows 11, without WSL; find_node_executable has Windows branches; a program started with a replaced environment on Windows needs SYSTEMROOT. Documentation: Windows (Native) Guide, windows-native.md L10, Python subprocess, Popen constructor Source: hermes_constants.py L585–L586, L605–L612
  • NODE_USE_ENV_PROXY=1 makes Node parse HTTP_PROXY, HTTPS_PROXY and NO_PROXY at start-up and route requests through the proxy; Node added it in v24.0.0 and v22.21.0. Documentation: Node.js command-line API, NODE_USE_ENV_PROXY=1

Hermes install scan and validate

Read at Hermes v0.23.0 (commit 2bd378ed1b8d) on 2026-11-06.

  • Every hermes plugins install and hermes plugins update scans the plugin tree before it activates it; the verdicts are safe, caution and dangerous; documentation prose cannot make a verdict dangerous alone, but a leaked provider key and anything under a bundled skills/ tree keep their full severity. Documentation: Plugins, Install-time security scanning Source: skills_guard.py L953–L956
  • A medium finding alone is safe; the rule python_subprocess is medium severity. Source: skills_guard.py L384–L385, plugin_guard.py L383–L391 Seen: Hermes v0.23.0, tools.plugin_guard.scan_plugin over the plugin folder plugins/model-router-hermes, 2026-11-06: the verdict was safe with one finding, python_subprocess, severity medium, category execution, at node.py line 87
  • A key-shaped literal blocks a plugin's install as dangerous, the rule caps a finding at medium under a tests/ tree, and a bundled esbuild output gets no finding when no rule matches its text. Source: threat_patterns.py L102–L104 Seen: Hermes v0.22.7, 2026-11-06: a probe plugin that shipped a copy of the OpenClaw esbuild bundle (71 KB) gave one medium finding, python_subprocess, at the subprocess.run( line, and none for the bundle; its first install attempt was blocked as dangerous by a key-shaped literal
  • hermes plugins validate <path> checks the plugin and warns about its imports of private Hermes modules, which can break on any release; the output ends with Validation passed. and with an Isolation note when plugins.isolation: host is on. Seen: Hermes v0.23.0, hermes plugins validate plugins/model-router-hermes, 2026-11-06: 15 checks marked passed, including security scan — safe, and one warning that listed the plugin's imports of private Hermes modules; it ended with Isolation — runs in the plugin host (plugins.isolation: host) and Validation passed. Seen: Hermes v0.22.7, a probe plugin's hermes plugins validate, 2026-11-06: it passed with one warning that listed four private core imports, and a note that the plugin runs in the plugin host under plugins.isolation: host
  • The admission lint lists a plugin's imports of private Hermes modules with file and line, as a warning and never a refusal; the public list holds agent.delegation_provider, agent.delegation_backends, agent.secret_scope and hermes_constants. Source: plugin_validate_private_imports.py L1–L9, L27–L68 Seen: Hermes v0.23.0, hermes plugins validate plugins/model-router-hermes, 2026-11-06: the modules that the warning named are not on that list

Hermes CI

Read at Hermes v0.23.0 (commit 2bd378ed1b8d) on 2026-11-06.

  • The hermes job runs the plugin's tests, validates the plugin, installs it from the checkout, checks the plugin list and delegation.backend, and runs the tests again under Hermes's interpreter; the install clones the checkout's own commit; Hermes keeps its home under the runner's temp folder and no key is set. Source: .github/workflows/ci.yml, job hermes
  • The setup-hermes action clones the release tag, checks that HEAD equals the pinned commit, installs only the wheels that Hermes's own uv.lock locks, checks that hermes --version names the tag, and pins a release tag and its commit. Source: .github/actions/setup-hermes/action.yml; CONTRIBUTING.md, Dependencies
  • The tests of the plugin call each handler and the router directly with a fake Hermes API, and one test file runs only under Hermes's interpreter, where it calls each Hermes function the shim uses, registers the provider, reads the delegate_task schema and routes tasks. Source: plugins/model-router-hermes/tests/ Documentation: delegation-provider-plugin.md L203–L209

Hermes project skills and home

Read at Hermes Agent 0.23.2 on 2026-11-19.

  • Project skills are read from .hermes/skills and .agents/skills under the project root, only for a trusted root, the trust list is empty by default, and .claude/skills is not read. Source: skill_utils.py L511–L517, L575–L601, config_defaults.py L1409
  • HERMES_HOME names the Hermes home. Source: hermes_constants.py L263–L264 Documentation: environment-variables.md L121
  • On an install that Hermes's package manager manages, a command under a new HERMES_HOME first builds a dependency environment of its own under that home; hermes --version, hermes --help, hermes pm and a command with HERMES_DISABLE_LAZY_INSTALLS set skip that build; with no environment built, a command that skipped the build exits with status 1 and no dependency environment is committed for this install, unless it is a hermes pm command. Read at Hermes v0.23.3 (commit caafe5389ae5) on 2026-11-21. Source: a root that borrows the checkout still gets an environment of its own, venv_sync.py L539–L546; the sync then runs, venv_sync.py L659–L675; a launch under another root borrows the checkout, pm/environments.py L44–L48; the metadata flags, venv_sync.py L159; the skip for them and for pm, venv_sync.py L453–L462; the refusal, pm/environments.py L450–L461; start-up prints it and exits for every command but pm, hermes_bootstrap.py L615–L624 Seen: Hermes v0.23.3 on 2026-11-21, hermes plugins install file://<repo>#plugins/<name> --enable under a new home, with standard input closed. The build printed Installing Python dependencies. The new home then held 526M of cache and 718M of installs.
  • The environment is the folder installs/<key>/environments/<name>/venv under the home, with the interpreter at bin/python, or Scripts/python.exe on Windows; <key> is the first 16 hexadecimal characters of the SHA-256 of the checkout's resolved path, and <name> is a random id of one build; installs/<key>/facts.json names the built environment under packages.venv.environment. Read at Hermes v0.23.3 (commit caafe5389ae5) on 2026-11-21. Source: the key, pm/environments.py L20–L22; the folder of an install, L33–L38; the name of a build, pm/packages.py L541–L543; the interpreter, pm/environments.py L333–L344; the facts file and its field, L105–L106 and L316–L318 Seen: Hermes v0.23.3 on 2026-11-21, a search of the new home after its first command. It found <home>/installs/<key>/environments/<name>/venv/bin/python, with a key of 16 hexadecimal characters and a name of 32.
  • An install from file://<repository>#<folder> clones the repository with git clone --depth 1 and takes the committed HEAD. Source: plugins_cmd_git.py L219–L258, plugins_cmd.py L300–L323

Hermes gaps

Seen at Hermes v0.22.7 and v0.23.0 on 2026-11-06 and 2026-11-11.

  • Most probes ran a probe plugin and not this repository's plugin; the probe plugin ran Node on a small script and shipped the OpenClaw bundle for the scanner.
  • This repository's plugin passed validate, the scan and the file:// install; it routed one real call of two tasks, in process and in the plugin host, and one call with task parameters, in process.
  • No run used a fallback between providers, and no run with task parameters used the plugin host.
  • No run used the repository form Akurganow/model-router/plugins/model-router-hermes from the README, a --ref pin or hermes plugins update.
  • No run used native Windows.
  • No run used a proxy.
  • No run sent two concurrent sessions through one gateway.
  • No run checked that Hermes clamps a routed effort for a delegated child.
  • No live session ran /model-router-provider, the settings form in Hermes Desktop or the model_router_config tool; their tests call the handlers directly.
  • No run used the settings form's JSON editor for a dict slot.
  • No run showed what provenance: drift in hermes plugins list means for a plugin installed from a file:// source.

Clone this wiki locally