A missing name hides the Hermes profile create flag rejection

John Burns

Two forms of the same flag did not fail the same way. hermes profile create --no-credentials, with no profile name, exited 2 and asked for profile_name. The error did not say the flag was unknown. hermes profile create --no-credentials default, and the same tokens with default first, also exited 2, but the line was unrecognized arguments: --no-credentials. The built-in refusal for the name default never printed.

That split is the check before a setup job treats a missing-name error as proof that the credential flags on the current profiles page are implemented. An exit 1 from a disposable home is not that check either. On this host that exit stops in dependency preparation and never parses the flag.

The binary

The binary was Hermes Agent v0.22.5+471.g5894e75, commit 5894e750c3db, on Linux x86_64, on 28 November 2026. hermes --version on the account home printed that line and also said an update was available. This run did not take the update. The profiles page fetched the same morning is therefore not a description of this binary until --help agrees with it. The create parser in the install tree at that commit does not add --no-credentials or --isolated-auth. The exits below are what this binary printed.

The account gateway was already running. Nothing in the probe used hermes profile use, and no create was given a new profile name. --clone was not used. The account profiles directory listing and its modification time were the same after the last command as before the first. The gateway service stayed active, and its main process id did not change. No wrapper named default appeared on PATH.

g++ was installed and printed g++ (Debian 14.2.0-19) 14.2.0. clang++ was not on PATH. That compiler gap matters only for the disposable-home case. The account-home parser does not need it.

Help does not list the flags

On the account home, hermes profile create --help exited 0. The options were --clone, --clone-all, --clone-from, --clone-channels, --sync-imports, --no-alias, --no-skills, and --description. --no-credentials and --isolated-auth were not in the list. They were also absent from hermes --help.

The same help, with HERMES_HOME pointed at a new directory under the account .hermes tree, also exited 0 and printed the same options. That invocation was not a pure read. The new directory gained empty sessions, cron, memories, skills, hooks, and pairing directories, plus cache and log directories, and a SOUL.md of 667 bytes. It did not gain profiles/, config.yaml, or .env. The skills directory contained no SKILL.md.

The profiles page says Hermes treats a directory under profiles/ as a profile only when it carries an identity file such as config.yaml, .env, SOUL.md, profile.yaml, auth.json, or state.db. This skeleton had SOUL.md, and it was not under profiles/. Account profile list did not grow a row. The useful fact for the flag check is narrower. Help reached the parser. The two flags were still absent. A help probe on a fresh directory under the account home still writes a skeleton, so use a disposable directory and delete it. Do not read those files as a created profile.

A missing name hides the flag

With HERMES_HOME unset, three commands each exited 2. Each printed the create usage, then one error:

hermes profile create: error: the following arguments are required: profile_name

The commands were:

hermes profile create --no-credentials
hermes profile create --isolated-auth
hermes profile create --not-a-real-flag

None of the error text named the flag. --not-a-real-flag is not on the help page and not on the profiles page. It produced the same exit code and the same sentence as the two names the profiles page uses for credential isolation. A missing-name error does not mean the flag was recognized. It means this parser reported the missing positional and did not mention the extra option.

That is the misread a script will make if it checks the flag by invoking it with no name and treats exit 2 plus profile_name as “the flag exists, supply a name.” The next section is what supplying a name actually does on this binary.

A name makes the rejection visible

The reserved name default is the control, because this binary refuses to create it before any profile directory is written. Six commands each exited 2. Standard error was the top-level usage, then an unrecognized-argument line. The flag sat before default in three of them and after default in the other three:

hermes profile create --no-credentials default
hermes profile create default --no-credentials
hermes profile create --isolated-auth default
hermes profile create default --isolated-auth
hermes profile create --not-a-real-flag default
hermes profile create default --not-a-real-flag

The error lines were:

hermes: error: unrecognized arguments: --no-credentials
hermes: error: unrecognized arguments: --isolated-auth
hermes: error: unrecognized arguments: --not-a-real-flag

Each pair matched. The documented flag names and the nonsense flag were rejected the same way, in both positions. None of the six printed the built-in name refusal. None created a profile directory. None wrote a wrapper.

The control, with no extra flag, was different:

hermes profile create default

That command exited 1 and printed:

Error: Cannot create a profile named 'default' — it is the built-in profile (~/.hermes).

The flagged forms never reached that sentence. When a name is present, the unknown flag is rejected by the top-level parser before the create path runs. It is not applied. It is not stored. Exit 2 here is not the exit 1 of the name refusal, and it is not a successful create that happened to mention the flag.

Do not answer the no-name error by appending a real profile name and expecting a credential-free profile. On this binary that argv is rejected. A later binary might add the flags. --help on the binary you will run is the list that counts, not the missing-name behavior recorded here.

