Skip to content

About

Hermes Agent plugin that uses Jev to pick skills, lower reasoning effort on routine turns, and drive bounded computer use — with local receipts.

Topics

Resources

Contributing

Security policy

Stars

13 stars

Watchers

0 watching

Forks

Repository files navigation

Hermes Switchyard

Version: 0.6.2

Switchyard routes small turn decisions in Hermes Agent through Jev, acts only within local limits you set, and writes a local receipt for each one.

Every turn, an AI agent makes small calls: Which skill fits this request? Does "thanks!" really need maximum reasoning effort? Which button on this page should I click? Switchyard hands those questions to Jev, a fast decision model that answers in a few hundred milliseconds. Code in the plugin then acts on the answer within limits you set, and writes a local receipt of what happened.

Rail-yard map of Hermes Switchyard: bounded decisions pass local policy before Hermes acts

New here?

If these terms are unfamiliar, here is the 30-second version. The Concepts primer has more.

  • Hermes Agent is an open-source AI agent you chat with in your terminal. It uses a main language model of your choice and can run tools.
  • A plugin is an add-on Hermes loads at startup. Switchyard is one.
  • Jev is a separate, fast model from TypeSafe for small multiple-choice, scoring, and yes/no questions. You call it through TypeSafe or OpenRouter with your own API key. It is billed separately from any ChatGPT or Codex subscription.
  • A skill is a packaged set of instructions (a SKILL.md) that teaches Hermes one kind of task.

What Switchyard does for you

Feature What you'll notice On by default?
Adaptive reasoning effort Easy turns like "hi" or "thanks" go out at lower effort. Your /reasoning level stays the maximum. On turns where Switchyard decides something, a short line under the reply shows what was sent. Yes
Automatic skill routing Hermes picks and loads the right skill from your catalog at the start of a turn, without you naming it. Yes
Computer use The main model can call jev_computer_use to click through a public web page in a fresh, private browser, or drive a desktop app. Available as a tool
Decision tools Tools for typed multiple-choice checks, multi-skill picks, model recommendations, and re-ranking past-session search. Available as tools
Source prefetch Ask "In notes.md, find the retry limit" and the exact passage is ready before Hermes answers. No (opt-in pilot)

Some things Switchyard deliberately does not do: it never switches your main model, never logs into websites for you, and never treats "Jev said done" as proof a task is finished.

Quickstart

You need: Hermes Agent 0.21.3+ (0.21.4+ for adaptive effort; 0.21.6+ for UI/config-command setup), one TypeSafe or OpenRouter API key, and to be comfortable sending public or sanitized task text to that provider. See Privacy at a glance.

  1. Install and enable from the reviewed Hermes catalog:

    hermes plugins install hermes-switchyard --enable
    

    Or use the Desktop one-click link: hermes://plugin/install?catalog=hermes-switchyard (installs the latest reviewed catalog release). To inspect before enabling, run hermes plugins install hermes-switchyard --no-enable and then hermes plugins enable hermes-switchyard --no-allow-tool-override.

    To install directly from the public GitHub repository instead (for example to pin an exact reviewed commit, or if a catalog release predates 0.6.1 and you need the hermes hermes-switchyard CLI alias):

    hermes plugins install bgrablin/hermes-switchyard --no-enable
    hermes plugins enable hermes-switchyard --no-allow-tool-override
    # or pin a reviewed commit SHA: hermes plugins install bgrablin/hermes-switchyard --ref <SHA> --enable
    

    Hermes security-scans GitHub source installs first.

  2. Add your key. You type it into a masked prompt, so never paste it into a command, chat, URL, or file:

    hermes switchyard setup --provider typesafe
    # or: hermes switchyard setup --provider openrouter
    

    On Hermes 0.21.6+, you can also save TYPESAFE_API_KEY or OPENROUTER_API_KEY in Desktop Settings → Plugins or hermes plugins config hermes-switchyard (stored in .env, never config.yaml), then run hermes switchyard ensure-toolsets.

  3. Start a fresh Hermes session, then check that everything is wired up:

    hermes switchyard status --json
    hermes plugins doctor hermes-switchyard --ci
    

    status should say ready. That means your key is present and the tools are visible. It does not make a Jev call.

  4. Optional: make one real (billed) test call with public sample data:

    hermes switchyard test --live --public-or-sanitized-data-ack
    

    This reports passed only after Jev actually answers.

