Files
hermes-agent/website
Jeffrey Quesnelle 4f676af2cf
Some checks failed
Deploy Site / deploy-vercel (push) Has been cancelled
Deploy Site / deploy-docs (push) Has been cancelled
Skills Index Freshness Check / check-freshness (push) Has been cancelled
Skills Index Freshness Check / check-catalog-cors (push) Has been cancelled
Docs Search Monitor / probe (push) Has been cancelled
feat(pm): a launcher can name the install-state folder of its process (#159524)
* feat(pm): a launcher can name the install-state folder of its process

A sandbox that runs Hermes on the host's own files grants the selected
dependency environment read-only and nothing else of installs/<key>. On
Windows the process inside still sees that folder, because it is an
ancestor of a grant, while reading facts.json and taking the install lock
are refused. Start-up took that for an install state it has to use and
ended with "install state is not writable by this user", so a sandbox on
an installer-made Hermes on Windows did not start.

HERMES_INSTALL_STATE_DIR names the folder a process and its children keep
their install state in. A process started with it runs on the interpreter
it was given: it selects no environment, from the install's own state or
from the named folder, it is not restarted on another interpreter, and it
writes nothing into the install's own state. A Linux sandbox gets the
same from a mount of an empty folder over installs/<key>; Windows has no
mount.

* fix(pm): start-up reads nothing from a folder a launcher named

A process whose launcher named its install-state folder still acted at
start on that folder and on the checkout's markers:

- An update that stopped half way leaves .update-incomplete in the
  checkout. The process ran the repair, which builds into the named
  folder, and cleared the marker the install's own next start needs.
- A publication.json placed in the named folder, which the process can
  write, was replayed: it could put a config.yaml back, and a damaged
  one ended the start.

Start-up now takes the path of a process with no install state: no lock,
no journal, no recorded selection, and the named folder is left as it
is. A sealed install still selects the environment its manifest names,
which is part of its tree.

* fix(env): the install-state folder a launcher named is launch-only

A .env line that names HERMES_INSTALL_STATE_DIR replaced the launcher's
value when the file was loaded, after start-up, and every later lock and
marker went to the other folder. The same line made the variable residue
of the launch profile, so a worker started for another profile lost it.

The variable joins LAUNCH_ONLY_ENV_KEYS: no .env, secret source or .env
writer sets it.

* fix(pm): refuse to build an environment no process would select

In a process whose launcher named its state folder, `hermes pm install
--extra` built an environment in that folder and reported it installed.
No process selects an environment recorded there. `hermes pm repair` did
the same, and counted a failed attempt against the install's marker.

Both entries of the venv sync (pm.client, pm.install) and the explicit
repair now refuse first and say why.

* docs(reference): what a named install-state folder does

The row for HERMES_INSTALL_STATE_DIR says what start-up leaves alone,
which commands are refused, that a sealed install keeps the environment
it ships, that the variable is launch-only, and that the launcher keeps
the interpreter's environment in place while the process runs.
2026-11-24 02:49:55 -05:00
..
…
…
…

Website

This website is built using Docusaurus, a modern static website generator.

Reading the docs on GitHub? The Markdown under docs/ is authored for the rendered site at https://hermes-agent.nousresearch.com/docs/. Cross-page links are relative Markdown paths, so they follow through on GitHub's file viewer too. Every page on the site has an Edit this page link that opens the source file here.

  • Link to another page with a relative Markdown path, anchors included: [Profiles](../user-guide/profiles.md), [Bundles](../user-guide/features/skills.md#skill-bundles). Docusaurus turns the file path into the page route; GitHub follows the same path. Site routes (/user-guide/profiles, /docs/user-guide/profiles) only work on the rendered site — GitHub resolves them as repository paths and 404s, and the /docs/ form also emits /docs/zh-Hans/docs/... 404s in the zh-Hans build because baseUrl is already /docs/.
  • python3 website/scripts/check_doc_links.py fails on any route-style link in hand-authored pages (EN and the zh-Hans mirror); --fix rewrites them. It runs in the Docs Site Checks workflow. Generated pages (user-guide/skills/{bundled,optional}, reference/*skills-catalog.md) are produced by scripts/generate-skill-docs.py, which emits the same relative form.
  • Pin {#anchor} on cross-linked headings so the zh-Hans mirror keeps the same id.

Installation

yarn

Local Development

yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Using SSH:

USE_SSH=true yarn deploy

Not using SSH:

GIT_USER=<Your GitHub username> yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.

Diagram Linting

CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.