agent-dispatch
Skill16 starsChanged 10 days agoMITView on GitHub
Configure, operate, troubleshoot, and choose between Hermes Herald's cross-profile dispatch, persistent chat, model-selectable subagents, bare LLM calls, run management, and approval relay tools.
- Reads credentials
9 other projects use a version of this.
Adopted by
Most recently taken up by
- 0xUrsanomics/utopia-ostheir own version, first seen Nov 1, 2026
- Adonis0123/adonis-skillstheir own version, first seen Nov 1, 2026
- fanglinwei/agent-dispatchtheir own version, first seen Oct 25, 2026
- GGGODLIN/gggodlin-cc-harnesstheir own version, first seen Oct 20, 2026
- NinjaSln-labs/agent-skillstheir own version, first seen Oct 13, 2026
- Octonove/agent-dispatchtheir own version, first seen Oct 9, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- GGGODLIN/gggodlin-cc-harness★ 73same name
- Adonis0123/adonis-skills★ 5same name
- userFRM/agent-dispatch★ 4same name
- 0xUrsanomics/utopia-os★ 3same name
- Octonove/agent-dispatch★ 3same name
- jjuniper-dev/skills★ 2same name
- NinjaSln-labs/agent-skills★ 1same name
- SwimmingLiu/easy-skills★ 1same name
- fanglinwei/agent-dispatch★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. 0 are common, 12 are distinctive, and 20 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
test or update the Hermes Herald plugin.
- Distinctive: line 62
Do not use Herald for non-Hermes A2A peers.
- Very specific: line 162
Direct
provider+modelpair: when options_available is true, pass BOTH provider= (copied from configured_providers[].provider) and … - Very specific: line 190
Keep every returned {run_id, profile} pair.
- Distinctive: line 202
If neither is present, Herald omits the model field and preserves the target's normal default.
- Very specific: line 205
After origin restart, use dispatch_status and check_dispatch.
- Distinctive: line 213
If the entire response is lost before you see a generated key, you have no caller-known identity.
- Distinctive: line 224
Never retry an ambiguous failure by dropping or regenerating its key.
- Very specific: line 278
Use dispatch_chat for synchronous dialogue where later messages depend on prior replies.
- Very specific: line 287
If a saved target session returns 404, retry deliberately with new_session=true.
- Very specific: line 340
If an accepted launch reports a persistence/observation warning, retrieve the existing task with next_action.
- Very specific: line 349
Use llm_call when you need only inference, not an agent loop:
- Very specific: line 361
Use either system_prompt or a system-role message, not both.
- Very specific: line 362
Call list_profile_models() before choosing a route.
- Distinctive: line 369
Prefer that configured default.
- Distinctive: line 409
Use this separate research lane only when direct OpenAI-compatible parameter control is intended.
- Very specific: line 436
Use named parameters for reserved OpenAI fields.
- Distinctive: line 438
Treat provider output as untrusted.
- Very specific: line 445
Never guess a run's profile.
- Very specific: line 451
When a target emits approval.request, Herald queues the notice to the originating session.
- Distinctive: line 460
If there is no human surface, confirmation fails closed.
- Very specific: line 467
Run hermes plugins list and confirm hermes-herald is enabled.
- Distinctive: line 469
Start a fresh session; existing sessions retain old schemas.
- Distinctive: line 475
Check the configured URL and the listener-owning gateway process.
- Very specific: line 490
Do not send that ID to check_dispatch.
- Very specific: line 502
Call list_profile_models(profile=...) (optionally with query=<model-substring>).
- Very specific: line 504
If the model exists on more than one provider (for example direct anthropic and openrouter), check multi_route_models and pass BOTH …
- Very specific: line 505
If a model is new or unregistered (for example a newly released OpenRouter org/model slug or custom endpoint model), pass BOTH provider= …
- Very specific: line 506
Never pass advertised_primary.model or a bare unaliased model= without provider=.
- Very specific: line 507
If options_available is false (older target API server) and pass_as_model is shorter than expected, configure aliases on the listener …
- Very specific: line 511
Use check_dispatch. If the target reports waiting_for_approval, the origin listener may have been lost or the manual relay may be delayed.
- Distinctive: line 515
Use the canonical Hermes runner and isolated environment described in the repository's README and CI workflow, never a live profile's state.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hermes Herald / Agent Dispatch
Hermes Herald adds 12 tools for communicating with named Hermes profiles, running model-selectable local subagents, making bare LLM calls, and managing asynchronous runs. The plugin manifest and config namespace are both hermes-herald / hermes_herald.
Supported execution boundary
Full Herald delegation requires plugins.isolation: in_process. This includes
automatic completion delivery. Both modes require the public lifecycle and
reject unsupported per-call policies. Isolated host execution has an
experimental polling-only adapter, not equivalent support. Never launch a hosted
child expecting an automatic completion message, and never drop requested
restrictions just to make a launch succeed.
Plugin-process isolation is distinct from shared-gateway/multi-profile scoping. Herald supports separate profile routes, credentials, state and ledgers inside the shared gateway; that does not provide an OS/filesystem sandbox. Do not change a user's isolation setting or restart their gateway without authorization.
What changed in 1.3.0
- Public lifecycle & Hermes
v0.23.3+migration: retains YAML compatibility and durable spawning-session ownership while completing the publicctx.subagent_lifecyclemigration and removing privatetools.delegate_toolimports. Core now owns provider-scoped credential resolution and rotation; see the explicit policy changes underdelegate_subagent. - Multimodal image support:
llm_callandllm_directaccept local paths,data:image/...;base64,...URLs, and publichttps://URLs via top-levelimages=[...]or OpenAI-stylemessages[].contentpart arrays, with magic-byte validation (PNG, JPEG, GIF, WebP), count/size limits, path/SSRF guards, and base64 error redaction. - Multi-route catalog discovery and unregistered model pass-through:
list_profile_modelssurfacesconfigured_providers,available_routes, andmulti_route_models(via/api/model/optionson remote targets when available), anddispatch_agent,dispatch_chat, andllm_callallow explicitprovider=+model=pairs for authenticated providers including unregistered/new/custom and OpenRouterorg/modelslugs.
When to Use
Load this skill when you need to:
- configure or verify a Herald target profile;
- choose between
dispatch_agent,dispatch_chat,delegate_subagent, coredelegate_task, andllm_call; - fan independent work out to named Hermes profiles;
- continue a persistent conversation with another profile;
- select a different model for one in-process subagent;
- recover, poll, collect, or cancel dispatched runs;
- resolve or troubleshoot a protected-command approval relay;
- test or update the Hermes Herald plugin.
Do not use Herald for non-Hermes A2A peers. Use Hermes's A2A tooling for Agent Card peers. Do not use an in-process subagent for work that must survive the parent process exiting.
Tool Selection
| Need | Tool | Important boundary |
| Independent task on a named profile | dispatch_agent | Async; callback auto-delivers, none is truly detached |
| Persistent multi-turn profile conversation | dispatch_chat | Synchronous; one saved target session per configured profile name |
| Different-model local worker | delegate_subagent | Supported in in_process with auto-delivery; experimental host subset is poll-only; neither durable |
| Same-model local worker | core delegate_task | Simpler when per-call model selection is unnecessary |
| Bare classification, translation, scoring, extraction | llm_call | Synchronous inference; no tools or agent loop |
| Direct endpoint research | llm_direct | Separate opt-in; configured endpoint only; bypasses host routing |
| Poll one dispatched run | check_dispatch | Use the exact {run_id, profile} pair |
| Poll several runs once | collect_dispatches | Accepts a list of {run_id, profile} objects |
| Audit calls or inspect topology | dispatch_status | Queries SQLite; full task text is opt-in |
| Cancel a target run | cancel_dispatch | Cooperative; also retires the local listener after target stop succeeds |
| Check target reachability | ping_profile | Liveness, not model-route authorization |
| Discover safe model routes | list_profile_models | Omit profile for local llm_call/delegate_subagent providers & routes; name a profile for remote aliases, authenticated providers, and multi-route disambiguation |
| Deny a relayed protected command | approve_dispatch | Deny-only in v1; requires the fresh Herald approval ID and human confirmation |
Installation and Configuration
Install on profiles that originate Herald calls:
hermes plugins install bennybuoy/hermes-herald --enableA target-only profile needs a configured Hermes API server, not Herald itself. Restart the origin process after installation or updates, then begin a fresh session so the new schemas load.
For the supported local delegation workflow, merge this into the origin's configuration, retaining existing plugin enablement and trust settings:
plugins:
isolation: in_processThis is a profile-wide plugin trust decision, not a per-tool switch. Use only trusted plugins in-process. An isolation-required deployment must retain its policy and accept the experimental subset or avoid local Herald delegation.
Configure targets in the origin profile's config.yaml:
hermes_herald:
# Optional stable audit identity for custom/Docker profile homes:
# origin_name: reviewer-orchestrator
allow_self: false
profiles:
reviewer:
url: http://127.0.0.1:8642/p/reviewer
api_key: ${REVIEWER_API_KEY}
capabilities: [dispatch, chat]
# Optional exact model_routes alias, or provider + model pair, for both dispatch tools:
# provider: openrouter
# model: reviewer-fast
# Optional; defaults to <active HERMES_HOME>/hermes-herald-runs.json
# state_file: /custom/private/path/hermes-herald-runs.json
# Optional durable audit DB; share only across same-filesystem origins:
# ledger_file: /custom/private/path/hermes-herald-network.db
# Optional dispatch_chat activity-stall default, in seconds:
chat_timeout: 600Store bearer tokens in the origin profile's .env, for example with hermes config set REVIEWER_API_KEY <value>. Do not commit or print them. The API-server key is a transport credential; model-provider credentials remain on the target profile.
For a shared gateway, use the default listener's actual port plus
/p/<profile> (without /v1); Herald preserves the prefix when appending API
paths. Store the named target's inbound key as its API_SERVER_KEY, and use
that same key on the origin route. The default listener's key does not
authenticate a named prefix. Do not enable a second API listener or start a
second gateway for a multiplexed secondary profile. A standalone/legacy
target instead uses its own unprefixed base URL, such as http://127.0.0.1:8651.
Dispatchable models are not configured in that origin block. They are
aliases on the API-listener owner. At tested shared-gateway revision
1f2b9e08644c6de4a5b5c50d0e4676a19c5577c5, this means the default gateway's
configuration, not a separate alias table in each secondary profile. For a
standalone target, use that target's configuration:
# Listener-owning profile's config.yaml
platforms:
api_server:
extra:
model_routes:
reviewer-fast:
provider: ollama-cloud
model: glm-5.2
reviewer-reasoning:
provider: openai-codex
model: gpt-5.6-sollist_profile_models(profile="reviewer") authenticates to both /v1/models (URL-selected profile identity plus the listener's model_routes aliases) and, when supported by the target, /api/model/options?include_unconfigured=false (the target profile's own authenticated providers, advertised models, and multi_route_models where the same model exists on more than one provider, such as direct vs OpenRouter).
On remote targets you can override the default in two ways:
- Exact
model_routesalias: copy one string frompass_as_modelintomodel=(and copy itsproviderintoprovider=when pinned). Works even on older servers without/api/model/options. - Direct
provider+modelpair: whenoptions_availableis true, pass BOTHprovider=(copied fromconfigured_providers[].provider) andmodel=(either anavailable_routesentry or an unregistered/new/custom model ID such as an OpenRouterorg/modelor:nitroslug served by that authenticated provider).
Bare unaliased model= without provider= fails closed with disambiguation hints so /v1/chat/completions never silently falls back to default and multi-route models never hit the wrong subscription. Both dispatch tools accept reasoning_effort for the target request; the target's policy can ignore, clamp or drop it. See the shared-gateway guide.
For remote targets, use a trusted private network or authenticated TLS. Herald does not add TLS.
Cross-Profile Workflow
1. Verify the target
ping_profile(profile="reviewer")
list_profile_models(profile="reviewer")ping_profile establishes reachability. list_profile_models authenticates to the target and returns both exact model_routes aliases (pass_as_model) and, when available, the target's authenticated providers (configured_providers, available_routes, multi_route_models) for direct provider= + model= dispatch.
2. Write a self-contained brief
A dispatch_agent run does not inherit the origin conversation. Include the goal, paths/URLs/errors, constraints, output format, and verification requirements in message.
3. Dispatch independent work together
dispatch_agent(profile="reviewer", message="Review ...")
dispatch_agent(profile="researcher", message="Research ...")Keep every returned {run_id, profile} pair. Do not busy-poll immediately; continue useful work and let completion arrive asynchronously.
4. Verify consequential claims
A target's final summary is a self-report. Read back files, fetch URLs, inspect Git state, or check external IDs before reporting side effects as successful.
dispatch_agent
dispatch_agent POSTs a new run to a configured target and returns a run_id immediately. The target run has its own session, model, skills, memory, and tools.
- An explicit
modelmust be either an exact targetmodel_routesalias advertised by authenticatedGET /v1/models, OR paired with an explicit authenticatedprovider=verified viaGET /api/model/options(including unregistered/new/custom or OpenRouterorg/modelslugs). Bare unaliased models fail closed with disambiguation hints. - Profile-level
model(and optionalprovider) is the default for bothdispatch_agentanddispatch_chat. - If neither is present, Herald omits the model field and preserves the target's normal default.
- Auto-delivery requires a commissioning session that supports detached results and a live origin process.
delivery="none"requires neither: no listener or callback is created. Preserve incomingtrace_id/max_hops, setparent_edge_id, and pass incominghop_countasparent_hopwhen forwarding detached graph work.- After origin restart, use
dispatch_statusandcheck_dispatch; Herald does not recreate old listeners.
Deliberate retry contract (remote runs only)
- For a retryable task, optionally supply
idempotency_keybefore the first call. It must be 1–255 visible ASCII characters, no spaces; never place secrets in it. Otherwise Herald generates a key and returns it on success or ambiguous failure withretry_instruction. Keep that key and every original argument. If the entire response is lost before you see a generated key, you have no caller-known identity; a pre-supplied key avoids that gap. - To deliberately retry the same work, send the exact key and all original
arguments again from the owning origin/durable session. Do not change the
brief, instructions, delivery, model/provider, reasoning, trace or hop fields.
Herald persists identity and the exact POST body (including generated edge/trace
IDs) before transport, and surfaces the original
run_id./new, a changed URL/configured model, or a rotated bearer key fails closed. Sessionless detached callers are origin-scoped. The ledger stores a one-way credential fingerprint, not the bearer token itself. - Omitting the key means NEW intentional work, even with identical messages. Never retry an ambiguous failure by dropping or regenerating its key.
- Concurrent same-key calls get
idempotency_in_progress: wait, then reuse the same key unchanged. An abandoned attempt's lease lasts up to 120 seconds. Already recorded acceptance returns the handle without another POST, ledger edge, listener, or callback. Retry does not transfer ownership or restore an old process's listener; poll withcheck_dispatchafter restart. - Ambiguous replay requires the exact target's authenticated
/v1/capabilitiesto advertisefeatures.runs_idempotencywithsupported=true,durable=true, and validretention_secondsat original submission and retry. The deadline is original reservation time + advertised retention − 60 seconds; retries never extend it. The inspected API advertises 24 hours, not a universal promise. Older/non-durable targets still allow initial submission with a warning, but unsafe or expired replay returnsidempotency_unsafe_replaywithout a POST. - A target HTTP 409 is
idempotency_server_conflict; local changed-request, routing, or ownership conflicts areidempotency_conflict. Reconcile known work with the target/operator. Do not change the key to bypass a conflict. - This is not unconditional exactly-once execution: the target must honor its advertised persistence/namespace/retention. Database replacement/deletion can break that guarantee. Keep Herald's ledger, which retains identity tombstones and original bodies without automatic pruning; deleting them makes used keys appear new. A crash during local bookkeeping can leave audit/cache/monitoring incomplete; Herald returns the known handle with a warning, not duplicate delivery. Task text remains persisted private data; do not include secrets.
# First submission, with identity retained by the caller:
dispatch_agent(profile="reviewer", message="Review ...", delivery="none",
idempotency_key="review-release-01")
# Deliberate retry ONLY: exactly the same key and original arguments:
dispatch_agent(profile="reviewer", message="Review ...", delivery="none",
idempotency_key="review-release-01")This does not add retry identity to dispatch_chat, delegate_subagent,
approval/cancellation, or inference tools.
Directed Routes and Audit Ledger
- Routes are caller-side outbound policy. A target in A's config grants calls through Herald from A→B only; B→A requires a separate outbound entry in B's config.
- Standard profile names are inferred from
HERMES_HOME; setorigin_namefor custom/Docker homes so ledger attribution is not merelycustom. capabilities: [dispatch],[chat], or[dispatch, chat]gates each outbound route. Missing or malformed capabilities grant nothing.- There is no wildcard "all profiles" route.
- Self-routing needs both a matching profile entry and
allow_self: true; otherwise it fails before network contact. - Async graphs have no mandatory depth cap. Optional
max_hopsis a per-trace loop brake for detached or callback chains; Herald incrementsparent_hopand refuses an over-budget edge before network contact. Ping-pong consumes one hop per edge. Treat this model-carried context as an operational guardrail, not a cryptographic security boundary. - These are enforced Herald caller-side controls, not authenticated target-side caller identity. The target bearer key is the actual API authority; a key holder can bypass Herald through direct HTTP or terminal tools.
- SQLite stores full task text, instructions, origin/target, delivery mode, trace/hop lineage, model provenance, status, and timestamps. Existing bounded JSON history is imported once; migrated rows are labelled
legacy_state_cachebecause only previews survived. Configured transport keys are excluded, but secrets placed inside task text are not detectable and will be stored. - A recovery-state write failure after a remote side effect is non-fatal: the handle and ledger edge are retained and the tool response carries a warning.
dispatch_status(include_messages=false, include_topology=true)is the safe default. Setinclude_messages=trueonly when full briefs are needed.- The profile-local JSON state file remains bounded recovery state. A shared
ledger_fileis supported on one filesystem; a sharedstate_fileis not.
SSE recovery uses five total connection attempts: the initial connection and four reconnects with 5/10/20/40-second delays. Before reconnecting, Herald checks authoritative run status. After exhausted connection attempts it polls every two seconds, resetting the stall timer when target updated_at advances. Silent runs notify after 600 seconds; approval waits use a 30-minute window. Five consecutive polling transport errors end local monitoring and require manual reconciliation.
dispatch_chat
Use dispatch_chat for synchronous dialogue where later messages depend on prior replies.
- Calls reuse one target session per configured profile name.
new_session=truecreates and stores a fresh target session.- The target streams assistant deltas and tool lifecycle events; activity resets the stall timer and is surfaced to the parent UI when it exposes a progress callback.
stall_timeout_secondsoverrideshermes_herald.chat_timeout. It is an inactivity threshold, not a flat wall-clock cap; productive calls may run longer.instructionsis sent as a system message for the current request; resend it when later turns still require it.- An explicit or profile-level
modelmust be either an exact targetmodel_routesalias verified through authenticated/v1/models, or paired with an explicit authenticatedprovider=verified via/api/model/options(including unregistered/OpenRouter models). Omission preserves the target default. - Persistent chat returns one final reply and blocks the current origin agent turn; it does not create a separately pollable Herald run.
- If a saved target session returns 404, retry deliberately with
new_session=true. - On
chat_timeout, keep the returnedprofileandsession_id: the remote turn may still be running. Inspect that target session before sending more work; never automatically resend the chat. Socket waits respect the configured inactivity window without a separate 60-second cap.
Remote callback and approval notices use API calls: ? when no call count is
available. Run token usage is preserved separately; do not infer call counts
from tokens.
delegate_subagent
Both modes use public ctx.subagent_lifecycle, never private child construction.
Requires the provider-aware lifecycle contract introduced by ad37bfb17fb,
tested at public main c7a3fe245d6bf610f73ff555d57e4ed632f8ded8 (Hermes v0.23.3+). Missing
facade/contract fails clearly, with no legacy fallback. Other tools can still
load on older hosts. No numbered minimum host release is implied by this pin.
delegate_subagent(goal="Review the diff. Do not edit.", context="Repo and constraints ...",
provider="<configured-provider>", model="<exact-model>")
delegate_subagent(action="result", task_id="<returned task_id>")
delegate_subagent(action="status", task_id="<returned task_id>")
delegate_subagent(action="steer", task_id="<returned task_id>", text="Updated brief ...")
delegate_subagent(action="cancel", task_id="<returned task_id>", reason="Stop ...")in_processreturnsdelivery="callback": the final summary/error is auto-delivered to the original durable spawning session./newdoes not transfer ownership. Keep the commissioning session/process alive. A session without detached delivery support refuses before launch.hostreturnsdelivery="poll": follownext_actionin the owning active session; no automatic notification or post-return background RPC. It is not full host support for remote callbacks or approvals.- Status/result/cancel/steer all require the owning active parent. Keep the exact
opaque
task_id; do not usecheck_dispatchfor it.ready=falsemeans not finished. Cancel is cooperative, not confirmed termination. Steering reports whether it was accepted. Results are stable on repeated retrieval. - Pass exact provider/model values, not
/modelaliases. Omitted provider uses delegation config before parent. Core resolves and manages credentials within that provider, including normal pool rotation/refresh. Herald no longer freezes arbitrary raw keys from model-switch results. Use a configured named provider for a distinct account, including when endpoints share a URL. - Compatibility change from 1.2.0: both modes reject
toolsets(including[]),inherit_toolsets=false,inherit_soul,inherit_context,reasoning_effort,stall_timeout_seconds,interrupt_after_seconds, other timeouts, role, working-directory and per-tool blocking. Explicit false/null values are also rejected. Core cannot preserve these contracts through its current public fields. Only default safe tool inheritance (inherit_toolsets=true) is supported. Use explicitcontext; core delegation reasoning/timeout policy applies instead of Herald's former 600-second activity timer. Never retry a restricted task by removing its policy without user authorization. - IDs are memory-only and capped at 128 retained tasks; core retains terminal
results for one hour. Capacity refusal starts no child and evicts nothing.
Retrieve/cancel before restart/unload. In-process provenance is persisted but
is not restart recovery. Use
dispatch_agentfor durable target execution. - If an accepted launch reports a persistence/observation warning, retrieve the
existing task with
next_action; do not blindly launch a duplicate. - Callback routing uses Hermes's published
gateway.session_context.get_session_envAPI; completion delivery, stateless-channel checks, approval elicitation, and explicit-only local model inventory remain explicit non-override imports until corresponding upstream public APIs are added.
llm_call
Use llm_call when you need only inference, not an agent loop:
messagesmust contain at least one{role, content}item. Plain-stringcontentworks for every role;role="user"messages also accept OpenAI-style content arrays ({type: "text", text}and{type: "image_url", image_url: {url, detail?}}).- Optional top-level
images=[...]attaches local file paths, base64data:image/...URLs, or publichttps://URLs to the lastusermessage without changingmessages[].contentfrom a string. Supported inline/local formats are PNG, JPEG, GIF, and WebP (verified via magic bytes; max 10 images, 10 MiB raw each, 20 MiB raw total). Local paths block..traversal, credential files, and non-regular files; remote URLs blockhttp://, embedded credentials, and private/loopback/metadata targets. - Use either
system_promptor a system-role message, not both. - Call
list_profile_models()before choosing a route. Its local mode returns the calling profile'sconfigured_default,configured_providers(noting partial catalogs like OpenRouter and custom endpoints),available_routes,multi_route_models(models reachable via more than one provider), and any enabledllm_direct_endpoints. Virtual MoA routes, ambient or auto-discovered credentials, and fallback-only routes are not routing authority. - With no routing arguments, Hermes uses the host's active configured route.
- Prefer that configured default. Do not choose another provider merely because it advertises the same model; override only when the task or user explicitly calls for that endpoint.
modelandproviderare optional only as a pair: supply both using a configured provider fromconfigured_providers(either anavailable_routesmodel or an unregistered/new/custom model ID such as an OpenRouterorg/modelslug served by that provider), or omit both.- Herald verifies that the provider is configured on this profile and passes the
pair unchanged to Hermes's public
ctx.llm.complete()facade (flaggingunregistered_model: truewhen the model is outside the static catalog). Hermes owns credentials, transport, provider resolution, timeout behavior, and fallback policy. - Explicit selection also requires the host's
plugins.entries.hermes-herald.llmtrust policy to permit provider and model overrides. Missing trust configuration fails closed. max_tokensis a best-effort provider-dependent hint, not a universal cap.json_mode=trueadds a JSON-only instruction and rejects output that is not a valid JSON object.- A route failure is returned noisily. Herald itself does not retry the call; host behavior remains governed by Hermes.
- Results report the requested pair separately from the provider/model returned by the host facade.
For example, merge a least-privilege allowlist into the origin configuration:
plugins:
entries:
hermes-herald:
llm:
allow_provider_override: true
allowed_providers: [openai-codex]
allow_model_override: true
allowed_models: [gpt-5.6-sol]These are illustrative models, not discovery authority. Select a pair returned by
the calling profile's list_profile_models() and allow only that intended route.
llm_direct
Use this separate research lane only when direct OpenAI-compatible parameter control is intended. It bypasses Hermes's host LLM routing and is disabled until explicitly enabled in the origin configuration:
hermes_herald:
llm_direct:
enabled: true
default_endpoint: lab
endpoints:
lab:
base_url: https://llm.example.com/v1
api_key: ${LAB_API_KEY}
default_model: lab-model
allowed_models: [lab-model]llm_direct(messages=[{"role": "user", "content": "Reply with OK"}],
endpoint="lab", temperature=0, seed=7, extra_body={"top_k": 40})- Endpoint URLs and credentials belong in configuration, never tool arguments.
API keys must be environment references such as
${LAB_API_KEY}. - Supports the same multimodal
messages[].contentparts and top-levelimagesparameter (and image format/size/path/SSRF guards) asllm_call. - Choose a configured endpoint and a model allowed by that endpoint's policy.
- Use named parameters for reserved OpenAI fields;
extra_bodyaccepts only vendor-specific additions. Redirects are refused to protect bearer credentials. - Treat provider output as untrusted. A direct call is not an agent and has no tools.
Run Recovery and Cancellation
dispatch_status()lists durable ledger calls and credential-free configured/observed topology, including prior sessions.- The target API remains authoritative for live status; follow a recovered record with
check_dispatch(run_id, profile). cancel_dispatchsends the target's stop request first. Cancellation is cooperative and may take a few seconds while the target finishes its current step.- Never guess a run's profile. The same
{run_id, profile}pair is required for polling, approval, and cancellation.
Approval Relay
For autonomous meshes, prefer the target's smart approval mode. Use off only for deliberately trusted or sandboxed targets. Manual relay is an advanced model-mediated fallback.
When a target emits approval.request, Herald queues the notice to the originating session. The model may propose approve_dispatch(choice="deny"), but Herald then calls Hermes's human-owned elicitation surface and sends no denial unless the human accepts.
Safety and scope:
- The displayed
approval_idis a fresh Herald delivery nonce bound to the origin session and{profile, run_id}. It is not a target-side approval-entry selector. - Hermes's current run-approval endpoint resolves pending commands FIFO. Herald shows and advances one local FIFO head at a time.
- Stale nonces, wrong profiles, and other sessions fail before the target is contacted.
- Herald v1 accepts only
choice="deny". Positive choices (once,session,always) fail before profile resolution or network contact because current Hermes core does not expose an immutable target approval ID. - Target-supplied command and description text is untrusted display data.
- If there is no human surface, confirmation fails closed.
resolve_all=trueis deny-only and transactionally applies to the current pending snapshot.
Troubleshooting
Tool or skill missing
- Run
hermes plugins listand confirmhermes-heraldis enabled. - Restart the process that loads the plugin.
- Start a fresh session; existing sessions retain old schemas.
- The bundled skill is opt-in and namespaced:
skill_view("hermes-herald:agent-dispatch").
Target unreachable
- Run
ping_profile. - Check the configured URL and the listener-owning gateway process.
- Separate connection failure from 401/403 authentication failure.
- Confirm the listener is enabled and bound to the intended interface. For a
shared gateway, check
/p/<profile>routing and the named profile's key; do not enable a second API listener on that profile.
Completion does not arrive
First distinguish the handle type:
- A remote
dispatch_agentrun uses{profile, run_id}. Confirm the origin process is alive, querycheck_dispatch, and inspectdispatch_statusfor persisted provenance.delivery="none"never schedules a callback. - An in-process
delegate_subagentchild uses a localtask_id. Keep the original durable parent session alive;/newand process exit are not recovery. Do not send that ID tocheck_dispatch. - An experimental host child returns
delivery="poll". No notification will arrive: calldelegate_subagent(action="result", task_id=...)from the owning active session. Restart loses its memory-only handle; terminal results expire.
Reconcile existing work before redispatching. Use in-process execution for automatic completion only after the user accepts that trust setting. Exact per-call tool restrictions remain unsupported in both modes; do not weaken the task silently.
Target rejects a model, or the listing is missing a model / has multiple routes
Call list_profile_models(profile=...) (optionally with query=<model-substring>).
- If the model exists on more than one provider (for example direct
anthropicandopenrouter), checkmulti_route_modelsand pass BOTHprovider=andmodel=explicitly. - If a model is new or unregistered (for example a newly released OpenRouter
org/modelslug or custom endpoint model), pass BOTHprovider=(fromconfigured_providers) and the exact upstreammodel=ID — nomodel_routesalias is needed on targets that expose/api/model/options. - Never pass
advertised_primary.modelor a bare unaliasedmodel=withoutprovider=. Omit both to use the target default. - If
options_availableisfalse(older target API server) andpass_as_modelis shorter than expected, configure aliases on the listener owner'splatforms.api_server.extra.model_routes, restart that gateway when safe, and list again. Originhermes_herald.profilesdoes not define the target's catalog.
Approval notice does not arrive
Use check_dispatch. If the target reports waiting_for_approval, the origin listener may have been lost or the manual relay may be delayed. Do not approve an unseen command. Deny or cancel when safe recovery is unavailable.
Verification
Use the canonical Hermes runner and isolated environment described in the
repository's README and CI workflow, never a live profile's state. CI pins
legacy 9fc80ac70f6b97e36556c33bc4895b75558d4136 (Python 3.11), shared-gateway
1f2b9e08644c6de4a5b5c50d0e4676a19c5577c5 (Python 3.14), and experimental
public-lifecycle c7a3fe245d6bf610f73ff555d57e4ed632f8ded8 (Python 3.14).
The manifest's general Hermes floor is not optional-host certification.
With the public-lifecycle checkout at hermes-agent/ and its isolated environment
built as in CI, run the following from the plugin repository. Select every
file on older pins too: lifecycle integration modules skip when their public
contract is missing, while refusal tests still run. Do not present those skips
as working delegation or host-mode support.
scripts/ci-python scripts/check_release_contract.py
HERMES_PYTHON="$PWD/scripts/ci-python" \
bash hermes-agent/scripts/run_tests.sh "$PWD/tests" -j 2 --file-retries 0 \
-p no:cacheprovider -o addopts= --confcutdir="$PWD/tests" --rootdir="$PWD/tests" -qAlso verify:
plugin.yamladvertises the same 12 tools registered in__init__.py;- the plugin registers the bundled
agent-dispatchskill; - the manifest, skill frontmatter, README badge and any version-bearing release artwork agree on the version;
- the working tree is understood and
git diff --checkpasses; - live verification, if separately authorized, uses a fresh process/session; do not restart a running gateway merely to run these synthetic tests.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

