A Hermes home under .hermes does not shrink the gateway list

John Burns

hermes cron list and hermes gateway list were given the same HERMES_HOME. The directory was new, empty, and under the account ~/.hermes. Cron list exited 0 and said there were no scheduled jobs in profile custom. Gateway list also exited 0. It printed the same profile names as a second run with HERMES_HOME unset, and every running row carried the same PID. The new directory was not a row.

That split is the check before a script treats a fleet listing as proof that a disposable home is alone. The cron line is the home you set. The gateway list is the account root. Exit 0 does not choose between them.

What this run compared

The binary was Hermes Agent v0.22.5+471.g5894e75, release line 2026.9.24, commit 5894e750c3db, on Linux x86_64, on 25 November 2026. hermes --version printed that line and also said an update was available. This run did not take the update. The launcher script’s SHA-256 was 35d9937c0e3f6559bfbc7347d920a64f6b3c6a63c85481205fe4be1d9458b943. The executable it starts, under the install tree, hashed to 824fe18f85229b9e187ebe742d7ac24fdc89339ad8fe3244bac7d90f815f1763.

The comparison home was a directory created for the run under the account cache. It was not a named profile, and it was not ~/.hermes itself. No hermes gateway stop, hermes pause, hermes update, or hermes pm repair was run. No messaging token was printed. No cron job was created or edited. Session pins that a scheduled run injects were unset in the comparison shell so the result was not a label left by the parent job.

Two invocations were saved for each command, then compared as files. One set HERMES_HOME to the new directory. The other unset it. Standard error was empty on both gateway lists, both cron lists, both profile lists, and both status runs. The webhook probe is the exception, and it is below.

hermes gateway list --help on this binary is only the usage line and -h. The parent help is the sentence that describes the subcommand: list all profiles and their gateway status. It does not mention HERMES_HOME. It does not say a path under ~/.hermes is folded back to the account root.

The list that stayed put

Both gateway lists exited 0. The name sequence was the same. Each running row used a check mark, and every one of those rows named one PID. The unset run marked default with (current). The override run printed the same default row without that marker, and it marked no other row current. The override directory’s name did not appear. The word custom did not appear.

(current) is not a row for the directory you exported. Its absence is the opposite of a private fleet. The override run still listed the account profiles, and it declined to call any of them current. A script that greps for the job home in that output will see nothing and can mistake silence for isolation. The names that are present are the account names. Silence about the job home is how you know the list did not follow the variable.

hermes profile list told the same story in a table. Both runs exited 0 and were the same length. The unset run put the current-profile diamond on default. The override run printed the same rows and left the diamond off. Gateway state in that table was running for the rows the gateway list had marked running. The table did not grow a row for the new directory.

The profile page, fetched the same morning, says a profile is a separate Hermes home, and that a directory under ~/.hermes/profiles/ is recognized only when it carries an identity file such as config.yaml, .env, SOUL.md, profile.yaml, auth.json, or state.db. A bare directory left by logging or cron is ignored. That rule explains why a scratch directory is not itself a named profile. It does not explain why listing gateways from that scratch directory reprints the account fleet. The scratch directory was not offered as a profile name. The command still answered with the account’s profiles.

The list that moved

Cron list is the command that followed the variable.

With HERMES_HOME unset, the header named profile default and the body was not empty. This article does not reproduce that body. It contains job names, delivery targets, and identifiers that are not part of the home-resolution question.

With HERMES_HOME set to the new directory, the same binary exited 0 and printed:

No scheduled jobs in profile 'custom'.
Create one with 'hermes cron create ...' or the /cron command in chat.

The two files differed. The override did not say profile default. It did not say the account jobs were absent because of a filter. It said the profile under inspection was custom, and that profile had no jobs. That is the name get_active_profile_name in this install returns when HERMES_HOME is neither the native home nor a single path segment under the named-profile directory. The scratch path matched that third case. Cron list used it. Gateway list did not.

Webhook list used the override path and still failed closed about the platform. It exited 1. The setup text told the operator to add a webhook block to a config.yaml under the new directory, and to set WEBHOOK_ENABLED in a .env in that same directory. The path in the message was the directory this run had exported, written with a tilde in place of the account home. Standard error was empty. No subscription file was created, because the platform was not enabled and the command returned before subscribe. The useful fact is the path. A command that is willing to name the override directory is not the command that listed the gateways.

Do not treat the webhook exit as a fleet result. Exit 1 here means the webhook platform is off in the home the command resolved. It does not mean the account gateway is down. Gateway status, next, is the command that separates those two claims.

Status agrees with both sentences

