From b9620187275ebf683b867b49dd56b29835579b90 Mon Sep 17 00:00:00 2001 From: PythonLuvr Date: Mon, 25 May 2026 01:32:39 +0700 Subject: [PATCH] fix(hermes-cli): correct CLI invocation The hermes-cli adapter was calling `hermes -p `, which is not a valid flag in the current Hermes CLI. The correct non-interactive invocation is `hermes chat -q -Q` (-Q suppresses the banner and spinner so stdout stays clean for streaming capture). Bug spotted by @aitorf2 in PR #1; landing this slice independently ahead of the larger review. Co-Authored-By: aitorf2 <63227344+aitorf2@users.noreply.github.com> --- lib/agents/hermes-cli.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/agents/hermes-cli.ts b/lib/agents/hermes-cli.ts index 74cbe1e..486d773 100644 --- a/lib/agents/hermes-cli.ts +++ b/lib/agents/hermes-cli.ts @@ -32,8 +32,9 @@ export const hermesCli: AgentAdapter = { send(opts: SendOptions): Promise { const { projectPath, prompt, onEvent, signal } = opts; return new Promise((resolve) => { - // `hermes -p ` runs a single non-interactive turn and exits. - const child = spawn(hermesBin(), ["-p", prompt], { + // `hermes chat -q -Q` runs a single non-interactive turn. + // -Q suppresses the banner/spinner for clean stdout capture. + const child = spawn(hermesBin(), ["chat", "-q", prompt, "-Q"], { cwd: projectPath, shell: process.platform === "win32", env: { ...process.env },