All plugins

hermes-adaptive-effort

Choose a separate scorer to set the reasoning effort of each Hermes request. Disclosure — off by default; when a mode is enabled (or on an explicit `/hae probe`), sends the latest user message (or the parent-written subagent goal), truncated to 4000 characters, plus any configured guidance to the scorer you select (TypeSafe Jev at api.typesafe.ai by default, or OpenAI Decisions, OpenRouter, Cloudflare Workers AI, Nace at console.nace.ai, or a custom URL) using that service's key; opt-in settings can also send the target model identity, up to 6 earlier user/assistant text messages (1200 characters each) and a separate continuation question to the same scorer; in Hermes Desktop it also sets the focused chat's session reasoning selector through the gateway `config.set` API after each applied change, and it keeps a prompt-free effort-change history (64 changes × 64 conversations), per-conversation mode overrides (at most 256 conversations) and per-route cache verdicts built from provider token counters (at most 128 routes) in its plugin data directory.

atostivint3Modelsv0.4.0Updated 21 days ago

About

Choose a separate scorer to set the reasoning effort of each Hermes request. Disclosure — off by default; when a mode is enabled (or on an explicit `/hae probe`), sends the latest user message (or the parent-written subagent goal), truncated to 4000 characters, plus any configured guidance to the scorer you select (TypeSafe Jev at api.typesafe.ai by default, or OpenAI Decisions, OpenRouter, Cloudflare Workers AI, Nace at console.nace.ai, or a custom URL) using that service's key; opt-in settings can also send the target model identity, up to 6 earlier user/assistant text messages (1200 characters each) and a separate continuation question to the same scorer; in Hermes Desktop it also sets the focused chat's session reasoning selector through the gateway `config.set` API after each applied change, and it keeps a prompt-free effort-change history (64 changes × 64 conversations), per-conversation mode overrides (at most 256 conversations) and per-route cache verdicts built from provider token counters (at most 128 routes) in its plugin data directory.

Hermes Adaptive Effort

CI Security

A Hermes plugin that asks a separate scorer to judge a task, then adjusts the reasoning effort of the outgoing model request.

Your conversation model still answers the task. You choose the scorer: Jev (the default), OpenAI Decisions, an OpenRouter decision model (Decisions API), Cloudflare Clef / Clef Flash / Clef Omni, Nace Drex (drex-v2.0, key NACE_API_KEY), or a custom System One endpoint.

Preview: v0.3.0 is a pre-release. Live effort acceptance is only partially validated; see the release notes.

The plugin starts off. When you enable routing, it changes a supported effort field and can add a missing field on exact registered routes. If classification fails, the original request continues unchanged. A transient scorer HTTP error (408, 429, 500, 502, 503, 504) is retried once, only inside the timeout_s deadline; timeouts, other errors and received answers are never retried. After three consecutive scorer failures (timeout, transport, HTTP or malformed answer) the selected scorer is paused for 60 seconds and requests skip it with scorer_paused; see scorer_pause_failures and scorer_pause_s in Configuration. The saved latency is unmeasured. The scorer deadline defaults to the selected provider's value (timeout_s: 0; Jev 2 s, custom 10 s, others 3 s), also unmeasured on this plugin's traffic; see Configuration. /hae status shows the p95 of the scorer's observed latency (a bucket bound, counts only, this process) once calls have been made: use it to tune timeout_s.

Quick start

1. Install and enable the plugin

hermes plugins install 'atostivint/hermes-adaptive-effort' --enable

The repository root is the plugin payload; install without a subdirectory suffix. Hermes manages installation and updates. The payload is not a Python package.

An older CLI may require installation without --enable, followed by:

hermes plugins enable hermes-adaptive-effort

2. Choose a scorer and provide its key

Any one scorer is enough; Jev is only the default. Pick one:

| Scorer | scorer_provider | Key variable | Also required |
| --- | --- | --- | --- |
| Jev (TypeSafe) | jev (default) | TYPESAFE_API_KEY | Nothing |
| OpenAI Decisions | openai_decision | OPENAI_API_KEY | Nothing (gpt-6-luna by default) |
| OpenRouter Decisions | openrouter | OPENROUTER_API_KEY | A decision model in scorer_model |
| Cloudflare Clef | cloudflare | CLOUDFLARE_AUTH_TOKEN | Your 32-hex cloudflare_account_id |
| Nace Drex | nace | NACE_API_KEY | Nothing (drex-v2.0 by default) |
| Custom / local System One server | custom | none, or CUSTOM_SCORER_API_KEY | custom_endpoint and scorer_model |

Put the key in the .env file of the Hermes profile that serves your requests (~/.hermes/.env on Linux/macOS, %LOCALAPPDATA%\hermes\.env on Windows for the default profile), for example:

OPENAI_API_KEY=YOUR_KEY

Then select the scorer in Desktop (Capabilities → Plugins → Hermes Adaptive Effort) or in the plugins.entries.hermes-adaptive-effort.settings block of config.yaml. Keep keys out of config.yaml.