hermes gateway status with the override exited 0 and began:

✗ Gateway is not running

It then printed the three start hints: hermes gateway run, hermes gateway install, and the system-install line. Under that, it printed Other profiles: and a check mark for default with a PID. The PID matched the PID on the gateway list rows. The override directory was not in that footer.

The unset run also exited 0. It did not print Gateway is not running. It printed the user service as active and running, with the service name hermes-gateway.service. This article does not copy the unit’s memory, cgroup, or command line. Those lines describe the host process, not the home-resolution rule. The comparison that matters is the first claim. The override status says the home you set has no gateway. The account status says the account service is running. Both can be true. The footer is what joins them: the process you did not ask about is still listed.

A restart script that stops on Gateway is not running will stop in the wrong place if it only exported HERMES_HOME. The account gateway was still the process in the footer. This run did not stop it. After the foreign-home failures below, an unset hermes gateway status still reported that user service active.

What the profile page assigns to the variable

The profiles guide, read the same morning, says profiles use HERMES_HOME. A profile alias sets that variable to ~/.hermes/profiles/<name> before it launches. It says state that goes through get_hermes_home() follows the profile directory: config, sessions, memory, skills, the state database, the gateway PID, logs, and cron jobs. A later bullet is sharper. HERMES_HOME is the profile boundary. It controls Hermes config, .env, memory, sessions, skills, logs, cron jobs, gateway state, and other Hermes data. HOME is the operating-system home. On a host install, Hermes keeps HOME as the real user home so other CLIs keep their credentials. Profile data is isolated by HERMES_HOME, not by changing HOME.

The environment-variable page describes HERMES_HOME as the selector for the configuration and user-data home. A literal ~ or $VAR is expanded. The POSIX default is ~/.hermes. The Docker image uses /opt/data. Profile or runtime context can select a more specific home. Neither page says that a more specific home under ~/.hermes is ignored by hermes gateway list.

The measured commands divide that paragraph. Cron list and the webhook path follow the variable. Gateway list does not, when the variable points inside the native home. Status follows it in the first paragraph and does not follow it in the footer. The profile table follows it only for the current-row marker.

The installed profile-root helper says why the list is wide. Its docstring says the named-profile directory is anchored to the hermes root, not to the current HERMES_HOME, so that a profile alias can see every profile. The root helper in the same tree returns the native ~/.hermes when the exported path is under that native home. A scratch directory under ~/.hermes/cache is under that home. Exporting it changes get_hermes_home() for cron. It does not change the root the fleet list reads. That is why the override run and the unset run named the same profiles.

This is not the same fact as “a bare directory is not a profile.” The bare-directory rule would omit the scratch path from a list of profile names. It would not, by itself, fill that list with the account’s other profiles. The anchor does that fill. A job that only checks whether its own directory was skipped has not checked which root was listed.

A foreign home never reaches the list

The profile page says isolation is HERMES_HOME, not HOME. This run still tried the other move, once, to see whether a disposable account home would make gateway list print a private fleet. HOME was pointed at a new directory outside the account ~/.hermes. HERMES_HOME was a child of that disposable ~/.hermes. The process environment was otherwise empty apart from PATH and LANG.

The list did not print. The first line was:

