The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
fix(hermes): the device sees clarify again, and a Hermes agent can be forked
Silexperience210570406331445
diff --git a/cli/src/lib/__fixtures__/question-hermes-lock.txt b/cli/src/lib/__fixtures__/question-hermes-lock.txtnew file mode 100644index 000000000..112dfc3eb--- /dev/null+++ b/cli/src/lib/__fixtures__/question-hermes-lock.txt@@ -0,0 +1,24 @@+exactement ces trois choix : Rouge, Vert, Bleu. Ne fais rien d autre.+Initializing agent...+────────────────────────────────────────+++╭─ ☤ Hermes ───────────────────────────────────────────────────────────────────╮+Je vais utiliser l'outil clarify pour vous poser cette question.+╰──────────────────────────────────────────────────────────────────────────────╯+ ┊ ❓ preparing clarify…+╭─ Hermes needs your input ──────────────────────╮+│ 1 questions │+│ ▸ Quelle couleur préférez-vous ? │+│ ❯ 1. Rouge (Recommended) │+│ 2. Vert │+│ 3. Bleu │+│ 4. Other (type your answer) │+╰────────────────────────────────────────────────╯++ ❓ clarify ( 51.4s · ↓ 69 tok)+ ↑/↓ to select, Enter to lock, Tab next question (3548s)+ ☤ laguna-s-2.1:free │ 19.3K/262.1K │ [█░░░░░░░░░] . ─ Use clarify tool to a...+────────────────────────────────────────────────────────────────────────────────+? ❯+────────────────────────────────────────────────────────────────────────────────\ No newline at end of filediff --git a/cli/src/lib/askQuestion.spec.ts b/cli/src/lib/askQuestion.spec.tsindex ab58b4832..c600daef4 100644--- a/cli/src/lib/askQuestion.spec.ts+++ b/cli/src/lib/askQuestion.spec.ts@@ -96,6 +96,17 @@ describe('the Hermes clarify dialog', () => {it('is invisible to the unframed parser — which is why the engine branch exists', () => {expect(parseQuestionPane(fixture('hermes'))).toBeNull()})++ // Real capture from a current Hermes (Sep 2026): clarify now paints its batch panel even for one+ // question — a `N questions` header, the active question behind `▸`, and a footer reading+ // "Enter to lock, Tab next question". With the old footer set the device never saw it at all.+ it('reads the batch panel, whose footer says "Enter to lock"', () => {+ const view = asQuestion(parseEngineQuestionPane('hermes', fixture('hermes-lock')))+ expect(view.question).toBe('Quelle couleur préférez-vous ?')+ expect(view.rows.map((r) => r.number)).toEqual(['1', '2', '3'])+ expect(view.rows.map((r) => r.label)).not.toContain('Other (type your answer)')+ expect(view.typeRow?.number).toBe('4')+ })})describe('the OpenCode question dialog', () => {@@ -1252,6 +1263,7 @@ describe('every captured dialog keeps its requestId', () => {'question-devin.txt': 'q_19a084b7','question-grok.txt': 'q_a5e412d6','question-hermes.txt': 'q_58484dc6',+ 'question-hermes-lock.txt': 'q_d72d9997','question-kilo.txt': 'q_0f7b7b0e','question-multi.txt': 'q_6b6969c5','question-muse.txt': 'q_42c9e375',diff --git a/cli/src/lib/askQuestion.ts b/cli/src/lib/askQuestion.tsindex ae68708f5..962e4f90b 100644--- a/cli/src/lib/askQuestion.ts+++ b/cli/src/lib/askQuestion.ts@@ -602,7 +602,8 @@ function locateQuestionPane(capture: string): FoundDialog | null {const line = lines[i].trim()if (!line) continueif (/[←→]/.test(line) || /^[☐☒✔✓]/.test(line) || /^[─━-]{6,}$/.test(line)) break- question = line+ // Hermes's batch panel marks the active question with `▸`; that marker is chrome, not the question.+ question = line.replace(/^▸\s*/, '')break}diff --git a/cli/src/lib/dialogEnd.ts b/cli/src/lib/dialogEnd.tsindex b71624781..ae950529f 100644--- a/cli/src/lib/dialogEnd.ts+++ b/cli/src/lib/dialogEnd.ts@@ -18,8 +18,10 @@/** A live dialog's footer, the shared reader's anchor (`parseQuestionPane`). Each CLI words its own, and* OpenCode rewords it per screen (`enter submit`, `enter toggle`, `enter confirm`); Codex's- * request_user_input says `enter to submit answer`. */-export const QUESTION_FOOTER_RE = /enter to (select|confirm|submit)|enter\s+(submit|confirm|toggle)/i+ * request_user_input says `enter to submit answer`. Hermes' batch panel says `Enter to lock, Tab next+ * question…` — one question alone still gets that panel, and its footer was read as "no dialog" until+ * `lock` was accepted here. */+export const QUESTION_FOOTER_RE = /enter to (select|confirm|submit|lock)|enter\s+(submit|confirm|toggle)/i/** The key hints a permission dialog prints under its rows: claude `Esc to cancel · Tab to amend`,* Command Code `↑/↓ navigate · enter select · ctrl+e explain`. Proximity to the rows is what makes thisdiff --git a/cli/src/lib/engineLaunch.spec.ts b/cli/src/lib/engineLaunch.spec.tsindex 843d03970..17f068403 100644--- a/cli/src/lib/engineLaunch.spec.ts+++ b/cli/src/lib/engineLaunch.spec.ts@@ -466,6 +466,15 @@ describe('a first prompt on launch', () => {expect(buildEngineCommandArgv('codex', { firstPrompt: PROMPT })).toEqual([engineBin('codex'), PROMPT])})+ it('hands hermes the text as the first turn of an interactive chat, after a resume', () => {+ // `hermes chat -q` on a TTY seeds the session and keeps the TUI open (measured on a live pane).+ expect(buildEngineCommandArgv('hermes', { firstPrompt: PROMPT }))+ .toEqual([engineBin('hermes'), 'chat', '-q', PROMPT])+ // Global flags stay ahead of the subcommand, where hermes's parser reads them.+ expect(buildEngineCommandArgv('hermes', { resumeSessionId: 'abc', firstPrompt: PROMPT }))+ .toEqual([engineBin('hermes'), '--resume', 'abc', 'chat', '-q', PROMPT])+ })+it('puts the text LAST, after every flag, so a positional is never read as an option value', () => {expect(buildEngineCommandArgv('claude', { firstPrompt: PROMPT, bypassPermission: true, extraArgs: ['--allowedTools=WebSearch'] })).toEqual([engineBin('claude'), '--permission-mode', 'auto', '--allowedTools=WebSearch', PROMPT])diff --git a/cli/src/lib/engineLaunch.ts b/cli/src/lib/engineLaunch.tsindex a344b107e..904fe5434 100644--- a/cli/src/lib/engineLaunch.ts+++ b/cli/src/lib/engineLaunch.ts@@ -98,7 +98,10 @@ export const FIRST_PROMPT_ARGS: Readonly<Record<AgentEngine, readonly string[] |// No documented first-prompt argument for an interactive launch. Not guessed.cursor: null,pi: null,- hermes: null,+ // `hermes chat --help`: "-q, --query QUERY Query to run. On a real TTY the prompt seeds an+ // interactive session (first turn)". Measured on a live pane: the prompt is answered and the TUI+ // stays open for the next turn, which is also what lets a fork of a Hermes agent hand off.+ hermes: ['chat', '-q'],commandcode: null,devin: null,muse: null,