If something looks off:

  • The install was blocked by a security scan. Read the findings before you approve anything. A blocked install is not a success, and adding --force just to get past it defeats the point.
  • A running session doesn't see the plugin. Sessions load plugins at startup. Start a new session, and run hermes gateway restart if you use the gateway.
  • Doctor passes but something still fails. Plugin Doctor checks that the plugin is registered. It does not check your account, your key, or answer quality.
  • For anything else, see Troubleshooting or the full setup guide.

In an earlier 0.5.4 source-install baseline (first-run check), the local install steps took about 9 seconds; catalog installs, key entry, and a first live answer were not timed.

What you'll see

After a reply, Switchyard adds a short line showing the reasoning effort it actually sent. These two lines were recorded from a real session:

Reasoning: high→low · local decision
Reasoning: kept at high — consequential request · 218 ms
  • The first followed hi. It is obviously a greeting, so Switchyard lowered effort on your machine, with no Jev call.
  • The second followed thanks, now deploy. Jev was asked, recognized a consequential request, and kept your full effort.

The timings are from one recorded session and are not a promise. The image below renders that recorded output; it is not a live screenshot:

Rendering of recorded Switchyard receipt output for a greeting and a consequential request

Your status bar keeps showing your /reasoning level, which is the cap. The receipt line shows what was actually sent on each turn.

Useful commands:

Command Shows
/switchyard effort status The last effort decision and why
/switchyard effort summary Effort choices this session, with local and cloud counts
/switchyard effort pin / auto Always send your level / let Switchyard lower it again
hermes switchyard wow / /switchyard wow 7-day read-only local summary, including recorded_cost (routing receipts only) and skills_refetched
hermes switchyard receipt The latest skill-routing receipt as formatted JSON
hermes switchyard receipt --human A readable summary of the decision, selected skill, verified load result, and (when present) hosted_gate reasons, top_candidate, and shortlist size
hermes switchyard receipt --json The latest skill-routing receipt as compact JSON
hermes switchyard stats Totals across recent turns, including hosted_gate_reasons and skill_refetched counts/rates

--human also formats receipt history selected with --session or --last. JSON remains the default. A receipt records a decision. It does not prove the answer was correct or a browser task finished. More: adaptive effort · skill routing.

Privacy at a glance

Jev is an external service. Here is what each feature sends to it:

Feature What goes to Jev What never goes How to keep it local
Adaptive effort (on) Up to 1,200 characters of your current message, after secret scrubbing, plus simple status flags Earlier messages, memory, tool output, files adaptive_reasoning_effort → false
Skill routing (on) Up to 4,000 characters of your current message, after secret scrubbing, plus your skill names. When Hermes supplies no policy for the turn, a local scan runs first; text Hermes explicitly authorizes skips that scan. If you opt in with automatic_skill_hosted_detail, also short descriptions or SKILL.md excerpts for a few finalists Full skill bodies, history automatic_skill_routing_mode → local_only
Decision tools What the model passes to the tool. Only jev_session_search_rerank redacts anything (its result cards and previews, not the recall question) — public_or_sanitized_data_ack → false
Computer use: browser The goal and a bounded view of the page (labels, visible text, recent steps). Values you ask it to type are masked out where they echo back (best-effort: a value copied into a host name or transformed by the page can slip through) Your logins, cookies, files Don't call the tool
Computer use: desktop The goal, app and window title, control labels, visible context, and recent actions on every step. This is not masked, so typed values or signed-in app content can reappear — Only use it on public or sanitized apps and values
Source prefetch (off) Your lookup question, plus text from 1–8 files you name (80,000 bytes max in total). If the scrubber would change anything, nothing is sent and Hermes handles the request normally Anything outside the folder you approve Leave it off
Stuck advice (off, cross_tool_stuck_detection) After three consecutive errors across 2+ tools: up to three redacted error excerpts (≤500 chars each) and generic tool categories, once per scoped turn within a 0.8 s budget (details) Scoped IDs and concrete custom/MCP tool names as metadata Leave it off
Smart approval provider (off, smart_approval_provider; also needs auxiliary.approval.provider: switchyard-approvals) Command and operator policy (up to 4,000 chars each) only after local checks pass and scrubbing leaves both unchanged; uses OPENROUTER_API_KEY and https://openrouter.ai/api/alpha/decisions, even when other Jev calls go directly to TypeSafe (details) Commands matching known credential/irreversible patterns; inputs over the limits or changed by scrubbing are not sent Leave it off