The practical difference is which parser speaks. No name: the create usage, exit 2, required profile_name, flag unnamed. Name present: the top-level usage, exit 2, unrecognized arguments, flag named. Name present and no extra flag, using default: exit 1, the built-in refusal, and still no directory. A job that only branches on exit 2 will treat the hidden-flag case and the visible rejection as the same failure. They are not. Read the error line.

An outside home never parses the flag

The obvious way to trial this without touching the account profiles directory is to point HERMES_HOME at a new directory outside the account .hermes tree. The install treats that path as its own data root. On this host the subcommand never starts.

HERMES_HOME was set to a new directory outside that tree. hermes profile create --no-credentials labflag exited 1. Standard error began with the line that Hermes was preparing dependencies for this data root, and that the checkout’s updates belong to the account home. It then failed a uv sync. The package was python-olm==3.2.16. The hint said it was included because hermes-agent[matrix] depends on mautrix[encryption], which depends on python-olm. The build invoked clang++. The error was No such file or directory: 'clang++'. g++ was on PATH. clang++ was not. The closing lines said the source-update completion failed, and then:

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

A later hermes --version on that same home exited 1 and printed only that committed-environment sentence. It did not print the version line the account home prints. hermes profile create --isolated-auth, a create with a new name and --no-alias, and the same create with --no-skills, also exited 1 inside that dependency preparation. No profiles/ directory appeared under the outside home. The account profiles listing did not change.

An exit 1 from a fresh outside home is not a flag rejection and not a profile-name error. It is a data-root dependency sync that this host cannot finish without clang++, even though g++ is installed. hermes pm repair was not run. Installing a compiler was not tried. This note does not claim that clang++ would make the docs’ flags appear. The account-home parser already rejects those flags when a name is present, and that is the parser a normal create uses.

The outside home also shows why a disposable HERMES_HOME is not a free isolation switch on this install. The first command tries to commit a dependency environment for the new root, borrowing the checkout that belongs to the account home. Until that sync succeeds, --version itself is the repair sentence. A script that sets HERMES_HOME to a scratch directory and then reads the create exit will record a compiler failure and learn nothing about --no-credentials.

What the profiles page says

The blank-profile section, fetched from the profiles page on 28 November 2026, says hermes profile create mybot seeds bundled skills, takes the current profile’s API keys with bot tokens and allowlists left out, takes the model, and shares the default profile’s logins. It then names two flags this binary’s help does not list. --isolated-auth is described as copying auth.json once instead of sharing it. --no-credentials is described as copying no keys, logins, or model, with setup run afterwards.

This run did not complete a create, so it does not measure whether a blank create on a newer binary copies keys, shares auth.json, or seeds skills. It measures the gate in front of that question. On this binary the flag names are not accepted when a profile name is present, and their absence is hidden when the name is omitted. The install’s create parser adds the eight options help printed. It does not add the two the page names. hermes --version said an update was available. A newer checkout might grow the flags. Until --help on the binary you will run lists them, do not pass them, and do not treat the page as the option list.

The page also says that when a gateway is running, profile create asks that gateway to make the profile. That is a reason to prove the flag is rejected before you use a real name on a host whose gateway is already up. The default probe does that. It fails in the parser. It does not ask the gateway to create default. The account profiles directory was unchanged after it.

Verification

On the home where the profile will be created, run hermes profile create --help and look for the flag before you pass it. If it is absent, a no-name invocation will still exit 2 and ask for profile_name. That sentence is also what a nonsense flag produces. Pass the reserved name default with the flag, once before the name and once after it. Exit 2 and unrecognized arguments means the flag is not implemented. Exit 1 and the built-in name refusal, with no extra flag, is the control that the create path is reachable and that default is still refused before a directory is written.

Do not point HERMES_HOME at a fresh directory outside the account home and read that exit 1 as either result. On this host that path stops while preparing dependencies, asks for clang++, and leaves no profile. A directory under the account .hermes tree will reach help, and it will also write a skeleton. Delete that directory when the help text is recorded. It is not a profile, and it is not evidence that the flags exist.

If help on your binary lists --no-credentials or --isolated-auth, this note does not describe that binary. Read the flag’s help text, then test it against default before you use a real name. A missing-name error is still not the acceptance test.

Sources

  • Hermes Agent v0.22.5+471.g5894e75, commit 5894e750c3db, hermes profile create --help, and the create invocations recorded on this host on 28 November 2026
  • Profiles page, blank-profile section, fetched 28 November 2026: https://hermes-agent.nousresearch.com/docs/user-guide/profiles
  • Install-tree create parser at that commit: hermes_cli/subcommands/profile.py