gateway-classic-cli.md said "One-shot stdout contains only the final reply". A live
`hermes chat -q` on r9-base (fake HOME, loopback model) prints the reply followed by
main's `Resume this session with: hermes --resume <id>` block, and a `--resume <id> -q`
first replays the stored history; only `-Q` prints the reply alone. The section's own
Launch options paragraph already documents the resume block, so the two lines contradicted
each other. Exit 3 is also what `--resume <id> -q` returns after a gateway crash mid-turn
(live kill -9 probe), and the doc now names `hermes sessions discard <id> --yes` there.
Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5470880976
(cherry picked from commit 17c6c67c627d0e76cc676889f2d4dda957196810)
Reviewers asked which commands each local client can run on the shared gateway; the only
answer was reading five code paths. scripts/gen_gateway_command_parity.py walks
COMMAND_REGISTRY (103 commands) and records, from the code itself:
- the gateway's slash.exec verdict for a local session (gateway/session_commands.py
command_verdict: read / control / refused, with the read-only argument forms)
- the classic CLI view's route (hermes_cli/gateway_chat_commands.py VIEW_ROUTES)
- Ink's handler (canonical route / local / RPCs; a session-namespace RPC the authority does not
serve is marked broken, other unserved RPCs reach the legacy sidecar)
- Desktop's surface (local spec table + the registry's desktop= dump; rpc specs fall back to
slash.exec on -32601)
- ACP (slash_mutation)
- a note: toggles are "port: per-session setting", plus why handled-but-not-read commands
(/agents /platform /sessions /debug /curator ...) are not local reads
website/docs/developer-guide/gateway-command-parity.md is the output (linked from the classic
CLI refusal line); tests/hermes_cli/test_gateway_command_parity.py fails when any verdict changes
without regenerating it. The classic CLI doc now lists the commands and flags this round added.
Review: https://github.com/NousResearch/hermes-agent/pull/106742#issuecomment-6073624820
(cherry picked from commit 2005bfc30683326b1216eebd2fed2d7c7768e630)
The developer guides still listed skills, checkpoints, YOLO, hook acceptance,
pass-session-id, safe mode, ignored rules/user config, title selection,
create-if-missing, usage reports and API credentials as refused by `hermes chat`,
and said other slash commands reject. At this head gateway_chat forwards all of
those as frozen creation policy (`_POLICY`, advertised by runtime.describe from
session_policy.CREATE_FIELDS), and the view dispatches /discard, /branch, /model,
/compress (session.mutate) and /yolo (config.set). Probe
(lanes/docs/probe_chat_flags.py, real parser + validate_options): 13 accepted,
only -w, --image, --run-budget, -v, --no-restore-cwd, bare -c, --resume latest
and a nameless --create-if-missing refuse.
- gateway-classic-cli.md: accepted vs refused table with the reason and
replacement per refused flag; slash surface; resume may repeat creation flags.
- user-guide/cli.md: same refusal list and frozen-at-creation list; /yolo.
- gateway-local-sessions.md: all six sources; the full CREATE_FIELDS launch
contract instead of "still return invalid_params"; runtime.describe shape.
- session-storage.md: the gateway is the only canonical session writer; the four
runtime-ledger tables (ON DELETE RESTRICT, unknown never replayed) and why
`sessions recover` excludes them.
Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5458083694
Review: https://github.com/NousResearch/hermes-agent/pull/106742#pullrequestreview-5462648005