The fork-tools section promised that a fork's own task id gives it a
terminal and process table apart from the session's. It does not: the
terminal environment and process_manage ownership resolve against the
session key the fork carries (tools/terminal_tool.py
_resolve_container_task_id, tools/process_registry_access.py
session_action_allowed). Enforcing isolation would mean re-keying both
registries for one caller, so the docs now say exactly what a granted
terminal / process_manage shares.
Also: the fork has exactly the operator-granted tools, nothing makes
them read-only (the example prompt no longer says "read-only");
approvals are denied before any prompt or guardian call; on_tool gets
a redacted copy; a quick command shadowing a dispatch plugin command
waits for the turn.
Live on e7a7e414 (classic `hermes chat`, /sidecheck ask typed while the turn's
terminal ran, then the turn called clarify): the turn's pump took the command's
SIDE_Q and the command's waiter took the turn's MAIN_Q, because both consumed
any `clarify` server request for the session from the one events queue. When
slash.exec returned, call_unbounded withdrew the panel its waiter held, which
was the turn's: MAIN_Q never showed and the tool returned outcome=cancelled.
Route by owner instead of first-come:
- slash.exec takes an opaque `ask_owner`; the gateway echoes it as `owner` on
every clarify its ctx.ask_choice sends (viewer_choices / _ask_viewers).
- GatewayConnection routes a server request whose `owner` it registered to that
owner's inbox at ingestion, so neither the turn pump nor an idle drain
(queue_admitted_turn, _drain_stale) ever sees it; untagged requests and
another viewer's go to the session queue as before.
- _answer_choices reads only its inbox, so the command-end withdraw only ever
closes the command's own question.
- A gateway older than ask_owner refuses the key (invalid_params) before it
runs anything: the command is re-sent without it, and its untagged ask is
taken between turns, as before (such a gateway runs no command mid-turn).
Contracts: SlashExecParams.ask_owner, ClarifyRequestParams.owner (regenerated).
A fork queued before its plugin was unloaded still held the operator's
fork_tools grant (config.yaml outlives the load), so its dispatch guard let
read_file/terminal through. The grant now ends with the plugin load that
asked for the fork: an unload or reload leaves the queued fork no tools.
The grant's tool-registry lookup also ran outside the owner profile scope,
so a call from a thread bound to another profile checked the names against
that profile's tools; it now resolves inside the plugin's own profile.
Docs: the side-thread example passes the chat's session_key to
inject_message, checks that the promotion was delivered, and registers the
command with busy_policy="dispatch".
A plugin's side-thread command (/btw --explore as a plugin) is only useful
while the main turn runs, but the classic CLI queued every plugin command in
_pending_input until the turn ended, and a messaging chat read it as a
follow-up (interrupt or queue). The TUI and Desktop already ran it at once.
register_command(busy_policy="dispatch") is the opt-in, mirroring the
CommandDef vocabulary; the default is unchanged.
- hermes_cli/plugins.py::plugin_command_runs_mid_turn is the one lookup.
- Messaging: the busy fast path (_hm_busy_slash_or_photo ->
_hm_busy_plugin_command) dispatches it under the slash access gate, and
should_bypass_active_session lets it through the base adapter's own busy
guard.
- Classic CLI: commands.catalog carries plugin_busy_commands (the CLI's
plugin commands run in the gateway), and a busy Enter dispatches the
command on its own thread so the clarify panel stays answerable.
Two review findings on the side-thread plugin surface:
- A `plugins.entries.<id>.fork_tools` entry naming an advertised MCP server
tool, or another plugin's tool, passed `pre_registry_route` and became
callable from the fork, even though the API only grants core tools. Grants
now go through `registry.is_builtin`.
- When the main turn's reply landed, its own side-question lease was issued
with `replace_older=True`, which purged a slash command's lease taken
earlier in that same turn. A command spending its token from a worker, or
after an await, then failed. Command leases are now marked as such, and a
turn lease keeps the ones from its own turn. A new turn still voids them
(`turn_moved_on`).
/btw --explore (#158593) and its Desktop side chat (#158643) belong in a
third-party plugin, but the plugin API could not host them: a fork lease came
only from post_llm_call, no core tool could ever be named for a plugin fork,
and a running fork reported nothing until it settled. Three generic extension
points close that, reusing the existing ctx.fork_session machinery (cache-parity
fork, dispatch whitelist, auto-denied approvals, next-turn cancellation):
- Slash-command handlers that name a `side_question_token` keyword get a lease
on the calling session's live agent (classic CLI, gateway-owned local
sessions and messaging, TUI sidecar). Same lease rules as the turn token; it
does not replace that token. Only a handler that names it pays for the
capture.
- `plugins.entries.<id>.fork_tools` lets the user grant ONE plugin's forks
named core tools (read_file, search_files, terminal, ...). Pre-registry
names (delegate_task, memory, connectors, Tool Search bridges) stay refused;
FORK_SAFE_CORE_TOOLS stays empty. Forks now bind the non-interactive secret
capture so a granted skill tool can never pop the turn's secret prompt.
- `ctx.fork_session(..., on_tool=cb)` hears each allowed tool call as it
starts (display-redacted args), for live progress via post_message / edit or
emit_to_session.
Desktop needs no SDK change: a plugin docks its side chat as a `panes`
contribution with placement right and sends its slash command for follow-ups.
Round-robin and least_used advance on each runtime resolution (a chat keeps its login until it is benched; a one-shot run can resolve more than once), not each turn, and every pick is now saved. A signed-out agent-CLI login is no longer pruned after a day.
round_robin saves the pool order past the login the runtime picked, so the
auxiliary client's fresh peek named the other login (random could too):
titles, compression and vision ran on a different account than the
conversation. The auxiliary external_process arm now takes the main
runtime's login while it is still in rotation, and the pool's next row once
it is benched; standalone probes keep the fresh peek.
external_process_pool_key loaded a fresh pool and peek()ed it, so the
runtime bypassed selection: credential_pool_strategies (round_robin,
random, least_used) were ignored, request counts never moved, and the
runtime carried a second pool that was not on the row it served.
The runtime now resolves through external_process_login(mode="select")
(choose_pool_key, the pick a direct API-key provider makes) and carries that
pool, already on the picked row. The auxiliary client and the public
external_process_pool_key stay read-only (peek). fill_first stays the
default, which keeps one account's prompt cache until it is benched. Docs
name the strategy behaviour and the aux fallback.
A named profile reads a provider's pool from the root auth.json when it has
no rows of its own. For an agent CLI (external_process) that handed the
root's Claude login to every profile without a pool: it beat the profile's
own CLAUDE_CODE_OAUTH_TOKEN / claude_config_dir and slipped past the
plugin's isolate_profile_logins refusal (live: a refused profile z answered
on the root's login A), and `hermes auth add` in the profile persisted the
borrowed root rows next to the new one, so the profile then spent the
root's logins first.
read_credential_pool() skips the root fallback for providers whose
registered auth_type is external_process (pool_is_per_profile); API-key
pools keep borrowing. Docs say so.
With every pooled login benched for its usage limit (or signed out),
external_process_pool_key() returned None and the runtime handed the CLI the
placeholder key, so it started on its own default login: another account,
or none. Live with Claude Code: the second turn after both logins hit their
limit ran on the default config dir and told the user to sign in again.
resolve_external_process_provider_credentials() now goes through
external_process_runtime_key(): None only for an empty pool; a fully
benched pool raises AuthError(model_rate_limited) with the soonest reset
(the same pool_cooldown_message the Anthropic resolver uses), and a pool of
signed-out logins raises a sign-in-again error. external_process_pool_key()
is unchanged for setup probes and /usage.
A model-provider plugin that runs an agent CLI (auth_type external_process,
e.g. the Claude Subscription DirectSDK plugin running Claude Code) keeps its
login outside Hermes, so a profile could hold only one. Pool rows for such a
provider half-worked: the main runtime came from the generic pool rung, which
dropped the launch command and args (background review reads rt["command"]
and raised KeyError; a generic ACP client launched with no command), the
auxiliary client (titles, compression, vision) was handed the placeholder key
and so ran on the CLI's default login - another account, or none - and a row
the pool had taken out of rotation for good (DEAD) printed as healthy in
`hermes auth list`.
- resolve_external_process_provider_credentials() hands the row the pool is
on as api_key (new public agent.credential_pool_plugin.
external_process_pool_key), so the main runtime, its rotation rebuild and
the auxiliary client all spawn the CLI with the same login; the
external-process rung carries the pool for usage-limit rotation and keeps
command/args. An empty pool keeps the placeholder: nothing changes.
- The generic pool rung skips external-process providers (their rung owns it).
- `hermes auth list` shows a dead row as "signed out (left rotation; sign in
again)".
- Docs: model-provider plugin guide section for pooled agent-CLI logins,
user-guide credential-pools note, public-api table.
For NousResearch/hermes-official-plugins#441, #499 and #37.
The platform support and installation guides said canaries publish
Linux AppImage feeds daily and that a --with linux stable release
includes them, and the developer guides said opt-in stable claims record
linux-evidence.json unconditionally. Publication is conditional:
publish-linux-updater admits a canary feed only when both arches staged
and passed the diagnostic smoke (scripts/releases/linux.py
admit_publication), stage-linux-evidence runs only under the same
condition, and the sequencer's Linux reconcile
(linux.publish_stable_record) leaves the stable feeds unchanged when the
evidence receipt is missing.
State the condition in platform support and installation, and qualify
the evidence-recording descriptions in stable-releases and
shared-bundle-builds.
Linux x86_64 and arm64 AppImages now build, pass native install-and-chat
smoke, unpack to a stable per-version `$XDG_DATA_HOME/hermes/bundles/`
payload path, and publish updater feeds on daily canaries (`#161336`)
and opt-in `--with linux` stable releases (`#161406`), but the builds
page renderer and documentation still hid them or described them as
unsmoked, unoffered artifacts:
- `scripts/releases/downloads_page.py`: accept real `linux-x86_64.AppImage`
and `linux-arm64.AppImage` filenames via `_VALID_ASSETS` (normalizing
`x86_64` to `x64` while rejecting invalid os/arch/ext combinations),
remove `_UNLISTED_OS = frozenset({"linux"})` so staged Linux AppImages
render in `Hermes Desktop` download tables, and update `_SMOKE_SCOPE`
to reflect diagnostic Linux AppImage smokes while preserving the
unsigned Store notice.
- `tests/scripts/test_render_builds_publication.py`: verify real
`linux-x86_64.AppImage` and `linux-arm64.AppImage` rows render in both
release bodies and R2 `index.html`, while YAML feeds and invalid
os/arch/ext pairs remain hidden.
- `apps/desktop/BUILDING.md`, `tests/install/README.md`, and
`website/docs/` (`platform-support`, `installation`, `updating`,
`desktop`, `shared-bundle-builds`, `stable-releases`): document the
Linux AppImage distro/glibc floors, first-launch payload extraction,
`AppImageUpdater` differential updates, measured canary sizes, and
current non-gating canary / opt-in `--with linux` stable status.
- `--forever` drops the 100-run cap (loops.max_ticks); `/loop status` says
"no limit". `--later` holds the first run one interval. Without them
`/loop 10m X` is unchanged: first run now, 100-run cap.
- An interval loop that comes due while a reply is running is admitted into
the session authority's durable FIFO behind it, as heartbeat ticks were,
instead of waiting for the chat to go idle. With no committed input to
queue behind (a command-only chat) it waits for idle and then takes main's
command-only fallback, sender re-check and Relay egress warm-up. Self-paced
loops keep waiting for idle. The gateway loop watcher scans every 5 s (the
heartbeat poller's cadence) so a due tick is not up to 15 s late.
- `/loop` takes /heartbeat's interval spellings (1.5h, 10min, 2hours, 1d,
90sec) and `off`.
- /heartbeat and /hb retire to "`/loop … --later --forever`", /proactive to
"`/loop`" (RETIRED_COMMANDS); their handlers and locale strings go.
- A heartbeat saved before the upgrade keeps its row and engine and fires
uncapped as before; `/loop status` shows it as a no-limit loop and
`/loop pause|resume|stop|off` act on it once the session has no loop.
- The classic CLI's gateway loop proxy forwards --forever/--later.
- Docs (features/loops.md, heartbeat.md -> /loop, slash-commands.md renamed
table), locales, Desktop strings and generated registries updated.
The folds Teknium approved are on main (/verbose focus, /statusbar battery|indicator,
/status's egress block, /model --runtime, /pet hatch, /goal add, /help <page>,
/billing topup|upgrade, TUI /verbose details|density), but the old names still ran.
They are now retired with RETIRED_COMMANDS: typing /focus, /battery, /indicator,
/egress, /codex-runtime, /hatch, /generate-pet, /subgoal, /commands, /topup,
/subscription or /upgrade (either _ or - spelling) runs nothing on the CLI, gateway,
TUI and Desktop and answers "`/old` is now `/new`.". The TUI answers its own /details,
/detail and /density the same way (slash.retired), since they never existed elsewhere.
The old names leave help, menus, completion, the Telegram menu priority, the Slack
/hermes-only set, the Desktop registry and description keys, and the docs tables (the
Renamed commands table lists each). Handlers only the old names reached are removed;
the umbrella commands still call the shared handlers.
Slash access: the folded forms check their own user_allowed_commands keys (goal-add,
model-runtime, status-egress, help-pages) instead of the retired names, and an
operator list that still names subgoal, codex-runtime, egress, commands or topup
grants what replaced it, so no existing config loses or gains access.
Three docs still said Linux AppImages get no feed (and one said no
smoke). That stops being true once publish-linux-updater writes the
canary feeds: apps/desktop/BUILDING.md's update-ownership table,
.github/workflows/README.md's diagnostic-jobs paragraph and
developer-guide/shared-bundle-builds.md. Each now says the canary feed
publishes only when both arches pass the diagnostic smoke, and the
BUILDING.md row separates canary builds (feed) from builds without a
baked feed URL, such as the local builder's (external replacement), and
adds that there is no stable Linux feed yet.
Found by the sol-loop review on #161336 (BUILDING.md); the other two are
the same stale claim.
/reload gains two subcommands on every surface (CLI, messaging gateway, TUI,
Desktop catalog, Discord native tree and relay manifest): `/reload mcp [now|always]`
runs the old /reload-mcp handler (same Approve Once / Always Approve / Cancel
confirmation, same approvals.mcp_reload_confirm gate) and `/reload skills` runs
the old /reload-skills handler. Bare /reload still reloads .env in the terminal
and TUI; in a chat (where it never existed) it lists the two subcommands.
/reload-mcp and /reload-skills (and their _ spellings) are retired with
RETIRED_COMMANDS: typing one runs nothing and answers "`/reload-mcp` is now
`/reload mcp`.". Every user-facing hint, locale string, doc and skill that said
/reload-mcp or /reload-skills now says the new form.
The official Langfuse plugin prices each generation itself and sent the
pricing lookup no key, so a keyed custom endpoint (LiteLLM, vLLM with
--api-key) answered its /models list with 401 and the generation got
no cost. The only way to the key Hermes' own pricing uses was the
private agent.aux_accounting._pricing_api_key.
Split its main-endpoint half out as main_endpoint_pricing_key(base_url)
and list it in the published plugin API with a docs section. Same
rules as before: a key only for model.base_url, none beside a live
credential source, none when config cannot be read.
Test: the helper returns the saved key for the configured main
endpoint and None for another host.
Bare /resume lists sessions on every surface (CLI table, TUI switcher overlay,
Desktop picker, messaging listing); /resume <number|name|id> switches. The
messaging /sessions forms move under /resume: all, full, search|find <q>; a
listing number resumes that row (with the same all/full words), the current
session is listed unnumbered, rows rank by lineage activity. /resume --all and
--cross-room keep working.
/sessions, /session and /switch answer "`/x` is now `/resume`." via
RETIRED_COMMANDS. The TUI submits a typed retired name as-is instead of
accepting the first fuzzy completion, so its notice shows.
Depends on #161271 (RETIRED_COMMANDS).
Regenerated, not hand-merged: the desktop slash registry, the shared slash.exec verdicts and the
gateway command-parity page now reflect all seven PRs together (retired names gone, /backup and
/billing present, /pause execable on slash.exec, #161260's desktop surface classes kept).
Approved with the /billing consolidation ("be sure to fix error messages
related to it"): credits notices, plan-limit next steps, the CLI billing
CTA and logged-out lines, the Keep going guidance, every locale catalog
(17 CLI + 16 TUI), TUI and Desktop copy and the billing-lifecycle doc now
say `/billing topup` where they said `/topup`, and `/billing upgrade` where
they said `/subscription` or `/upgrade`. plan_limits.portal_wording rewrites
the new wording for chats. The TUI's "Open /billing topup" confirm submits
`/billing topup`. The old commands keep working.
Existing tests that pinned the old wording get only their expected string
moved (listed in the PR body).
The first-turn clear sent every credits key to every agent off Nous, so a
plain non-Nous turn grew five notification.clear events
(tests/gateway/test_local_viewer_status_notice.py). The notice policy now
records which sticky Nous lines each session's viewer was last sent, and an
agent off Nous clears exactly those, once.
/billing joins /topup as a read for a local session, and the gateway
command-parity page is regenerated.
The parity generator reads Ink routes from inline command entries, so extracting them into named
consts made the generated table report /battery and /indicator as refused. They stay inline (and
back /statusbar battery|indicator); the generated table is back to main.
The runtime test asserted a persisted codex_app_server value, which needs a codex binary CI does not
have. It now checks the folded form prints and persists exactly what /codex-runtime does for the same
argument (status, invalid, auto) on CLI and gateway, and that the model is untouched.
Look the three entries up from coreCommands instead of moving their bodies
out, so core.ts is unchanged and the generated command-parity page still
sees /focus save its display preference. Regenerate that page for the new
CLI /verbose handler name.
The messaging /stop sweep now records the chat's running process ids before the handler first
yields or releases the session slot, then kills that fixed set off-loop, so a turn that claims the
chat in between keeps its own processes. /pause is a handler control on the gateway's local
slash.exec (Ink TUI, Desktop, ACP), with the same global estop effect. Regenerated the parity table;
the Notes now list /pause among the both-surface commands.
RETIRED_COMMANDS (hermes_cli/commands.py) maps an old slash name to the
invocation that replaced it. On every surface a retired name runs nothing
and answers one localized line (commands.retired): CLI process_command,
gateway idle and busy paths (busy bypass, never queued as a turn), TUI and
Desktop (commands.catalog carries the rendered notices; they are answered
before alias/fuzzy matching, so /platform no longer prefix-expands), and
slash.exec / command.dispatch as the backstop. Skills and plugins cannot
claim a retired name.
resolve_command normalizes `_` to `-`, so the underscore twins
(reload_mcp, reload_skills, codex_runtime) are deleted; /set-home is
retired for /sethome.
/platforms is now the one platforms command on every surface: bare or
`list` shows status, `pause|resume <name>` act on a failing adapter in a
chat (the CLI points to a chat). /platform and /gateway are retired.
/backup snapshot|export|import replaces /snapshot (/snap), /export and
/import; bare /backup lists the three.
- /discard: drop gateway_only; the CLI's /discard <admission_id> runs, so CLI /help lists it.
- CLI: a messaging-only command typed in full says it runs in messaging chats instead of a
near-miss for a different command (/pause -> "Did you mean /paste?").
- Shared gateway: an unsupported_command refusal for a messaging-only command carries a
detail naming where it runs (Ink prints it under the refusal).
- TUI: commands.catalog marks each registry command with slash_exec (the owner's verdict); Ink
completion and /help offer a registry command only when Ink runs it itself or the owner
does, and an exact registry name is never prefix-expanded into another command.
- Desktop: /prompt /battery /focus /tools get desktop="terminal", /subscription "settings",
the messaging-only /start /topic /pause /mute /sethome /restart "messaging".
- /stop description and docs say what it does per surface (messaging keeps processes from
earlier turns running); /platform docs say pause/resume act only on a failing adapter.
Review (Greptile P1 4729331907): skipping hermes plugins validate outright
for a pin capped below this core also skipped its file-based checks
(manifest, loadable entrypoint, install scanner, core overrides, private
imports, Desktop SDK use), and none of the other gates replaces them. For a
capped entry the gate now runs validate --json --install-deps and refuses
the entry when any check other than the capability probe (the one that
imports the pin on this core) fails, or when no report can be read.
`pinned-source-validate` ran `hermes plugins validate` for every changed
entry on the PR's own Hermes, even when the entry's own requires_hermes
excludes that Hermes. An entry can legitimately be capped below main: its
pin imports core modules a newer release dropped, and only the older Hermes
it names will ever install it. hermes-tag is the case: its pin imports
plugins.platforms.dingtalk, which left core with #159638. Loading that pin
on main can only fail.
The gate now reads requires_hermes through the isolated field reader. A
malformed value is refused the same way the structural validator refuses
it. When the spec excludes the running core (as an install by catalog name
compares it), the load step is skipped, with a ::notice and the reason on
the PASS line. Clone, reachability, confinement, self-updater, attestation
and payload gates still run on the pin, because older Hermes installs it.
`default_platforms` is declared per tool but the default it sets is per
toolset. The toolset took the union of the tools that named platforms and
ignored a sibling that named none, so one Slack-only tool turned the whole
toolset off on the CLI. An empty list asks for every platform, so the union
is now every platform: a toolset is scoped only when every tool in it names
platforms. That one value is what the registry, the key cache and the
gateway's plugins.list rows already carry.
`ctx.register_tool(..., default_platforms=("feishu",))` keeps the tool's toolset
on for those platforms and off elsewhere until the user saves a choice in
`hermes tools`; an explicit selection still wins everywhere. Read at the one
plugin-toolset default (`_enabled_plugin_toolsets`), carried in the plugin
toolset key cache and in the gateway's `plugins.list` rows so a classic CLI on
a gateway session agrees.
The Feishu plugin's doc/drive tools only work inside a Feishu comment run: a
new home that sets Feishu up now gets them on the Feishu platform alone, the
same scope migrated homes already keep.
Teknium's ruling: QQ Bot is an official plugin (hermes-official-plugins, catalog default: true), the
Weixin shape, not a Hermes Labs one.
- left_core_migration: the QQ Bot row's notice carries no placement sentence (official rows carry
none), only what changed for the home: a bare 'qqbot' in plugins.disabled now turns it off, and
plugins.isolation: host keeps a catalog platform adapter off. Yuanbao keeps its own Labs notice.
- One automatic install per plugin and home across both installers comes from main's
left-core `_pending` / default_plugins `_recorded` (#160177); this row only joins it.
- Docs (en + zh-Hans): moved to the official qqbot plugin, installed by default.
messaging/qqbot.md (+ zh-Hans) becomes a short "moved to the Labs plugin"
page with the unsupported notice, `hermes plugins install qqbot`, the
unchanged names and the automatic migration. The toolsets reference, the
messaging index, architecture/gateway-internals trees, cron, sessions,
env-var and dashboard pages mark QQ Bot as a plugin, as the Yuanbao and
Home Assistant moves did.
The Matrix adapter decided its silent approvers_only refusal by importing
tools.approval.list_gateway_approval_authority, a core symbol outside the
published plugin API, so tests/scripts/test_boundary_lint.py went red with a
new module_to_core crossing. That decision is approval policy, not Matrix
transport: it now lives in gateway.approval_actor.approval_is_list_only
beside approval_refusal, is published in hermes_cli/data/plugin_api.json and
documented in adding-platform-adapters.md, and the adapter calls it. The
boundary baseline is untouched.
Qwen ended the Qwen OAuth free tier on 2026-04-15 and current Qwen CLI
removed `qwen auth` and no longer writes ~/.qwen/oauth_creds.json, so
every Qwen OAuth error told users to run a command that cannot exist.
Auth errors, the `hermes model` Qwen OAuth flow and `hermes status` now
say the tier is discontinued and name the API-key providers that still
serve Qwen models: Alibaba Cloud (Token Plan), Alibaba Cloud (Coding
Plan) and Qwen Cloud. The picker description and the provider docs stop
describing a browser login that does not exist. Existing cached tokens
keep working unchanged.
Message edits based on #46851 by @liuhao1024.
Closes#46771
Refs #156945
Co-authored-by: liuhao1024 <sunsky.lau@gmail.com>
One command name instead of three: a bare /mute mutes the chat, and a bare
/mute while muted unmutes it. /mute 30m|2h|1d still mutes for that long
(replacing any current mute). The /unmute alias and the off/status
subcommands are gone, so the command menu and help gain one entry, not two.
The replies in all 17 locales now point at /mute instead of /unmute; the
four keys only the removed subcommands used are deleted, as is the
now-callerless get_mute_entry helper. The Desktop registry fallback and the
command-parity doc are regenerated.
Group chats had no way to make Hermes stop answering short of /stop (one
turn) or pausing the whole platform adapter (every chat). /mute makes
"be quiet" a state the harness enforces rather than a request the model
can talk its way around:
- /mute silences the current chat: its conversational messages are
dropped before any turn path (session-authority FIFO, mid-run
steer/interrupt/queue, idle turn), so no agent turn, no tokens, no reply.
- Slash commands always pierce the mute, so /unmute, /status and the rest
keep working; internal events (background completions) bypass it.
- /mute 30m / 2h / 1d sets a timed mute (bare numbers are minutes);
/mute status reports what is left; /mute off == /unmute.
- Chat-scoped, persisted in HERMES_HOME/.chat_mutes.json so it survives
restarts; a corrupt store reads as "nothing muted" (fails open).
- busy_policy=dispatch: /mute works while a turn is running, and text
sent to a muted chat mid-run never steers or queues behind that turn.
- Replies go through the i18n catalog (gateway.mute.* in every locale).
Weixin (personal WeChat via iLink) now ships as the `weixin` plugin in
NousResearch/hermes-official-plugins (official, installed by default). The
platform name, WEIXIN_* env vars and platforms.weixin config keys are
unchanged; Platform("weixin") resolves once the plugin registers it.
Removed: plugins/platforms/weixin/**, the four weixin-only test files,
Platform.WEIXIN and its PLATFORM_TOKEN_ENV_NAMES row, the hermes_cli/platforms
row, the hermes-weixin bundle and its hermes-gateway include, the
platform.weixin.voice_as_attachment locale strings, the WEIXIN_* env/config-key
list entries (config, dump, run, run_startup, webhook_targets, cron delivery,
dashboard order/env fallbacks, TUI source list), the weixin special cases in
gateway/outbound/send.py (.env pconfig synthesis, WEIXIN_HOME_CHANNEL read,
weixin-first standalone route; the plugin's EnvCred env_overrides with
home=WEIXIN_HOME_CHANNEL and its StandaloneSendPolicy cover them), the three
plugins/platforms/weixin rows in hermes_agent/compat/required_names.py, and the
weixin boundary-baseline lines. Docs: weixin.md (+ zh-Hans) is a short
moved-to-plugin page; messaging index and toolset references mark it a plugin.
Kept: session_rules/route_entries.Platform.WEIXIN (no plugin lookup there;
YUANBAO stayed too), hermes_cli/profiles.py weixin/accounts export path (the
plugin writes the same dir), Desktop references, shared helpers (comments
only). Telemetry: hermes-weixin is a retired toolset name.
The WEIXIN_* child-env strip set shrinks with the config.py entries; the
LEFT_CORE row's secret_env/private_env restores it (tests/tools/
test_local_env_blocklist.py and the MCP identity test stay red until then).
Both WeCom platforms (AI Bot `wecom`, self-built-app `wecom_callback`) move to
NousResearch/hermes-labs-plugins `wecom/`. Two LEFT_CORE rows (one per
platform, one shared plugin, installed once) whose platform_in_use predicates
replicate core's enable gates per mode. Stacked on the DingTalk removal
(#159638): the platform lists both PRs edit are resolved once here.
Folded from the earlier branch (one commit per step, in order):
331094ca15a3 Teknium test(gateway): a named profile's port-binder is served only on a default listener, live reconcile too
The live reconcile builds a named profile's platforms through the same prepare step as startup, so the
"not served" refusal holds there as well: a LINE secondary with neither api_server nor webhook on the
default stays unstarted and names the remedy instead of reading as connected. The two LINE named-profile
reconcile tests now give the default a webhook listener, so their LINE is served at /p/b/ as in a real
setup; their assertions are unchanged.
bedc93176b93 Teknium fix(left-core): off-platforms derive from the LEFT_CORE rows; left-core routes name the install
Same hunk as the QQ Bot (#159640) and Feishu (#159651) PRs, so merge order cannot leave a stale entry.
- A row whose tools lived in its own hermes-<platform> bundle only (Yuanbao) sets own_platform_only;
_derive_off_platforms fills off_platforms with every platform core knows plus every platform a
LEFT_CORE row moved out. The hand list _YUANBAO_OFF_PLATFORMS (which this PR had extended with
wecom/wecom_callback) is gone. The WeCom rows carry no toolsets (hermes-wecom and
hermes-wecom-callback bundled core tools only), so they need no off-platforms.
- Webhook routes: is_known_platform accepts any platform a LEFT_CORE row moved out, so a saved wecom or
wecom_callback route stays loaded before a secondary profile's plugin registers; without the plugin
the send fails naming the install.
- Cron: a deliver route naming a left-core platform whose plugin is not loaded reports the install
command (delivery error and preflight). tests/cron/test_cron_left_core_platform_route.py runs for
wecom and wecom_callback.
05d04a49ccc3 Teknium refactor(wecom): drop the one-install-per-home copy; the installer-race PR carries it generically
296e4a152f99 Teknium fix(gateway): a secondary port-binder with no default listener is not served, not "connected"
Under multiplex a secondary profile's port-binding adapter (WeCom callback, LINE, SMS, Teams, ...)
binds nothing: its app is published for /p/<profile>/ on the default profile's api_server or
webhook listener. With neither running on the default, connect() still returned True and the
runner logged "✓ wecom_callback connected (profile: b)" while nothing listened anywhere.
- Runner: such an adapter is not started; it is stamped `<profile>:<platform>` disabled with
error_code multiplex_no_shared_listener and a WARNING naming the remedy.
- Migration preflight: a secondary whose own gateway serves a port-binder today is refused when
the default enables neither listener (it would be served nowhere after the fold); a secondary
with no gateway gets the same text as a notice.
- bind_listener publishes the port it actually bound (`listener_base`); the dashboard topology
reads that instead of resolving a plugin platform's listen_port in the profile's plugin
registry, so a parked or cold profile's callback port is reported and no deferred loader runs.
26cde0b03cdc Teknium refactor(wecom): WeCom moves to the Hermes Labs wecom plugin, opt-in
WeCom is now a Hermes Labs plugin (NousResearch/hermes-labs-plugins), not an
official default one. Only homes that used WeCom get it installed, once; a new
home installs nothing.
- Both LEFT_CORE rows (bot and callback) carry the labs notice, like Yuanbao
and DingTalk, merged with the plugins.disabled 'wecom' sentence.
- Docs pages say "moved to the wecom Hermes Labs plugin" with the labs
warning (en + zh-Hans); no default-install wording is left.
- The one-automatic-install-per-plugin seam between default_plugins and the
left-core migration stays: it is general (any plugin that is both a catalog
default and a LEFT_CORE row) and now has its tests in test_default_plugins
with a stand-in plugin instead of the wecom-named ones.
9c82896ffee9 Teknium fix(wecom): migration preflight and dashboard read plugin capabilities in the owning profile
- platform_serves_profile_prefix(value, home) reads the adapter class in the
owning profile's plugin scope, like platform_binds_port: a port-binding
plugin only a secondary installed is a URL-change notice, not a blocker.
- A parked profile's plugins are never discovered for either check, nor for the
dashboard's port readout (read-only probe).
deb0661c69ea Teknium fix(wecom): review findings on the core removal
- One automatic install per plugin across both installers: left-core
`_pending` skips a plugin `_default_plugins_installed` records, and
default_plugins skips one `_left_core_installed` records, so a removed
WeCom stays removed whichever ran first.
- `listen_port` is read in the owning profile's plugin scope: a multiplexed
secondary (shared-listener routing), migration preflight (per profile home)
and the dashboard topology (discovers that home's plugins; preflight never
does, a parked profile's plugins must not run here).
- `hermes-wecom-callback` keeps resolving: a `hermes-<a-b>` bundle falls back
to platform `a_b`, and toolset validation accepts it.
- StandaloneSendPolicy.media_via_adapter moves after reply_file_over so
positional callers keep their meaning.
- cron home-target priority keeps wecom (the plugin platform keeps it).
- `_BUNDLED_ENV_SIBLINGS` removed with its readers' prefix branch.
c3ec8edb3cc4 Teknium refactor(wecom): WeCom leaves core for the official wecom plugin
Both WeCom platforms (AI Bot `wecom`, self-built-app `wecom_callback`) move to
NousResearch/hermes-official-plugins `wecom/`, installed by default on every
home (catalog `default: true`). Existing users get it automatically: two
LEFT_CORE rows (one per platform, one shared plugin, installed once) whose
platform_in_use predicates replicate core's enable gates per mode.
Generic seams added for the plugin, never a name check left in core:
- PlatformEntry.listen_port: a plugin platform that binds a host port
(platform_binds_port, multiplex shared listener, migration blockers,
dashboard topology). Replaces the wecom_callback rows.
- StandaloneSendPolicy.media_via_adapter: send_message media through the live
adapter route. Replaces the _CHUNKED_ROUTES["wecom"] row.
- cron: a registered plugin platform without a cron env var (home channel from
config.yaml only) is a valid delivery target. Replaces the wecom_callback row.
Child-env strip set unchanged: _ADAPTER_SECRET_ENV also carries the
left-core platform rows' secret_env.
DingTalk (Stream Mode adapter, AI Cards, the QR device-flow login in
hermes_cli/dingtalk_auth.py) now ships as the `dingtalk` plugin in
NousResearch/hermes-labs-plugins: built by Nous Research, not supported.
Same platform name, DINGTALK_* env vars and platforms.dingtalk keys.
Removed: plugins/platforms/dingtalk/**, hermes_cli/dingtalk_auth.py and
its tests, Platform.DINGTALK, the hermes_cli/platforms.py row, the
hermes-dingtalk toolset and its hermes-gateway include, the dingtalk PM
extra (+ uv.lock, nix groups), the platform.dingtalk.emotion locale
strings, builtin-list entries (update allowlist, allowlist env platforms,
webhook/cron deliver sets, dump, dashboard env rows) and the shim rows
for a folder that no longer exists. Comments that named DingTalk as a
core adapter now describe the capability flag instead; no core code
branched on the name. Docs: messaging/dingtalk.md (+ zh-Hans) is a
"moved to the Labs plugin" page.
Kept: DINGTALK_CLIENT_ID/SECRET on the hermes-owned env list (a plugin
manifest cannot claim them), tip t159 (tips are numbered contiguously),
the desktop/TUI session-source names (the plugin keeps the platform name).
hermes-dingtalk stays valid as a retired telemetry toolset name.
Nobody took over NousResearch/hermes-plugin-byterover or hermes-plugin-retaindb by the
Oct 15 2026 deadline (D12), so both bundled providers are deleted instead of moved to the
catalog.
- Delete plugins/memory/byterover/, plugins/memory/retaindb/ and the tests that only
exercised them (provider, multiplex contract, thread-profile and identity-scope files whose
every case was one of the two; the retaindb secret-scope pair; the two bundled-precedence
tests that used byterover as the bundled sample).
- memory_provider_migration: a `_REMOVED` name -> label table. A home whose memory.provider
names one gets "<Label> was removed from Hermes because no one took over maintaining it.
External memory is off; run `hermes memory setup` to choose another provider." at agent
start (CLI, Desktop notice, chat platform first reply), on `hermes update`, in
`hermes memory status`, `hermes memory setup <name>` and `hermes doctor`. No catalog lookup
and no install for those names; memory.provider is never rewritten. Both names leave
_LEFT_CORE (no unattended install consent for a plugin that does not exist).
- Drop RETAINDB_API_KEY / RETAINDB_BASE_URL / BRV_API_KEY from OPTIONAL_ENV_VARS, the
"Bundled providers" help line, ~/.brv-cli/bin from the memory-setup PATH, the two
boundary-lint baseline lines, and the docs (EN + zh-Hans).
- Kept: agent/redact.py's retaindb_/brv_ key patterns (a leaked key is still a secret).
The empty `honcho: {}` config root was already removed on main (6933155eaf).
`hermes plugins validate` failed any declared tool name core already ships, so a
platform plugin that takes over a bundled platform (Feishu, hermes-official-plugins
#517) could not declare its own tools: on a core that still bundles the platform the
names collide, and with provides_tools: [] the same plugin fails the declared-tools
check once core drops the platform. No single manifest passed both.
The collision check now exempts, for a kind: platform plugin named after a platform
core still bundles, that platform's own hermes-<platform> extras (never the shared
core tools), and only when the plugin does not register them on this core. Every
other built-in name, and any registration that would shadow a built-in, still fails.
Install never ran this check (only validate does), so 0.23.4 installs are unaffected.
`compression.idle_compact_after_seconds` only ran at the start of the next turn, so the
user's first message after a long idle waited for the summary, and the gateway's
background compaction ran only at the prompt-cache edge, i.e. only on routes with cache
keep-alives. Local models, custom OpenAI-compatible endpoints and unpriced routes never
compacted in the background.
- The housekeeping tick's cache-edge scan now also claims a cached chat whose idle policy
has passed (`idle` action, `gateway/run_watchers_idle.py`) when its cache edge claimed
nothing. It runs the same job: one per session key, the shared semaphore, the chat's
profile scope and claim gate, the manual-compression pipeline (lease, fence, automatic
gates, durable cooldown) with the `idle` trigger. No new worker, table or scheduler.
- Before summarising, the turn-start idle gates run on the stored transcript
(`idle_compaction_admission`, extracted from `_idle_compaction` so both paths share
them): above the post-compaction floor, grown since the last compaction, no cooldown.
- Once per idle stretch: the claim latches on the agent's last activity, so a refused or
failed chat is not retried until it has new activity; a success evicts the agent.
- Skips a chat with a turn running or with input an adapter has not dispatched yet
(pending message, text batch, in-flight guard) or the runner queued.
- A chat whose agent the idle-TTL sweep evicts first is compacted at release when due
(`_compact_then_release` no longer requires a prompt-cache warmer).
- Silent on the chat; the outcome goes to the gateway log.
- `platforms.<p>.channel_overrides.<id>.idle_compact_after_seconds` overrides the global
value for one channel (0 turns it off there), resolved through `_channel_override` like
model/system_prompt/allow_silence and stamped on the agent every turn, so a cached agent
follows config edits and the background run reads the chat's own policy.
The buffered-input check follows kylebach's #128358 (`_post_reply_idle_has_pending_input`).
Co-authored-by: kylebach <97074323+kylebach@users.noreply.github.com>
A request carrying cache_control markers declares its tier (the clock's
Anthropic-spec rule), so the first long reply of a session is covered too; an
automatic cache still has to prove itself on the clock first. The prompt size
is estimated from the payload instead of the previous reply.
Part of #160322.