Skip to content

Commit ff15344

Browse files
PythonLuvraitorf2
andauthored
fix(hermes-cli): correct CLI invocation (#2)
The hermes-cli adapter was calling `hermes -p <prompt>`, which is not a valid flag in the current Hermes CLI. The correct non-interactive invocation is `hermes chat -q <prompt> -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>
1 parent f65eaaf commit ff15344

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/agents/hermes-cli.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ export const hermesCli: AgentAdapter = {
3232
send(opts: SendOptions): Promise<void> {
3333
const { projectPath, prompt, onEvent, signal } = opts;
3434
return new Promise((resolve) => {
35-
// `hermes -p <prompt>` runs a single non-interactive turn and exits.
36-
const child = spawn(hermesBin(), ["-p", prompt], {
35+
// `hermes chat -q <prompt> -Q` runs a single non-interactive turn.
36+
// -Q suppresses the banner/spinner for clean stdout capture.
37+
const child = spawn(hermesBin(), ["chat", "-q", prompt, "-Q"], {
3738
cwd: projectPath,
3839
shell: process.platform === "win32",
3940
env: { ...process.env },

0 commit comments

Comments
 (0)