Some turns never reach Jev:

  • Obvious greetings and thanks are decided on your machine.
  • When Hermes supplies no policy for the turn, messages with document markings such as proprietary, company confidential, or a standalone Confidential banner stay local.
  • If your Hermes version lacks its secret scrubber, skill routing falls back to local matching and adaptive effort sends only message shape (length buckets and flags), no text.

The fine print, in plain words:

  • Scrubbing catches recognizable secrets such as API keys, passwords in URLs, and auth headers. It is pattern-based and can miss new formats.
  • Ordinary words like "password," and email addresses or phone numbers, are not treated as sensitive.
  • The acknowledgement settings (public_or_sanitized_data_ack, automatic_skill_public_or_sanitized_data_ack) record your promise that inputs are public or sanitized. They are not a data-loss-prevention system.
  • Don't send secrets, credentials, payment data, or private or employer content through Switchyard.

To keep automatic Switchyard decisions local, first change the two default-on features:

hermes config set plugins.entries.hermes-switchyard.settings.automatic_skill_routing_mode local_only
hermes config set plugins.entries.hermes-switchyard.settings.adaptive_reasoning_effort false

Source prefetch (evidence_finder_enabled), stuck advice (cross_tool_stuck_detection), and the smart approval provider (smart_approval_provider) are off by default and can send data only when you enable them, so leave them off.

The consequential-tool gate (consequential_tool_gate), repeated-line compaction, retrieved-text screening, and browser plan cache run only on your machine and send nothing to Jev themselves.

Start a fresh session after changing settings. The full rules are in setup and automatic routing.

Supported features

The complete list of what Switchyard adds to Hermes:

Surface Available now Default
Tools (7) jev_assess, jev_skill_select, jev_skill_select_many, jev_model_route, jev_model_route_approved, jev_session_search_rerank, jev_computer_use Callable when the matching toolset is selected (see Toolsets)
Hooks (7) pre_llm_call (skill routing and effort capture), post_llm_call (clears capture), post_tool_call (reconsiders effort, notes skill re-fetches), transform_llm_output (receipt line), post_api_request (token counts); optional pre_tool_call (requests approval) and transform_tool_result (output handling and stuck advice) First five on after install; new tool hooks opt-in
Middleware (1) llm_request sets the reasoning effort for each request On when your Hermes version supports it (0.21.4+)
CLI hermes switchyard setup, status, test, receipt, stats, guide, ensure-toolsets, cleanup (alias: hermes hermes-switchyard ... in 0.6.1+ if another plugin claims switchyard) Run when you want
CLI (offline) hermes switchyard lint-skills [--json] flags ambiguous descriptions (guide); hermes switchyard scan-catalog PATH reviews package/MCP content with hashes and coverage gaps (guide) Explicit only; no network, no edits
Local report hermes switchyard wow and /switchyard wow summarize what Switchyard recorded locally, including recorded_cost (routing receipts only) and skills_refetched (guide) Last 7 days; read-only

What each tool is for:

  • jev_skill_select picks one skill from a catalog. jev_skill_select_many picks several for a multi-part task. Neither loads skills; only the automatic hook does that, one skill per turn.
  • jev_assess asks Jev typed questions (multiple-choice, score, or yes/no) and validates the answers.
  • jev_model_route and jev_model_route_approved recommend a model. They never switch it.
  • jev_session_search_rerank reorders Hermes' past-session search results for recall questions.
  • jev_computer_use drives a public web page or a desktop app, one Jev decision per step.

hermes plugins doctor reports seven hook registrations by default, or eight with source prefetch enabled, because several handlers share pre_llm_call and post_tool_call. The manifest lists seven distinct hook kinds, including two optional tool hooks.

Automatic source prefetch (opt-in pilot)