hermes: preparing dependencies for this data root (the checkout's updates belong to <account-root>)...

The launcher then tried to install a dependency environment for that data root. The install failed while building python-olm 3.2.16. The missing tool was clang++:

error: [Errno 2] No such file or directory: 'clang++'

The hint named the chain that pulled the package in: hermes-agent[matrix] depends on mautrix[encryption], which depends on python-olm. The command exited 1. The closing lines were:

hermes: no dependency environment is committed for this install; run `hermes pm repair`

The same shape repeated for profile list, cron list, and a later gateway status on that disposable root. After the first failed sync, a following status invocation skipped the long build and exited 1 on the repair line alone. No invocation printed Gateways:. No invocation printed the synthetic profile names that had been placed under the disposable root.

Do not run hermes pm repair because that line appeared. The line is about the disposable data root, which had no committed environment. It is not a report that the account install is missing one. This run did not repair either tree. The account gateway status, taken afterward with HERMES_HOME unset, still showed the user service active. A repair aimed at the account install would be a different change, and it was not required to read the account list.

The borrowed-launch comment in this install says a temporary HERMES_HOME still gets an environment of its own, and that the launch must not rebind the shared launchers or rebuild products another root is serving. The failure here is the first half of that rule meeting a host without clang++. The private list, which would have been the point of moving HOME, never started. Moving HOME is not a quieter way to read a fleet. On this binary it is a dependency sync, and a failed sync is exit 1 with no rows.

Verification

Use a new directory under the account ~/.hermes, not a moved HOME, and not the live profile you intend to keep. Export that directory as HERMES_HOME for the three reads, then unset the variable and read the list once more:

export HERMES_HOME=<job-home>
hermes gateway list
hermes cron list
hermes gateway status
env -u HERMES_HOME hermes gateway list

On this binary the pass condition is specific. The two gateway lists exit 0 and name the same profiles. The only list difference is (current) on default in the unset run, and no current marker in the override run. Cron list on the override exits 0 and says profile custom has no jobs, unless you have already created jobs in that directory. Status on the override exits 0, says the gateway is not running, and then names default under Other profiles with a PID. The unset status reports the account service. If your override list grows a row for <job-home>, or cron list on that home prints the account jobs, you are not on the split this binary produced. Stop and read the paths before you treat either output as a boundary.

Webhook list is the optional path check. Expect exit 1 and the override directory in the setup text when the webhook platform is not enabled. That confirms the variable was read. It does not confirm the fleet list was scoped. Do not enable the platform on the account home to make this check pass.

Leave HOME as the account home. A disposable HOME on this install exits 1 during dependency preparation and does not list profiles. If that happens, the repair hint belongs to the disposable root. Confirm the account service with an unset hermes gateway status before you change anything else. This run’s account service was still active after the failed preparations.

The listing you can trust for “what is running on this machine” is the unset hermes gateway list, or the override list after you have compared it and seen the same names. The listing you can trust for “what this home contains” is hermes cron list on that home, and the path printed by hermes webhook list. Do not collapse those into one exit code.

Sources

  • Hermes Agent v0.22.5+471.g5894e75 (2026.9.24), local commit 5894e750c3db, Linux x86_64, 25 November 2026. Launcher SHA-256 35d9937c0e3f6559bfbc7347d920a64f6b3c6a63c85481205fe4be1d9458b943. Started executable SHA-256 824fe18f85229b9e187ebe742d7ac24fdc89339ad8fe3244bac7d90f815f1763. hermes --version also reported an update available. The update was not applied. No gateway was stopped, paused, or repaired.
  • Comparison on the account home: HERMES_HOME set to a new directory under the account ~/.hermes, then unset. hermes gateway list exited 0 both ways. The name sequence matched. Every running row shared one PID. The unset list marked default (current). The override list marked no row current and did not name the new directory. hermes profile list exited 0 both ways, same length, diamond on default only in the unset run. hermes cron list with the override exited 0 and printed No scheduled jobs in profile 'custom'. The unset cron list was headed profile default and was not empty. hermes gateway status with the override exited 0, printed Gateway is not running, then Other profiles: and a check mark for default with the same PID. The unset status reported hermes-gateway.service active. hermes webhook list with the override exited 1 and named that override directory in the setup text. Standard error was empty on the list, cron, profile, and status runs.
  • Disposable HOME outside the account ~/.hermes, with HERMES_HOME under that disposable home: hermes gateway list exited 1. The first line said it was preparing dependencies for this data root and named the account checkout as the owner of the updates. The build failed on python-olm 3.2.16 because clang++ was missing. The hint attributed that package to hermes-agent[matrix] through mautrix[encryption]. The close was hermes: no dependency environment is committed for this install; run hermes pm repair. Profile list, cron list, and a later status on that root also exited 1. None printed Gateways:. Repair was not run. A later unset account status still showed the user service active.
  • hermes gateway --help on this binary describes list as listing all profiles and their gateway status. hermes gateway list --help adds no rule about HERMES_HOME.
  • Hermes profiles guide, https://hermes-agent.nousresearch.com/docs/user-guide/profiles, fetched 25 November 2026. It says HERMES_HOME is the profile boundary and that it controls gateway state, cron jobs, and the other Hermes data. It says host isolation is that variable, not a change to HOME. It says a bare directory under ~/.hermes/profiles/ is not a profile.
  • Hermes environment-variable reference, https://hermes-agent.nousresearch.com/docs/reference/environment-variables, fetched 25 November 2026. The HERMES_HOME row says the variable selects the configuration and user-data home, defaults to ~/.hermes on POSIX, and that profile or runtime context can select a more specific home. It does not say a path under that default is ignored by gateway list.
  • Installed hermes_cli/profiles.py docstring for the named-profile root: anchored to the hermes root, not the current HERMES_HOME, so a profile alias can see every profile. Installed hermes_constants.py root helper: a HERMES_HOME under the native home resolves to that native home.