A Hermes fallback list exits 0, and check is not a command

John Burns

The chain that printed looked finished. hermes fallback list exited 0 and named three routes: probe-model-a via openrouter, probe-alias via opencode-zen, and probe-legacy via custom, with https://fallback.example in brackets on the third line. The file that command read was larger than that chain. It also held an openrouter entry with no model, a model with no provider, a second probe-alias whose provider was opencode, and a mapping that was not a provider entry at all. None of those four appeared in the output. There was no dropped-count line.

The same binary rejected the command the documentation page names for this question. hermes fallback check exited 2. Standard output was empty. Standard error was two lines:

hermes fallback: 'check' is not a `hermes fallback` command.
Run `hermes fallback --help` to see all commands.

The page fetched the same night says that command reports whether each entry would work, without starting an agent session, and that it exits 1 when any entry is not ready. This process never opened the file for that report. Exit 2 is the parser refusing the word check. It is not the unreadiness result the page describes.

A job that accepts exit 0 from list will keep a file whose incomplete rows are invisible. A job that calls check and treats any non-zero exit as “an entry is not ready” will treat a missing subcommand as a failed route. Neither reading is the readiness report. The file is the record. The list is the subset this commit kept.

The binary and the file

The binary was Hermes Agent v0.22.5+471.g5894e75, dated in the version line as 2026.9.24, local commit 5894e750c3db, on Linux x86_64, on 30 November 2026. hermes --version also printed Python 3.14.9, OpenAI SDK 2.54.0, and Update available — run 'hermes update'. This run did not update. The commit checked out under the install was 5894e750c3dba980d43b25aa29e3958149ba2c61. The fallback command module in that tree defines list, add, remove, and clear. It does not define check.

The list run used a new HERMES_HOME outside the install data root. hermes config path printed that home’s config.yaml and exited 0, so this subcommand was reading the disposable file and not the account config. The account config.yaml kept the modification time recorded before the first command. No hermes fallback add, remove, or clear was run. Those write, and add opens the same picker as hermes model. No agent session was started. No inference request was sent. The names in the file are markers, not credentials.

The disposable file set model.provider to ollama and model.default to probe-primary. Under fallback_providers it listed, in order, a complete openrouter / probe-model-a entry, an openrouter entry with no model, an entry whose only field was model: probe-model-missing-provider, a complete opencode-zen / probe-alias entry, a complete opencode / probe-alias entry, and a mapping whose only key was not_a_dict. A legacy fallback_model mapping sat beside the list. Its provider was custom, its model was probe-legacy, and its base_url was https://fallback.example.

That shape is the one the fallback page talks about, and it is also the shape the page does not show a list transcript for. The page says each entry requires both provider and model, and that entries missing either field are ignored. It says fallback_providers takes priority over the legacy fallback_model key when both are set. It says hermes fallback is the interactive manager, and that check verifies the chain. The installed help text is narrower. It lists list, ls, add, remove, rm, and clear. The list line says it is the default when no subcommand is given. check is not in that list.

What the list kept

