Remove prospective migration instructions at the maintainer’s decision because the service-migration design is not signed. Keep present ownership facts and all detected service metadata.
The report never stops, restarts or kills anything, writes no service
file, unit, plist or ledger and opens no network connection, but normal
Hermes startup bookkeeping (HERMES_HOME layout, install record, logs,
scratch prune) still runs first, as for any hermes command. Say so in
the module docstring, help text and docs, and add a fresh-process test
through the real entry point that compares the files left behind with
gateway migrate --dry-run and checks every recorded systemctl/launchctl
call is a query.
Report the hermes serve / hermes dashboard background services on this
machine (systemd user/system units incl. Nix hermes-backend, launchd
jobs, s6 slots, containers, Desktop SSH/local backends, detached and
manual processes), the HERMES_HOME each serves, what a future backend
migration would do and why nothing is applied. Text or --json, exit 0,
never stops/restarts/edits/writes anything.
Second review round on the share/copy split:
- A named launch profile's single-use OAuth logins (Claude, Codex, xAI,
Nous) are stripped from its copied auth.json, so for those providers the
new profile reads the default profile's. provision_profile now returns a
warning naming them and the auth add command to fix it.
- The share decision uses the auth fallback's own root test
(_global_auth_file_path) instead of a second resolve() comparison.
- The CLI only suggests --isolated-auth where it would change something,
reuses the launch label it already computed, and the help, docs and the
Desktop bot hint say logins are shared with the default profile.
Review of the new create defaults found that share_auth works by not copying
auth.json, so the new profile reads the default root's (hermes_cli.auth
fallback). From a named launch profile that paired its API keys with the
root's logins and hid its own. A named launch profile's auth.json is now
copied (single-use OAuth grants stripped, as before).
mirrored["auth"] is now derived from the outcome: "shared" when the new
profile has no auth.json of its own. --clone-all no longer reports shared
logins it does not have, and --no-credentials says the root's logins stay
readable.
The CLI names the profile keys and model came from, uses cloned (so
--clone-from without --clone no longer says "no API keys yet"), and the
opt-out tests parse real argv. Docs list the new default and both flags.
`hermes fallback check [--live] [--json]` reports, per fallback entry, whether the switch
could use it:
- static (default): the entry resolves through resolve_runtime_provider with the switch's
own kwargs (fallback_entry_runtime_kwargs), no chain walk, then the session-readiness
credential predicate. No inference request; plugin installs held.
- --live: one minimal completion per statically ready entry, in parallel, on the client the
swap itself builds (route_binding.resolve_route_entry_client; Anthropic Messages, Codex
Responses, Bedrock and ACP on their own wire), shaped by the auxiliary request builder and
streamed where the provider is stream-only. Never through call_llm, whose recovery ladder
retries or answers from another provider and would hide a dead entry. SDK retries off, the
provider's request_timeout_seconds (else 30 s), the aux response shape check. An empty
answer fails as live_response; a provider-reported model other than the one sent (or a
dated snapshot of it) fails as model_mismatch, except where the reported id proves nothing
(adapter wires, Azure, local/private endpoints, router meta-models, Bedrock ARNs).
``auto`` and ``moa`` entries are not one fixed route and keep their static verdict.
run_probes gains ``aws_imds`` so an EC2 instance role counts for a Bedrock probe.
- exit 1 when any entry is not ready; --json carries profile, checked_at and a stable
per-entry record; credentials are never printed; error and model text are redacted,
including the entry's own key when it has no recognisable prefix.
- no AIAgent, session, prompt context or fallback notice.
Based on #63914 by @webtecnica, which proposed the command; rebuilt on the existing
resolvers instead of copied alias/env tables and a raw chat-completions POST.
Co-authored-by: webtecnica <75556242+webtecnica@users.noreply.github.com>
A message outside allowed_topics was dropped with no log line, so a topic
the operator meant to allow (often a thread-less General message read as
topic 1) looked like a dead gateway (#52635). The first drop per
(chat, topic) is now named at INFO with the allowlist. _topic_gates_pass
moves from adapter.py into the topic-routing mixin.
Add TELEGRAM_ALLOWED_TOPICS, TELEGRAM_FREE_RESPONSE_CHATS and
TELEGRAM_FREE_RESPONSE_TOPICS to the environment variable reference and
mention the matching telegram.* config keys in the Telegram user guide.
Documents the whitelist-before-ignore ordering and the General topic
normalization to ID 1.
Closes#78770
Co-authored-by: René Rosenkranz <ninso112@proton.me>
Telegram clients split a long paste into several messages that can reach the
gateway more than 0.3 s apart, so the first part flushed as its own turn and
the rest arrived as a mid-run steer. Text over 1,024 characters now waits
1.5 s for its continuation (2.0 s after a near-4,096 chunk); the 0.18/0.24 s
fast paths for normal-length text are unchanged.
Salvaged from #111162 by @100yenadmin.
Fixes#74752
`pm.build_env --python <system python> --out .venv` builds a checkout venv whose
pyvenv.cfg `home` is outside PM's tool store, so _built_by_pm read it as a main-era
venv and a data root with no recorded selection carried its extras (`all` and
whatever it holds) into every sync. PM now writes `hermes-pm-built = true` into the
pyvenv.cfg of every environment it creates; _built_by_pm accepts that key and keeps
the store-Python check for environments built before it.
38d0d66ee8 counted a checkout venv as pre-PM only when its
hermes_agent dist-info listed no `pm`. Pre-handoff updaters
(v2026.3.12..v2026.5.29.2) run `uv pip install -e .[all]` into the old
venv from the tree they just pulled, so that dist-info lists `pm`. Such
an install's first generation then selected only `[all]` on every path,
the takeover and launch migration included, which main already carried.
Provenance of the Hermes install says nothing. What sets a PM-built env
apart is its interpreter: PM builds every environment on its pinned
Python, so the venv's pyvenv.cfg `home` sits in a tool-store entry whose
facts.json holds a `python` row. No pre-PM installer had that store. The
carry now skips such a venv and reads any other in-tree venv that holds
Hermes. A bare `uv venv` still holds none.
The old-venv carry read any `venv/` or `.venv/` with a site-packages as
the install's pre-PM state. On a data root with no recorded selection (a
test's HERMES_HOME, a borrowing launch) beside a developer checkout, the
`.venv` that CONTRIBUTING.md has contributors build
(`pm.build_env --out .venv`) was unioned into every sync: a narrow
request gained `all` and the dev env's anchors, and CI's core-only
`--extras '[]'` would record `[all]`.
A main-era installer always installed Hermes into its venv from a tree
without `pm`. The carry now requires that: a `hermes_agent` dist-info
whose top_level lacks `pm`. A venv built from a PM tree lists `pm`, and a
bare `uv venv` holds no Hermes, so neither is carried.
tests/pm also stops reading the running checkout's venvs, and the legacy
fixtures build the main-era venv through one helper.
The justfile held per-workspace eslint recipes that duplicated lefthook and
ran whatever ruff was on PATH. It is now one menu of developer commands:
setup, check, fix, test, the JS workspace checks, the desktop and TUI dev
servers, the website build and the PM re-lock. Each recipe calls an existing
script or tool. Python recipes go through scripts/run-in-hermes-env, so they
work in a shell that never ran `source ./activate`.
`just test` requires at least one path, because scripts/run_tests.sh with no
arguments starts the full suite; `just test-all` is that explicit form.
`python -m scripts.code_health.ruff_runner ARGS` runs the pyproject-pinned ruff
that scripts/check resolves. `just fix` and the pre-commit `just ruff` recipe
use it, so the hook no longer depends on the ruff version on PATH.
lefthook.yml keeps its jobs, globs and roots; each job now runs `just ruff` or
`just eslint`. A shell without `just` on PATH fails the hook with "command not
found" rather than skipping the lint.
CONTRIBUTING.md, the developer guide, the package-management reference and the
desktop and TUI READMEs name the recipes beside the commands they run.
Inside a workspace folder npm treats the folder as its own project and
resolves it from the registry, past pnpm-workspace.yaml's overrides and
release-age gate; the root preinstall never runs there, and
--ignore-scripts skips it at the root. Each workspace folder and the root
now carry an .npmrc with engine-strict=true and an engines.npm that no
npm satisfies. npm checks engines only when it builds a dependency tree,
so install (with --ignore-scripts, --package-lock-only or --force), ci,
update, dedupe, uninstall and link fail with EBADENGINE on npm 10 to 12,
while npx, npm exec and npm run work. pnpm reads neither.
The root refusal needs the root devEngines gone (npm skips root engines
while it is set), so this builds on the single-source pnpm pin. The root
.npmrc also makes npx strict about engines anywhere in the checkout.
npm-shrinkwrap.json joins package-lock.json in .gitignore.
The skill drives the yb_* tools, which now ship in the yuanbao Labs plugin; the plugin carries
the skill (ctx.register_skill). Regenerated the skill pages, catalogs and sidebar with
website/scripts/generate-skill-docs.py, dropped yb_* from the ACP TOOL_KIND_MAP as the Home
Assistant move did for ha_*, and the boundary baseline's stale Yuanbao entries
(scripts/boundary_lint.py --update).
The Yuanbao gateway platform (plugins/platforms/yuanbao) and its yb_* tools
(tools/yuanbao_tools.py) now ship as the `yuanbao` plugin in
NousResearch/hermes-labs-plugins, a community-tier, Nous-built, unsupported
plugin. Platform name, toolset name (`yuanbao`), tool names, env vars,
config keys (platforms.yuanbao.*, legacy gateway.yuanbao) and
YUANBAO_HOME_CHANNEL are unchanged.
Migration: a LEFT_CORE row (hermes_cli/left_core_migration.py) installs the
catalog plugin for every home core ran Yuanbao for: YUANBAO_APP_ID (or the
legacy YUANBAO_APP_KEY) plus YUANBAO_APP_SECRET in its dotenv layers (the
process env too for the launch home), platforms.yuanbao on through the
gateway's own config loaders, or the yuanbao / hermes-yuanbao toolset
selected for another platform. The shipped `yuanbao: [hermes-yuanbao]`
platform_toolsets row is not use. The row keeps the yb_* tools off on every
platform whose core composite never carried them, keeps YUANBAO_APP_SECRET
stripped from children (secret_env) and the other YUANBAO_* settings on the
provider blocklist (private_env) while the plugin is absent, and its notice
carries the unsupported sentence.
Core wiring removed: toolsets (yuanbao, hermes-yuanbao, the hermes-gateway
include), Platform.YUANBAO (Platform('yuanbao') resolves once the plugin
registers it), the platform/toolset menu rows, the TUI special case, the
static session note (the plugin's platform_hint carries it), env/config-key
lists, webhook deliver set, startup allowlist list, locales strings and
yuanbao-only tests. Telemetry enum values stay.
`hermes pm update --pnpm` rewrites pnpm-lock.yaml but not the flake's
fixed-output store hash, and no doc named the second step. Document
`nix run .#update-pnpm-lockfile` (what it does and the CI fallback) in the
Nix setup guide, its zh-Hans translation, and the PM maintainer commands.
Container mode forwards every hermes invocation into the managed
container, so this command reads the container's clipboard (none) and
--out is a container path. It fails closed there. Say so in the docs;
keeping the command on the host is a separate change.
Suggested by @BearHuddleston in review.
The image is staged in a temp file and renamed onto --out, so an existing
file came back with the umask default mode: a private 0600 temp file from
mkstemp became 0644 and readable by other local users. Copy the existing
file's permission bits onto the staged file before the rename. New files
keep the old default. The docs now say so, and that a symlink at --out is
replaced by a regular file.
Suggested by @BearHuddleston in review (fix and test).
With a working clipboard tool and a read-only --out file, the command
reported no_image (exit 1) and the extractor's failure cleanup deleted the
existing file. The extractor now writes into a private temporary directory
beside --out and the result is renamed onto it, so an existing file is only
ever replaced by a complete image. A read-only or directory --out is
write_failed (exit 4) before the clipboard is read, and a failed rename is
write_failed too. The extractor itself is unchanged.
Also drops the FILE_LINES allow comment on main.py: the clipboard wiring
is offset by reflowing four short lines of the _BUILTIN_SUBCOMMANDS literal
(same set, same order), so main.py shrinks by one line against main.
Third-party clients read the clipboard image by running the TUI's private
helper script with PYTHONPATH pointed at the source tree. This exposes the
same extractor (hermes_cli.clipboard.save_clipboard_image) as a documented,
device-local command with a JSON reply and stable reason codes:
ok / no_image (exit 1) / no_tool (exit 3) / write_failed (exit 4).
The TUI helper and the extractor's existing functions are unchanged; the
extractor gains clipboard_image_tools(), the per-platform tool list used to
tell "no image" from "no tool".
source_build_env set NPM_CONFIG_USERCONFIG from its own path while
user_npmrc chose the file for everything else; both now use
hermes_npmrc(). The docs say the Hermes file replaces ~/.npmrc (npm
userconfig semantics) and name `hermes pm update` lookups, not update
checks, as its other download consumer.
cmd with delayed expansion enabled drops an unpaired `!`, so `ua!==want`
became `ua==want` and inverted the check on Windows. The preinstall now
exits 0 on a match and refuses otherwise, with no `!`. It names the
required pnpm for any other user agent (including an overridden one), says
when pm/lock.json is missing or pins no pnpm, and gives the PowerShell
activate. A real pnpm, made to report another version through
pnpm_config_user_agent, proves the root preinstall runs on a filtered
install and on one from inside a workspace folder.
The docs claimed every install refuses another pnpm. Only installs that
run lifecycle scripts do: --ignore-scripts, --lockfile-only and fetch skip
the root preinstall on pnpm 12. They now say so, name CI's frozen install
as the lockfile backstop, name pm/lock.json as the pin, and note that a
pnpm major re-pin must move engines.pnpm.
pmOnFail: ignore (needed to keep pnpm-lock.yaml one YAML document) also
turns off pnpm's devEngines check, so a direct or filtered `pnpm install`
ran with any pnpm. engines.pnpm `^12` makes pnpm 10 and 11 refuse with
ERR_PNPM_UNSUPPORTED_ENGINE under engineStrict. pnpm 12 never compares
engines.pnpm with itself, so an exact engines.pnpm would not stop another
pnpm 12: the root preinstall, which pnpm runs on filtered installs too,
now requires the exact pm/lock.json pnpm. Neither is a new pin to sync.
`pnpm update --no-save` reports it as STRICT_MIN_RELEASE_AGE_REQUIRES_SAVE,
which names no package. On that error, repeat the update with saving
allowed and no prompt on a scratch copy of the manifests and lock; its
NO_MATURE_MATCHING_VERSION record lists the picks, and the hint prints
each as the `- name@version # why` line to add.
pnpm's minimumReleaseAgeExcludePrune runs on every install that
settles the lockfile, so a stale entry made every user build rewrite
the tracked pnpm-workspace.yaml, and CI's install pruned it before the
policy test could see it. Turn it off; `hermes pm update --pnpm` drops
the entries the refreshed lock no longer holds itself, which replaces
the extra frozen install.
Reasons move to inline comments: pnpm's prune reattached a dropped
first entry's leading comment to the next survivor, and the PM prune
drops each line whole.
Review of the attach command:
- attach_gateway no longer pops the launch-policy variables from os.environ: an in-process
caller would have lost HERMES_CWD and friends. scrub_client_launch_env() runs in the two
processes that exist to attach (the CLI command and Ink's bootstrap), before the attach.
- Every failed mint after an attachable discovery raises TicketUnavailable (a RuntimeError, so
Ink's bootstrap still prints one bounded line and retries). The CLI reports it as
inaccessible/ticket_unavailable with the cause in `detail`, instead of a DiscoveryError's own
code or a bare reason.
- --start and --recover are mutually exclusive; --timeout is documented as the start deadline,
with discovery and the mint adding at most 5 s each.
- Docs: only an unmanaged gateway that attach spawns has the idle exit; a mint failure is
answered by running attach again, not by --recover.
- The CLI test keeps the suite's isolation variables in the child, and the no-owner verdict test
runs on every host.
The CLI reference and gateway internals describe the attach command, its JSON, the dial rules
(subprotocols, loopback, no Origin) and the ticket's limits.
tui_gateway/AGENTS.md drew Ink talking "stdio JSON-RPC" to a tui_gateway child, and tui.md said
the TUI spawns its own in-process gateway. Ink attaches to the profile's shared gateway owner
over `/api/ws` with `hermes-gateway-v1` and a ticket from the attach step; both now say so,
including how a dropped socket and a gone gateway recover.
The 27 minimumReleaseAgeExclude entries were bare names and globs, each
lifting the 14-day gate for every future release of the package. Only
pele@1.13.0 in the lock is under 14 days old (CI's frozen install with
an empty list flags it alone), so it is the one entry left, as an exact
version.
minimumReleaseAgeExcludePrune drops an entry once the lock no longer
holds that version. pnpm runs it on install, frozen and --trust-lockfile
included, but not on `update --no-save`; `hermes pm update --pnpm` now
follows its update with a frozen lockfile-only install so the prune
lands with the lock change instead of on a user's checkout.
pmOnFail: ignore keeps the lock a single document, and with it a direct
`pnpm install` accepts any pnpm; node-deps.mjs (builds, hermes update) is
what refuses another version.
READMEs, contributor guides, AGENTS.md files, skills and the website (with
the zh-Hans translations) give pnpm commands for the workspaces; the
website itself is still an npm project.
Explain why a blank provider language can still resolve to English. Align the guides and environment reference with first-nonempty resolution while preserving configuration values and documenting command-backend limits.
Constraint: Documentation must describe current runtime behavior, not pending default-language or CLI changes.
Confidence: high
Scope-risk: narrow
Reversibility: clean
Tested: Four configuration cases through the real loader and resolver; parsed YAML unchanged.
Tested: Clean English Docusaurus build and rendered table/cross-link checks; git diff --check.
Not-tested: Other documentation locales; no runtime code changed.
Classic CLI gains a Codex-style backtrack picker. Esc Esc on an idle, empty composer with no
overlay (or /rewind) lists earlier prompts newest first with a preview and turn number.
- Enter: prefill the prompt for editing. Nothing is cut until the edit is submitted; the
submission rides to the process loop as a BacktrackResend, which re-validates the picked
turn (same session, same text) and then runs the same durable rewind /undo uses. Esc Esc,
Ctrl+C, an empty submit, or submitting a slash/! command cancels and cuts nothing.
- f: fork. Runs the existing /branch path, then rewinds only the CHILD to just before the
picked prompt and prefills it; the parent's rows stay active.
- /rewind N and /rewind fork N do the same without the picker.
Esc Esc with a draft still discards it; mid-turn Esc Esc is unchanged.
undo_last's rewind body moves into CLISessionMixin._rewind_to_user_ordinal (shared by /undo
and the picker; same compaction-carrier handling, agent patching and memory rewound hook).
The picker lives in a new hermes_cli/cli_backtrack.py mixin; cli_tui_mixin.py is untouched.
CommandDef rewind is cli_only (desktop: terminal); desktop registry and parity table regenerated.
The reference said "/save | Save the current conversation" and listed /save
as CLI-only. On main /save takes <json|md|html> [filename] [redact] in the
CLI, TUI, Desktop and messaging gateway (hermes_cli/commands.py registers it
without cli_only).
- CLI table: formats and aliases, redact, where the file lands (always on
the user's machine; Desktop uses a save dialog), bare /save behaviour.
- Messaging table: new /save row (file sent to the chat as a document).
- Notes: drop /save from the CLI-only list.
- Same changes in the zh-Hans copy.
Follow-up to the Web Extract removal:
- Review row: `/review` is a full independent subagent, and its own guide
(features/delegation.md "Review model") pins a strong model, so advise a
separate (often stronger) model instead of a cheaper one; drop the
"async delegation rail" internals and link the canonical section.
- Voice Chat row: drop the source-file path, say that reasoning is off on
voice turns even on `auto` and that GPT-Live ignores the slot, link
features/voice-mode.md "Voice chat model".
- Drop the hard-coded slot count: "11" went stale because nothing ties it
to `_AUX_TASK_SLOTS`, and plugin-registered tasks add rows anyway. The
intro gives examples and links the table instead of a partial list.
- Apply the same corrections to the zh-Hans mirror, which still listed
Web Extract and 11 slots.
- Remove the remaining "web extraction" mentions from aux-task lists in
the CLI aux picker prose, fallback-providers, agent-loop, integrations
index and the --usage-file paragraph.
Refs #147807
Removes 7 optional skills:
- notion, airtable: the official vendor MCPs are in the MCP catalog
(OAuth, no Portal needed), hosted connectors exist, and each vendor
keeps its own skills repo.
- shopify: hosted connector plus Shopify's own maintained `shopify`
skill in Shopify/Shopify-AI-Toolkit.
- duckduckgo-search, searxng-search: both are bundled web_search
backends now and web_search works keyless out of the box, so these
fallback-only skills essentially never surfaced.
- honcho: Honcho left core for Plastic Labs' catalog plugin, which owns
the `hermes honcho` commands this skill documented.
- mpp-agent: the verified Pay plugins (hosted and local) cover paying
HTTP 402 / x402 / MPP APIs with a bundled skill.
makenotion/skills, Airtable/skills and Shopify/Shopify-AI-Toolkit become
default trusted taps (all MIT, vendor-owned) so the topic still shows in
`hermes skills browse`, matching the wandb/qdrant/pinecone precedent.
The `box` skill stays for now.
AIRTABLE_API_KEY leaves OPTIONAL_ENV_VARS (its only consumer was the
skill); NOTION_API_KEY stays because the Teams meeting pipeline's Notion
sink reads it, and its description now says so. Related-skill links,
docs examples and the zh-Hans catalogs drop the removed names.
Round-2 review P3 #2: the two version gates compare differently. Document that a
hermes-agent requirement uses PEP 440 with its marker, requires_hermes compares
major.minor.patch and passes what it cannot parse, and that a misfit of either
sits out and is refused at enable/install instead of being disabled.
Independent review (P2): binding the core name to `{ workspace = true }` makes uv
ignore the specifier, so a selected extra `hermes-agent[other]>=2` installed against
Hermes 1. Main's runtime path had the same hole: `applicable_requirements` drops a
runtime `hermes-agent>=2` without checking it.
Every applicable requirement naming hermes-agent (runtime dependencies, manifest
pip_dependencies, and the extras this generation installs, markers evaluated on the
target interpreter) is now checked against the version identity requires_hermes reads
(the committed pyproject version is a 0.0.0 placeholder). A mismatch raises
ResolutionConflict naming the plugin, the requirement and the running version, which
update-time eviction treats as a verdict on the plugin and parks it.