Ask Hermes normally: "In notes.md, find the retry limit." With evidence_finder_enabled set to true and evidence_finder_root pointing at an approved folder, Switchyard finds the exact passage before Hermes' first model call. There's no slash command or tool to learn. If the request doesn't fit the pattern, or the evidence is uncertain, Hermes searches and reads files as usual. See setup and limits.

Automatic skill recommendations

At the start of an eligible turn, Switchyard looks at your active profile's skills and works out which one fits. By default it asks Jev, then loads the winner through Hermes' normal skill loader inside a clear frame so the model sees it is already loaded. You'll find the details in its receipt.

  • You stay in charge. If you name a skill yourself, that wins and Switchyard stays out of the way.
  • It can say "none." No good match, an unclear answer, or a failed check all mean no skill is loaded, which is normal.
  • Spill-safe and setup-aware: if a framed SKILL.md would exceed Hermes' hooks.output_spill.max_chars limit (10,000 characters by default), Switchyard sends a short pointer instead and records load_deferred; skills that still need setup are skipped and fall back to advisory context.
  • Optional repeat-view dedup: automatic_skill_record_skill_view (default false) records pre-loads in Hermes' repeat-view check; keep it off until live re-fetch rates justify its retry/undo trade-off.
  • Keep it local: automatic_skill_routing_mode=local_only uses on-device word matching only.
  • Suggest, don't load: automatic_skill_consumer_mode=advisory.

Neither setting affects your normal Hermes model calls or the explicit Jev tools. Gates and receipt fields: routing details. Step-by-step setup: automatic setup.

Computer use

jev_computer_use handles two kinds of goals:

  • Public web pages: It opens a fresh, throwaway Chromium profile. It never attaches to your signed-in browser, never logs in, and never uploads files. If a form needs text, the model supplies the values in text_inputs. Jev picks where to type, and the values are never sent to it directly. Copies that echo back on the page are masked on a best-effort basis.
  • Desktop apps: It uses Hermes' Cua Driver on supported systems.

When a run thinks it's finished, it returns a completion candidate with verified: false. The browser receipt has a stricter dual-gate verified state, but the current loop never reaches it; see the browser guide. The receipt shows whether it stopped because a local check passed (for example, "the URL equals …") or because Jev decided it was done. Either way, check the result yourself before treating it as done. Destination rules, receipts, and recovery: browser and desktop guide.

Toolsets and session exposure

Hermes only lets a session call a plugin tool when that tool's toolset is turned on. Switchyard registers its seven tools under two toolsets:

Toolset Tools
computer_use jev_computer_use
hermes_switchyard jev_assess, jev_skill_select, jev_skill_select_many, jev_model_route, jev_model_route_approved, jev_session_search_rerank

With Hermes' default selection, both are on, and hermes switchyard setup adds them to your CLI toolsets. One exception: if Hermes' coding focus mode (agent.coding_context: focus) is active, it overrides that list for sessions without -t. Check with hermes switchyard status --json. Watch out when you pin toolsets with -t: a pin replaces the defaults.

  • Pinning only computer_use leaves out the six decision tools.
  • Pinning only hermes_switchyard leaves out computer use.
  • A pin listing only other toolsets exposes none of the seven tools.

To expose all seven in one CLI session:

hermes -t computer_use,hermes_switchyard chat

hermes switchyard status --json tells you what a fresh session would get. It reports "registered" (Hermes knows the tool) and "callable" (the session can use it) separately. See Confirm what a session exposes.

Configuration

The defaults work for most people. These are the settings you're most likely to change:

I want to… Run
Keep skill routing on my machine hermes config set plugins.entries.hermes-switchyard.settings.automatic_skill_routing_mode local_only
Get skill suggestions without auto-loading hermes config set plugins.entries.hermes-switchyard.settings.automatic_skill_consumer_mode advisory
Stop sending message text for effort decisions hermes config set plugins.entries.hermes-switchyard.settings.adaptive_reasoning_effort false
Never lower my /reasoning level hermes config set plugins.entries.hermes-switchyard.settings.adaptive_reasoning_effort_mode pinned
Hide the Reasoning: … line /switchyard effort receipt off (saved for future sessions)
Choose a provider explicitly hermes config set plugins.entries.hermes-switchyard.settings.jev_provider typesafe (or openrouter)