Get TYPESAFE_API_KEY from your TypeSafe account. No setting is needed; to be explicit:

settings:
  scorer_provider: jev

Use an OPENAI_API_KEY from your OpenAI API account. The plugin calls the fixed Decisions endpoint with gpt-6-luna unless scorer_model names another model.

settings:
  scorer_provider: openai_decision

Create an OpenRouter key as OPENROUTER_API_KEY and name a decision model (a chat model slug does not work):

settings:
  scorer_provider: openrouter
  scorer_model: "typesafe/jev-1.13"   # or another OpenRouter decision model, e.g. cloudflare/clef-omni

In Cloudflare dashboard → Workers AI → Use REST API, create a Workers AI token (CLOUDFLARE_AUTH_TOKEN) and copy your Account ID:

settings:
  scorer_provider: cloudflare
  cloudflare_account_id: "YOUR_32_HEX_ACCOUNT_ID"
  cloudflare_model: clef   # clef, clef-flash or clef-omni

Create a key in the Nace console as NACE_API_KEY (the legacy DREX_API_KEY is still read):

settings:
  scorer_provider: nace
  nace_model: drex-v2.0

Point the plugin at a server you run that speaks the System One format. No cloud account is needed:

settings:
  scorer_provider: custom
  custom_endpoint: "http://127.0.0.1:8099/v1/systemone"
  scorer_model: "YOUR_SERVED_MODEL_NAME"
  custom_auth: none   # or bearer, with CUSTOM_SCORER_API_KEY in .env

A key exported only in a terminal (export OPENAI_API_KEY=..., or $env:OPENAI_API_KEY = "..." in PowerShell) reaches only a Hermes started from that terminal, not a running gateway or Desktop agent. The configuration guide covers each scorer in detail: endpoints, defaults, data handling and failure behavior.

3. Restart the serving Hermes process

Restart your local agent, or restart the gateway:

hermes gateway restart

Desktop connections can use separate agent processes. Reconnect the connection that will serve your requests.

4. Check readiness and choose a mode

In Hermes chat:

/hae status
/hae auto

Status checks readiness without classifying anything. Enabling a routing mode authorizes sharing bounded task text with the selected scorer. The chat command applies to future requests in the current process; save the mode in Desktop plugin settings if it should survive a restart.

Choose when to evaluate effort

| Mode | Behavior |
| --- | --- |
| off (default) | No scoring or request changes |
| auto | Evaluate each new user turn on exact verified dynamic routes; otherwise retain one decision per model and route |
| once | Retain one decision per model and route for the conversation |
| always | Evaluate every new user turn on eligible routes |

/hae status and the Desktop details panel say whether the current route changes effort every turn and why, for example Effort changes: every turn — dynamic (listed), Effort changes: every turn — on trial (1/3) or Effort changes: once, then kept — not dynamic (observed cache loss). The existing Cache: line is unchanged.

Trial of unlisted routes. In auto, a cache-safe route that is not in the exact registry used to keep one decision forever. With dynamic_trial (default true) such a route, if it already carries an effort field, changes effort every turn on trial while the plugin reads the provider's cache counters from Hermes' post_api_request hook. Three effort changes that keep the cache make the route dynamic (observed); a clear cache drop right after a change, a rejected level (HTTP 400/422), or five responses with no cache counters pin it again. Verdicts are remembered in the profile's plugin-data SQLite file, never in config, and keep only token counts and effort values. Claude routes and cache-hostile API modes are never trialled. The thresholds are heuristics; the worst case is one cache miss, and the cost and cache effect are unmeasured. Set dynamic_trial: false to keep one decision per unlisted route.

Every active mode reuses its decision during a tool loop. A route includes the provider, exact model and API mode. Bounded decision memory can be evicted or cleared on reset/reload.

/hae <mode> here sets a mode for the current conversation only, and /hae default here clears it. A conversation override takes precedence over the default mode for that parent conversation; subagents keep subagent_mode.

Use /hae help for all commands. The usage guide explains mode selection, status, probing and troubleshooting.

How a request passes through the plugin

flowchart TD
    A["Outgoing model request"] --> B{"Routing enabled<br/>and eligible?"}
    B -->|"No"| U["Keep original request"]
    B -->|"Yes"| D["Reuse a decision<br/>or ask the selected scorer"]
    D -->|"No valid decision"| U
    D -->|"Named choice or legacy score"| C["Check the route's<br/>accepted effort values"]
    C -->|"No legal value"| U
    C -->|"Supported value"| R["Keep or update the effort field"]
    R --> M["Send to your<br/>conversation model"]
    U --> M

For exact registered routes, the selected scorer chooses directly from that route's allowed levels. For example, Kimi K3 offers low/high/max, OpenAI's GPT-6.1 Sol route offers low/medium/high/xhigh/max, and native Claude Opus 5.5 offers those same five levels. Claude Opus 4.6 offers low/medium/high/max, without xhigh. One-level routes are fixed without a scorer call. Routes without an exact choice vocabulary keep the legacy finite 0..2 score mapped to low, medium or high; /hae probe also keeps that score contract. A route change re-clamps the stored named level using the compatibility rules and never promotes xhigh to the new route's max automatically.

