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.
PM renames a virtual plugin member (no build backend) to hermes-plugin-<key>
so two profiles can enable the same plugin. Its own `name[extra]` references in
dependencies and optional-dependencies kept the declared name, so uv resolved
them as a different package: a lock failure (and an update that disables the
plugin) when no index serves the name, or someone else's package installed in
place of the extra when one does.
Rename those references (canonicalize_name match; extras, specifiers and
markers kept as written) and `tool.uv.conflicts` package entries along with the
project, before the extras pass, so its self-reference closure reads the names
uv sees.
Independent review finding 3 on #148199: `_runtime_member_metadata` removed
unselected extras and every dependency group but kept `tool.uv.sources`
alternatives qualified by them, so uv refused the whole workspace ("Source
entry for `x` only applies to extra `dev`, but the `dev` extra does not
exist") for a plugin that syncs on main. Alternatives scoped to a group or
to an extra this sync does not install are now dropped, in both the table
and list forms; a package keeps its key while any alternative remains, and
unqualified runtime sources always stay.
uv locks every extra of every workspace member, but PM's generation sync
installs only the extras `--extra` names. A plugin test extra such as
`dev = ["httpx<0.28"]` therefore failed the lock against core's
httpx==0.28.1 and `hermes update` disabled the plugin. The generated member
snapshot now keeps only the extras this generation selects plus those the
plugin's own requirements name (`plugin[runtime]`), and drops conflicts that
point at removed extras. Explicit `--extra` of a plugin-declared extra still
locks and installs it.
Review finding: a carried extra whose per-extra trials failed on a download or tooling
error was left out of the published selection with no decline and no retry record.
Those facts end the old venv's re-scan, so no later update ever carried it again and
the extra was silently lost.
A transient trial result is not a verdict: the sync now fails before publishing,
naming the extra, so the next update scans the old venv again and retries it. Only
build verdicts are left out and recorded, as before.
A migration from a pre-PM venv carries the extras that venv held (matrix,
fal, ...) into PM's first generation. Those reached sync_venv as if the user
had requested them, so one that no longer builds (python-olm's vendored
libolm without a working cmake/C++ compiler) failed the whole sync. No
facts.json was written, the old venv is never deleted, and every later
`hermes update` re-scanned it, re-carried the same extra and failed the
same way: one optional extra bricked updates for good.
sync_venv now takes `carried`, the entries of `extras` that were carried
rather than asked for. When the sync fails with a build or resolver verdict,
pm.carried_extras proves core plus the requested extras build without them,
re-adds each carried extra on top of what fits, and syncs without the ones
that do not. A build verdict is recorded in declined-extras.json (with the
reason, so a later lazy-install refusal names the cause instead of a
`--without` nobody ran) and the operator is told which extra was left out and
to run `hermes pm install --extra NAME` to add it back. A download failure is
left out of this update but not recorded. Requested extras and core still
fail loudly. Both legacy callers (the source-launch sync and the historical
takeover) pass the carried list.
The streamed uv tail also keeps the build-backend marker now: a native
build's traceback runs past the 2000-character tail, so the failure read as a
fetch error instead of a BuildFailure verdict (this also hid plugin build
verdicts from plugin eviction).
Also fixes committed_venv's docstring: PM never deletes the in-tree venv.
python-build-standalone records CC='clang -pthread', CXX='clang++ -pthread',
clang-led LDSHARED/LDCXXSHARED and AR=/tools/llvm/bin/llvm-ar in sysconfig.
setuptools compiles with those unless the environment overrides them, so on
Debian/Ubuntu/WSL hosts with only gcc/g++ every C/C++ sdist under PM's pinned
interpreter failed with "No such file or directory: 'clang++'" (python-olm
via the matrix extra), and any build_clib static library failed on the
missing llvm-ar even where clang exists.
For the pinned interpreter on Linux, pm/build_compilers.py reads the recorded
toolchain once per interpreter and setdefaults CC/CXX (and the linker each
one leads) to the gcc-family equivalent when the recorded compiler is absent
and gcc/g++ is on PATH, keeping flags such as -pthread, and defaults AR to
the host's ar. User-set CC/CXX/LDSHARED/LDCXXSHARED/AR win; other
interpreters keep their sysconfig. The macOS AR default moves into the same
module unchanged. When no compiler exists at all, a BuildFailure now names
the missing compiler and how to install one instead of "retry".
The fail-loudly-on-missing-compiler idea comes from #130255.
Co-authored-by: jose_ugalde <vivojf@gmail.com>
A plain unaddressed follow-up in a channel thread the bot participates in
gets reply_expected=None, so a bare [SILENT] is rejected and the gateway
posts the unexpected-silence notice. That is noisy when humans in the
thread talk to each other without @mentioning.
thread_followup_silence (config.extra / SLACK_THREAD_FOLLOWUP_SILENCE,
default false) makes such non-DM thread replies reply_expected=False so the
silence marker stands. DMs, @mentions and flat channels are unchanged,
and the default keeps the #110952 behaviour.
Move the Slack config getter factories into adapter_config_readers.py to
keep adapter.py within its code-health line cap.
_TRUSTED_LOCAL_ORIGIN_PORTS (9119, 5173, 5174, 4174) was trusted on every
backend, including packaged Desktop backends on an ephemeral port. A Vite app
on 5173, or on 5174 when 5173 is taken, could still read the session token
from / and open /api/ws. _is_trusted_local_origin() now accepts only the bound
port and the desktop dev renderer this backend was spawned for
(HERMES_DESKTOP_DEV_SERVER). `hermes dashboard` keeps working on 9119 because
that is its bound port.
The dashboard's Vite dev server was the only client that relied on a fixed
port: the browser's Origin on proxied /api upgrades is Vite's. The /api proxy
now presents upgrades from Vite's own page (Origin host equals Host) with the
backend's origin, and passes every other Origin through for the backend to
refuse, so it does not launder foreign pages the way Vite's rewriteWsOrigin
would. Vite's default CORS grants every localhost port and would hand another
local page the token hermesDevToken() injects into index.html, so it is off.
(cherry picked from commit 66de028a3ce39ec49a32205855dc269d30bf3942)
Running the documented commands against a scratch HERMES_HOME showed several
claims in the new reference were wrong:
- `hermes project bind-board` does not link a board's tasks to the project. It
records the board on the project and, when the board exists and the project has a
primary folder, sets the board's default workdir (from the CLI only a bare
`--workspace worktree` task uses it). The board's project_id stays null, so tasks
get no project link or deterministic branch; only the kanban dashboard's Project
selector or `hermes kanban create --project` links tasks. Unbinding clears only
the project's record.
- The CLI resolves `<project>` by an exact id or a slug in any case, not by display
name; name matching is only in the desktop_project tool.
- `set-primary` normalizes paths, so the "spell it the way show prints it" tip was
wrong.
- A desktop_project move leaves the active-project pointer alone only when the
project has a folder, and the desktop sidebar following the viewed chat can still
select the new project.
Also: the worktree + branch default applies to linked non-dir tasks of a project
with a primary folder; an unknown `--project` creates an unlinked task without an
error; complete the exit-code list; note desktop delete (folders and chats kept),
the sidebar's automatic groups, and the Windows HERMES_HOME default; drop internal
table/function names and the raw sqlite queries; replace troubleshooting advice
that made two projects own one folder; point background-systems.md at the
reference; shorten the routing row; and regenerate the bundled-skill docs page.
website/docs/reference/cli-commands.md made the same bind-board claim; its summary
rows and `hermes project` section now describe what the CLI does, and `--project`
is listed among the `kanban create` flags.
A machine stop during an install can leave an unpacked wheel in PM's uv
cache whose files are NUL bytes: uv renames its unpack directory into
archive-v0 without flushing the data. uv reuses that entry on every sync, so
every later plugin enable, repair or install failed with "The wheel is
invalid", and neither a retry nor the suggested `hermes pm doctor` helped.
When uv's install step fails on a cached artifact (invalid wheel, invalid
RECORD, or a cache pointer to a missing archive), PM now removes the named
package(s) plus any other entry that fails the same validation through
`uv cache clean`, deletes leftover corrupt archives, and retries. A retry
only follows a failure naming a package not purged yet (at most three), so a
source that serves a broken wheel fails once more with a message naming the
package and the cache directory. Other failures are untouched.
`hermes pm doctor` now reports corrupt uv cache entries, and
`hermes pm doctor --repair` removes them.
First-run setup keeps passing --migrate-secrets (what core's old OpenClaw step did); the named
command forwarded setup's choice too, so API keys and bot tokens came over without being asked.