Files
hermes-agent/plugin-catalog/model-router.yaml
2026-11-24 03:29:39 -08:00

51 lines
13 KiB
YAML

name: model-router
title: "Model Router"
repo: https://github.com/metamindedu/hermes-model-router
sha: 746715059a3f6d0709d1edb9ecc37fbb6905143b
description: "Profile model settings and native delegate_task routing for Hermes, with a Korean-first Desktop settings page (Settings → Plugins → 모델 및 라우팅) and a composer execution status line. A delegated task runs on the model of its task slot (design, complex code, simple code, simple verification, complex verification, computer use), each slot with optional spare models, or as an explicitly allowlisted local profile using that profile's own model, credentials and tools; with model-router-auto the agent chooses one of these routes per task. The status line shows each subagent's requested slot, the model/provider its own API calls reported (including observed spare-model switches), elapsed time, tool count and token totals; since v0.13.2 a completed profile delegation also shows the model/provider from the origin's stored delegation route report (read-only scalar metadata), and a refused, cancelled or timed-out request is settled instead of lingering as running. Its roster is bounded in-memory metadata (ids, counters, model/provider ids; no prompts, results or secrets); since v0.13.1 it survives an in-process plugin reload, but not a process restart. Separately opt-in Gateway-owned profile_task jobs (OFF with no targets until the host operator saves a grant with the hermes CLI) run work as another local profile through that profile's already-running Gateway; an explicit prepare/start(return_id) flow can return the result locator to the same surviving parent session (Windows, local NTFS/ASCII paths, session lifetime only), otherwise results are collected explicitly. coding_route only reads settings and inspects or joins historical jobs; new process starts are retired. No telemetry, self-updater, credential store, core monkeypatch or approval bypass. Disclosure — after you trust and enable the plugin, routing guidance defaults ON in installed profiles that have no saved choice; saved OFF and explicit skill opt-outs stay OFF. Installation does not select a delegation backend, change models, or grant profile, cost or full-profile-job access. Settings are written only by an explicit, previewed save to the profiles you select, through Hermes's config CLI with compare-and-set and readback: main, compression and title models and reasoning; conversation spare models (fallback_providers, saved with the model section since v0.12.1); compression and title-generation spare models (auxiliary.compression.fallback_chain and auxiliary.title_generation.fallback_chain, provider and model entries only, at most 5, since v0.13.0); the delegation method, per-slot spare policies and the profile allowlist (delegation.backend, delegation.backends.*; the allowlist is saved from its own 전문 프로필 위임 section); and skills.disabled when you re-enable routing (the whole-page save's routing pass can also write it for a routing-off profile that is not a model target). Config backups go to plugin-data/model-router/backups. Slot models and routing roles are kept in the plugin store plugin-data/model-router/settings.json. Since v0.13.0 the page no longer writes delegation.model, delegation.provider or delegation.reasoning_effort (change those in Hermes's own settings). Since v0.14.0 the router reads the conversation, delegation, compression and title models from each profile's current Hermes settings at read time (no background sync, no write), so an edit made in Hermes settings or the CLI is followed instead of reported as drift; a model save writes only the roles you edited. Since v0.15.0 every section save sends only the values you changed and each target keeps every value you did not change: edited task slots, edited per-slot spare models, an edited delegation method, changed time-limit fields and allow-list additions/removals/descriptions are merged into each selected profile's own settings, still with compare-and-set and readback. Picking target profiles no longer copies the loaded profile's whole settings; copying them is an explicit per-section 현재 설정 전체 복사 checkbox that starts unticked. Large saves are staged as temporary pieces under plugin-data/model-router/staged, deleted after use and expired after 10 minutes. Spare models and Fast inheritance (the parent session's Fast tier on first-party OpenAI/Codex routes) can raise API or subscription cost; saving spare models is the explicit cost consent. Allowlisting a profile is an explicit grant to use its model, credentials, tools and SOUL. The optional AI로 역할 제안 action, only after you press Generate, sends the target profile's profile.yaml description, its whole SOUL.md (up to 32 KiB, shown before sending, left out if it looks like it contains credentials) and enabled skill names to the current profile's saved main model. Native subagents and profile jobs use your configured providers, tools and approval policy and may consume quota; profile-job journals keep task prompts and results under plugin-data/model-router/jobs. Since v0.13.2
the status line also reads model and provider names of finished delegations from this profile's own Hermes state.db, read-only (no task, result or transcript text). Since v0.15.1, in a split view the primary pane's composer keeps its own chat's status line while a tile holds focus, but only under an owner the Desktop host itself reported for that exact chat while it was focused; without that the line stays hidden and nothing is read."
maintainer: metamindedu
tier: community
category: models
version: "0.15.1"
docs_url: https://github.com/metamindedu/hermes-model-router#readme
readme: true
platforms:
- windows
screenshots:
- https://raw.githubusercontent.com/metamindedu/hermes-model-router/746715059a3f6d0709d1edb9ecc37fbb6905143b/docs/fast-inheritance.png
known_issues:
- "Automatic in-plugin preparation of missing or newly created profiles remains unavailable for this release, also after this catalog pin is merged: its admission guard accepts only the older single-tool declaration. Install into each profile with the native CLI at the exact SHA and accept the dependency prompt (PyYAML>=6,<7, websockets>=15,<17); installation alone does not choose a delegation backend or grant full-profile access."
- "Partial saves (v0.15.0) need the same version in every profile and a refreshed settings page: the page sends changed-values-only requests only when the backend reports partial_save_schema 1, and otherwise sends the earlier whole-section requests (which copy every value of that section to the selected targets). Targets that cannot take a changed value are named and keep their own (another profile's slot still following the delegation model, a profile storing older two-role spare models, a target on a different delegation method, an allow-list that lacks a newly chosen default). Delegation, spare-model and allow-list saves still compare each target's whole delegation settings and time-limit saves each target's whole time-limit revision, so an unrelated change elsewhere in those blocks asks for a reload."
- "Since v0.14.0 models are read from Hermes itself: a role Hermes cannot resolve (an unverified provider, an endpoint or credential override, a managed value) is shown read-only and only the slots that follow it refuse dispatch; change such a role in Hermes's own settings."
- "Upgrade order for slot settings (v0.11.0+): update the plugin in every profile, restart every Hermes process (Desktop, gateways, open sessions), and only then save a slot model or per-slot spare model. A process still running older code cannot read the new shared-store format and refuses settings reads and purpose routing for the profiles sharing it until restarted; it fails closed and writes nothing."
- "Requires Hermes >=0.23.1 with native delegation backends, profile-scoped config and public Desktop plugin settings. Runtime and Desktop behaviour were tested on Windows; Linux/macOS are not claimed. The UI is Korean-first."
- "hermes plugins validate is ok but warns about private core imports (65 sites, e.g. hermes_cli.config_backend, agent.tool_dispatch_helpers, tools.interrupt); a Hermes release can break them. This inherited public-surface debt awaits a maintainer decision. The install scan reports caution exec_string at desktop/plugin.js:3489, which is the page's own staged save call to its CLI command through Hermes's cli.exec, not dynamic code execution."
- "The composer status line gates on the public Desktop SDK seam useComposerSession (feature-detected): it shows the strip under the composer whose stored session matches the focused chat, and since v0.15.1 also under the primary pane's composer for its own chat while a split tile holds focus. The primary case needs an owner proof: the owner the host's focusedSessionOwner reported while that exact chat was the focused primary, dropped on navigation, transport reset or owner retraction, and required to equal the live connection and profile. So the primary line appears only after the host has once reported that chat as focused (for example after selecting it in the sidebar); an unfocused tile shows nothing. On hosts without the hook it falls back to always showing the strip. It reads no host markup and attaches no document listeners; it never restyles or rewrites core UI."
- "Since v0.13.2 the execution roster reads scalar route metadata (backend/label/model/provider and the reported model) from this origin's own async_delegations ledger in state.db, read-only, to show the model a completed profile delegation ran on. Only already hook-bound rows (exact delegation unit + parent session + task index, plus the subagent id when both sides name one); no task, result, summary or transcript text, no whole JSON record, and no other profile's home is read. Fail-closed and bounded (primary-key lookup, size/entry caps, a Python-checked query deadline, first-error snapshot close), performed outside the shared hook lock, newest-first with a bounded negative cache; the database body is never written (a WAL read may create -shm/-wal sidecars). This is a disclosed bounded exception (see the repo SECURITY.md); the unadmitted private-schema research adapter remains excluded from the package."
- "The status roster lives in memory: after a Hermes restart the line stays hidden until the next subagent runs, and an upgrade from v0.13.0 starts with an empty roster once. Per-call token totals can undercount when a provider omits usage; model changes are observed request attempts, not confirmed replies."
- "Compression and title spare models: a spare on the same backend as the failed route is skipped, so a provider-wide failure (for example an exhausted quota) skips every spare from that provider; include another provider. Hermes may try the main model as a last resort. Chains with env expressions, administrator overlays, extra fields or provider-only entries are shown read-only, and env values are never returned. Saving Off writes [] for a stored chain and leaves an absent key absent."
- "The delegation model is no longer edited on the page (v0.13.0); use hermes config set delegation.model. Slots that follow the delegation model and profiles on Hermes's default delegation method are shown as their stored value and never switched silently. The recommended model presets were removed in v0.13.1."
- "Full-profile profile_task jobs are a separate OFF-by-default operator grant, not native profile delegation. They need a capable existing Gateway and a literal local working directory; no owner is started or recovered and no OS sandbox is supplied. Automatic parent return covers surviving-parent session lifetime only (persist_on_release:false); restart/reboot recovery and Linux/macOS return are not claimed. Unknown submissions are never replayed; revoking a grant blocks new admission but does not stop admitted work."
- "AI role proposals use the connected profile's saved main model and account, not the target's. Unknown/auto/custom or endpoint-overridden routes are refused; a user-installed external_process provider is admitted only with a process:// endpoint and a resolvable local executable. Credential-pool endpoints are not reflected in the disclosure, cancellation cannot recall an issued request, and credential filtering is a narrow pattern check: review the shown text."
- "Operator CLI authority for profile-job grants is existing local OS authority, not human attestation; approvals and clarifications stay in the native target conversation. A settings status read is limited to 64 pages, and a save body to 400,000 characters in 128 staged pieces."
- "Fast inheritance does not cover transports that bypass request middleware, including codex_app_server. When a task slot runs on Main's own model, delegation adds only a fresh context, not model diversity for review."
capabilities:
provides_tools:
- coding_route
- profile_task
provides_hooks:
- pre_api_request
- post_api_request
- api_request_error
- pre_tool_call
- post_tool_call
- subagent_start
- subagent_stop
- post_compaction
provides_middleware:
- tool_execution
- llm_request
requires_env: []
requires_hermes: ">=0.23.1"