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 },