When an already classified turn falls back to a request with no writable effort field, its request continues unchanged and status names that fallback route as unsupported. The turn's earlier decision remains available if a later request reaches an eligible route. The exact OpenCode Go mimo-v2.6-flash Chat Completions route is registered to inject top-level reasoning_effort (low, medium, or high) on a fallback without a field. Direct Go requests have accepted these values, but Xiaomi currently treats all non-none levels as enabled reasoning; no cost or reasoning-depth difference is established. See the compatibility matrix.

The scorer receives the latest user text, or the parent-written goal for a registered subagent. Scoring and answering are separate calls with separate costs. The allowed levels are included in the scorer question; model identity and observed effort are shared only when use_target_model_context is enabled, and earlier conversation text only when dialogue_context_messages is above 0.

See Design for the component diagram and Contracts for the tool-loop sequence and failure rules.

Desktop and terminal

The optional Desktop extension adds an Effort chip (previous → decided, for example low → high; default when the request had no effort field; N/A before any decision) with a compact Routing mode popup. More reveals conversation and scorer details plus recent applied changes for that chat; Activity shows aggregate status. In a Hermes chat, /hae opens the same conversation's recent history, and /hae status summarizes its model, selected effort and cache behavior.

Compact Routing mode popup in Hermes Desktop

The popup keeps the four routing modes together. More adds this chat's effort, whether the native selector is synced, and the route:

Routing mode popup expanded, showing this chat's effort, selector state and route

Further down, the popup lists the latest applied change and the selected scorer, with its key and guidance state but never the key itself:

Recent applied changes, scorer and gateway status in the Desktop popup

The plugin's settings page lists every scorer provider and its options. The screenshots are from a French-language Desktop.

Plugin settings in Hermes Desktop with the scorer provider list open

See the interface guide for notifications, focused-chat status and the native effort selector.

The chip matches decisions to the chat's stored conversation ID; Desktop's temporary runtime ID is used only for session actions. Both live events and status polling follow this distinction.

Data sharing and limits

  • Enabling routing sends at most prompt_chars task characters (default 4,000), plus optional classifier guidance and the allowed level names for named-choice routes, to the selected scorer. Target model context is a separate opt-in setting.
  • dialogue_context_messages (default 0, maximum 6) is another opt-in: when above 0, enabling routing also shares up to that many earlier user and assistant text messages (each at most 1,200 characters, oldest first, labelled as untrusted context) with the selected scorer so a follow-up such as "yes, go ahead" is judged with the task it refers to. System and developer messages, tool calls, tool results and non-text parts are never included, and subagent classification and /hae probe never carry it. With the default the scorer request is unchanged.
  • continuation_downgrade_votes (default 0 = off, maximum 5, suggested 2) works only together with dialogue context: it adds a second, separate yes/no request (same text and dialogue block, in parallel with the effort request) so that in always, and auto on exact dynamic routes, a lower effort choice on a continuation applies only after that many consecutive lower votes. It costs one more scorer request per turn; with it off no second request is made.
  • tool_error_escalation (default true) is local: it shares nothing and calls no scorer. Only the SHA-256 of a normalised tool error is compared in memory.
  • dynamic_trial (default true) is local too: it watches the provider's own cache counters (token counts only) and shares nothing with a scorer.
  • /hae probe <text> explicitly scores the text you type, even while routing is off. It stores no decision and may incur charges.
  • The plugin excludes prompts and guidance from status, logs and change events. Provider retention is separate; see data sharing.
  • Applied-change history stores only effort transitions, model names and bounded decision metadata in the active Hermes profile. It retains at most 64 changes per conversation and 64 conversations; a conversation reset clears its history. It never stores task or prompt text.
  • Reasoning support alone does not prove that a route accepts an effort field. The compatibility matrix distinguishes registered controls, documentation and live observations.
  • Explicitly disabled or malformed reasoning controls stay untouched. Subagents have an independent mode that also defaults to off.
  • Cost savings, cache benefits and answer-quality improvements remain unmeasured. Classification adds latency and may add cost.

Update or disable

hermes plugins update hermes-adaptive-effort
hermes plugins disable hermes-adaptive-effort

Restart the serving agent after updates or enable/disable changes. /hae off stops routing for future requests in the current process.

For migration from jev-auto-effort, follow migration instructions.

Documentation

| You want to… | Start here |
| --- | --- |
| Configure a scorer, keys or advanced settings | Configuration |
| Choose a mode or diagnose a missing change | Usage |
| Understand the implementation and trade-offs | Design · Version française expliquée |
| Check exact behavior and API contracts | Contracts |
| Check a model/provider route | Compatibility |
| Contribute and reproduce checks | Development |
| Find dated reports and operator notes | Documentation index |

License

MIT © 2026 Alexandre Tostivint and contributors.

README from the reviewed commit c84f138; it updates when the author re-pins.

More by atostivint

2 plugins by atostivint in the catalog.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section