Start a fresh session after any change. On Hermes 0.21.6+, you can also edit settings interactively with hermes plugins config hermes-switchyard or Desktop Settings → Plugins. Every setting, grouped by feature and explained: Configuration reference.

Troubleshooting

hermes switchyard status --json and routing receipts report a reason code when something didn't happen. A reason code names the gate that stopped it; it isn't necessarily a bug:

Reason What it means What to do
tools_not_registered / not_registered Hermes didn't register the plugin's tools. Enable the plugin and start a fresh session.
tools_not_callable / toolset_not_selected The tools are registered, but this session hasn't turned on their toolset. Select computer_use and hermes_switchyard, and check agent.disabled_toolsets.
credential_required No key for the provider Switchyard is set to use. Run hermes switchyard setup --provider … for that provider.
ack_required A public/sanitized acknowledgement setting is off. Decide whether your input is public or sanitized first. Only then turn the setting back on.
consumer_contract_unmet Skill routing is in advisory mode, so it won't pay for a Jev call. Switch to load only if you want skills loaded automatically.
local_scan_restricted_data / local_scan_restricted_marking The local scan found marked or restricted content, so the turn stayed local. Keep this input local. Don't try to get around the scan with different wording.
per_turn_policy_denied / per_turn_policy_invalid Hermes' own per-turn policy refused hosting, or sent something malformed. Check the host policy. This turn stays local.
client_unavailable / provider_request_failed No working Jev client, or the provider call failed. Check your key, provider, and account balance, then read the receipt. Don't assume a fallback happened.

No Reasoning: … line under replies?

  • Start a fresh session after installing or changing settings.
  • Check that the receipt mode isn't off: /switchyard effort receipt auto.
  • In auto mode, the line only appears when Switchyard did something on that turn. Use always to also see it on pinned and pass-through turns where the sent level is known. Delegated, background, and unsupported-route turns stay quiet.
  • It can't appear if adaptive effort is disabled, your Hermes is older than 0.21.4, or your model matches adaptive_reasoning_effort_exclude_models (which defaults to ["typesafe/jev-router*"]).

/switchyard effort status shows the current state. If another installed plugin (such as nvidia-switchyard) also registers hermes switchyard, run hermes hermes-switchyard <subcommand> instead (available in 0.6.1+). More status reasons, browser startup, and toolset pins: setup guide.

Uninstall and rollback

Pause it (keeps the installed files):

hermes plugins disable hermes-switchyard

Roll back: hermes plugins update hermes-switchyard moves you forward, so it is not a rollback. To return to an earlier version, reinstall that exact reviewed Git commit through your normal security review. Note that downgrading to 0.6.0 or earlier causes the next history compaction to drop receipt-history.jsonl records containing 0.6.1 optional fields or consumer statuses (hosted_gate, offered_names, model_skill_views, skill_refetched, load_deferred, already_loaded).

Remove it once you no longer need its local data:

hermes plugins remove hermes-switchyard

Before removing, save any receipts you want from the profile's plugin-data/hermes-switchyard folder. Start a fresh session afterwards. Don't delete a shared profile or gateway just to remove this plugin.

What's in this release

Switchyard v0.6.2 fixes approval previews on current Hermes, failed-turn cost reporting, browser preflight for public pages, native terminal output compaction, and routing receipts. The changelog lists the fixes and compatibility changes.

Not included: Research Navigator (F1) and DOM Progress & Recovery (F2) remain excluded after failing their release evaluations (PR #132, PR #135). Don't install those PRs or copy their settings. Follow-up work is tracked in issue #139.

v0.6.2 benchmarks. In 35 live Jev 1.13 requests, explicit single-skill selection scored 12/12 (lexical baseline 7/12), multi-skill selection covered all 5 required sets with one extra skill, and model routing and typed assessment each passed 3/3 smoke cases. In a separate four-request automatic-routing benchmark for #224, all 72 synthetic skills reached the model. The router missed all three positive examples and correctly abstained on the no-fit control. Browser and desktop performance were last measured for v0.5.0. Measured revisions, findings and historical comparisons

Learn more

About

Hermes Agent plugin that uses Jev to pick skills, lower reasoning effort on routine turns, and drive bounded computer use — with local receipts.

Topics

Resources

Contributing

Security policy

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages