hermes chat -q now stays interactive: TTY prompts seed a live session, submitted literally (Omarchy prompted launches) - #97121
Merged
Conversation
Contributor
૮ >ﻌ< ა ci reviewran on 07330bb — feat(cli/tui): -q now seeds a live interactive session; prom
|
…t literally On a real TTY, `hermes chat -q "…"` (and `--tui -q`) now starts a normal interactive session with the prompt submitted literally as the first turn — no slash-command routing, no '!' shell dispatch, no $(...) interpolation, no file-drop rewriting — matching how other coding agents handle seeded launches (Omarchy prompted agent terminals, omacom/omarchy#8705). Legacy answer-and-exit is preserved everywhere automation depends on it: - new `hermes chat --oneshot` flag (distinct dest from top-level -z) - -Q/--quiet machine-readable contract - any non-TTY stdio (kanban workers, cron, pipes, A2A) - top-level `hermes -z` unchanged CLI: seeded prompt rides a _SeededQueryMessage sentinel through process_loop, which skips the slash/!/file-drop dispatchers for that one message. TUI: STARTUP_QUERY submits via a new literal path (submitLiteral) that bypasses dispatchSubmission and the input.detect_drop rewrite.
teknium1
force-pushed
the
feat/seeded-interactive-query
branch
from
August 28, 2026 12:10
cb511b4 to
07330bb
Compare
This was referenced Aug 28, 2026
19 tasks
This was referenced Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hermes chat -q "…"on a real TTY now seeds a live interactive session with the prompt submitted literally as the first turn — instead of answering and exiting — in both the classic CLI and the TUI. This gives OS launchers and desktop integrations (Omarchy's prompted agent terminals, omacom/omarchy#8705) the "start interactive, seeded with this prompt" mode other coding agents have, without the oneshot→usage-file→resume workaround they were about to ship.Literal means literal: the seeded prompt is never parsed as a slash command,
!shell escape,$(...)interpolation, or file-drop — it goes straight to the model, matching--oneshot's existing semantics.Changes
cli.py: TTY-q/--imageinvocations route intorun()with a_SeededQueryMessagesentinel;process_loopskips slash/!/file-drop dispatch for that one message. New_should_seed_interactive()gate.hermes_cli/_parser.py: newhermes chat --oneshotflag (destoneshot_exit, distinct from top-level-z/--oneshot PROMPTwhose dispatch sites pass the value as the prompt) for the legacy answer-and-exit behavior.ui-tui:STARTUP_QUERYnow submits through a newsubmitLiteralpath (useSubmission→submitPrompt(..., { skipDetectDrop: true })) that bypassesdispatchSubmissionand theinput.detect_droprewrite.website/docs/reference/cli-commands.mdchat-options table + examples updated.tests/hermes_cli/test_seeded_interactive_query.py(13 cases) + 2 new vitest cases insubmissionCore.test.ts.Legacy behavior preserved
hermes chat --oneshot -q-Q/--quiethermes -z "…"Validation
chat -q "PONG"(tmux TTY)chat -q '!echo INJECTED'chat -q '/help'--tui -q '!echo INJECTED'--tui -q '/help …'chat -qpiped (non-TTY)chat --oneshot -qon TTYUnit: 22 passed (
tests/hermes_cli/…), full ui-tui vitest suite 1370 passed,tsc --noEmitclean, ruff clean.Infographic