With that file in place, hermes fallback list exited 0. The text was:

  Primary:   probe-primary  (via ollama)

  Fallback chain (3 entries):
    1. probe-model-a  (via openrouter)
    2. probe-alias  (via opencode-zen)
    3. probe-legacy  (via custom)  [https://fallback.example]

  Tried in order when the primary fails (rate-limit, 5xx, connection errors).
  Docs: https://hermes-agent.nousresearch.com/docs/user-guide/features/fallback-providers

hermes fallback, with no subcommand, printed the same block and also exited 0. It did not open a picker. The help line is the accurate description of this commit: no subcommand means list. The page’s “interactive manager” sentence is the add path, which this run did not take.

The three printed routes are real parses. They are not the file. The openrouter row with no model was ignored. The row with a model and no provider was ignored. The not_a_dict mapping was ignored. The second probe-alias, provider opencode, was also absent. What remained of that pair was opencode-zen, the earlier of the two complete rows. The list did not say an alias had been collapsed, and it did not say which spelling was dropped. A reader who greps the output for opencode and not opencode-zen will conclude the alias is missing. It was present in the file. It was the duplicate, so it did not get a line.

The legacy key was not ignored because the list key was also set. probe-legacy was entry 3. The brackets held the base URL. Nothing in the line said the route came from fallback_model rather than fallback_providers. “Takes priority,” on this run, meant the list-key routes were printed first and a non-duplicate legacy route was appended. It did not mean the legacy key was unused. A second disposable home held only the legacy mapping, with model probe-legacy-only and the same base URL. hermes fallback list there exited 0 and printed one entry, that legacy route, again with the URL in brackets. The old key is still a chain when it is the only key. It is also still a chain when the new key is present, unless the route is a duplicate of one already kept. This run did not place a duplicate in the legacy key, so that skip was not measured. Do not infer it from the alias line. The alias pair lived inside fallback_providers.

After both list runs, the first file’s bytes were the bytes that had been written. list did not rewrite the incomplete rows out of the file. The silence is only in the print. The next process that reads the YAML still sees the rows the chain omitted. A later add, which this run did not execute, is the command that persists a chain and drops the legacy key in the writer. Judging the file by the list, and then leaving the file in place, leaves the ignored rows for that writer to meet later.

The closing lines of the list are easy to over-read. “Tried in order when the primary fails” describes when a session would walk the printed chain. This run did not fail a primary, and it did not walk the chain. The rate-limit, 5xx, and connection-error list is the help sentence, not an observed switch. The docs URL is printed even when the file contains rows the list dropped. Following that URL does not make check exist on this commit.

The command the page names

On the account install, with no HERMES_HOME override, hermes fallback check exited 2 and wrote nothing to standard output. Standard error was only the two refusal lines. hermes fallback check --live on the disposable home also exited 2, with the same refusal after other stderr noise described below. --live was not parsed as a flag of a check command. No request was sent. The page’s description of a static credential resolve, a live completion, a model_mismatch status, and exit 1 is a description of a command this help text does not contain.

That split matters for a cron gate. The page says exit 1 means some entry is not ready, and exit 0 means the checked entries resolved. This binary’s exit 2 means the subcommand is not in the parser. A wrapper that maps every non-zero exit to “fallback not ready” will page a human for a missing verb. A wrapper that ignores stderr and only reads stdout will see an empty success-shaped stream and may treat the refusal as a quiet no-op. Read the two lines. If they name check as not a command, stop. Do not retry with --live. Do not interpret the exit as a verdict on openrouter or custom.

The installed help text points at the same docs URL and then lists the four verbs. The page, fetched 30 November 2026, still documents check in the configuration section and again under “Checking the chain,” including hermes fallback check --live and hermes fallback check --live --json. Those flags are not on this commit’s fallback parser. The version line’s update notice does not identify what the update contains. This run did not install a newer tree, and it does not claim that a newer tree adds check. It claims that the page and this commit disagree, and that the disagreement is visible before any model call.

The source of the refusal is the parser, not a later handler. The command module’s own unknown-subcommand path would print Unknown fallback subcommand and Use one of: list, add, remove, clear. That text did not appear. The text that appeared is the parser’s, which means check was rejected before cmd_fallback ran and before load_config ran for that invocation. A missing verb does not prove the file is valid. It also does not prove the file was read.

A new data root still runs the command

Pointing HERMES_HOME at a new directory outside the install data root did not stop list or the refusal. Standard error on those runs began with hermes: preparing dependencies for this data root and then a failed install of Python dependencies. The build that failed was python-olm 3.2.16. The compiler line ended with No such file or directory: 'clang++'. The hint said python-olm was pulled in because the matrix extra depends on mautrix[encryption]. After that failure the process printed that it was running with the previous dependencies, and then it ran the fallback command.

list still exited 0. check still exited 2. The install failure is not the fallback result. A pipeline that fails on any stderr containing failed will abort a list that actually succeeded, and it may discard the refusal lines that sit after the install paragraph. If you need the command result, read the exit code and the last fallback line, not the first failed in the dependency log. This run did not install clang++, did not retry the matrix extra, and does not describe a working Matrix setup. The dependency paragraph is a hazard on the way to the fallback text. It is not the subject of the check.

The account-home check, with no HERMES_HOME set, did not print that install paragraph. Use that form when you only need to know whether the verb exists. Use a disposable home when you need to see which rows list drops. Do not point the disposable home at the account Hermes directory. This run’s account config modification time was unchanged after the account-home check and after the disposable-home lists.

Verify the list against the file

Write a disposable config.yaml in a new directory and export HERMES_HOME to that directory. Put a complete entry, an entry missing model, an entry missing provider, two complete entries that differ only by an alias you believe is the same backend, and a non-mapping. If you also want the legacy key measured, add a fallback_model mapping whose provider, model, and base URL are not already in the list. Run hermes config path first. The printed path must be the disposable file. If it is not, stop. Do not continue against the account file.

Run hermes fallback list and hermes fallback with no subcommand. Expect exit 0 from both, and expect the same chain. Expect the primary line to name model.default and model.provider. Expect a complete list-key entry to appear. Expect an incomplete entry to be absent, with no sentence naming it. Expect one line for an alias pair, not two, and expect that line to use the spelling that appeared first. Expect a non-duplicate legacy route at the end, with the base URL in brackets, and no label that says legacy. Then open the file. The ignored rows should still be there. If list rewrote them away, that is a different result from this commit, and the rest of this note does not apply.

Run hermes fallback check in the account home, or in the disposable home if you can tolerate the dependency paragraph. Expect exit 2, empty stdout, and the two-line refusal. Do not expect exit 1. Do not expect a JSON report. Do not pass --live and describe a provider error. On this commit the flag is not reached. If the refusal is absent and a chain report appears, you are not on 5894e750c3db, and you should read that report instead of this note.

Do not run add, remove, or clear as part of the read. add selects a provider and writes. clear asks for confirmation and then empties the chain. This check is a read of a file and a parser. It does not show that a later session will switch to probe-model-a when the primary fails. It shows which rows this commit will print, which rows it will omit without comment, and that the documented check verb is not on the binary that printed the docs URL.

Sources

  • Hermes Agent v0.22.5+471.g5894e75, hermes --version, Linux x86_64, 30 November 2026. Local commit 5894e750c3dba980d43b25aa29e3958149ba2c61. Python 3.14.9. OpenAI SDK 2.54.0. The version line also said an update was available. This run did not update.
  • hermes fallback --help on that binary. Subcommands are list, ls, add, remove, rm, and clear. The list help says it is the default when no subcommand is given. check is absent.
  • hermes fallback check on the account home, no HERMES_HOME override, 30 November 2026. Exit 2. Stdout empty. Stderr was the two-line refusal. The account config file’s modification time did not change.
  • Disposable HERMES_HOME runs the same night: hermes config path printed the disposable config.yaml; hermes fallback list and bare hermes fallback exited 0 and printed the three-entry chain quoted above; a second home with only fallback_model printed that one legacy route; hermes fallback check --live exited 2 with the same refusal. The disposable file was unchanged after list. No add, remove, clear, login, or model turn was run.
  • Installed hermes_cli/fallback_cmd.py and hermes_cli/fallback_config.py at commit 5894e750c3db. The command table has no check handler. get_fallback_chain skips entries missing provider or model, then appends legacy fallback_model entries whose provider, model, and base URL are not already present.
  • Fallback providers, fetched 30 November 2026. The page describes hermes fallback as the interactive manager, documents hermes fallback check and hermes fallback check --live, says the command exits 1 when any entry is not ready, says entries missing provider or model are ignored, and says fallback_providers takes priority over fallback_model when both are set.