diff --git a/packages/workflow-utils/src/hermes-agent.ts b/packages/workflow-utils/src/hermes-agent.ts index 001a93c..61620dc 100644 --- a/packages/workflow-utils/src/hermes-agent.ts +++ b/packages/workflow-utils/src/hermes-agent.ts @@ -3,7 +3,7 @@ import { type Result, ok } from "@uncaged/nerve-core"; import { type SpawnEnv, type SpawnError, spawnSafe } from "./spawn-safe.js"; /** - * Spawns a non-interactive `hermes` run with YOLO enabled, argv-only + * Spawns a non-interactive `hermes chat` invocation with YOLO enabled, argv-only * (shell: false) following the Nerve issue #208 contract. * Adjust argv here if the upstream CLI surface changes. */ @@ -34,8 +34,8 @@ export async function hermesAgent( return ok("[dryRun] hermes stub"); } const args: string[] = [ - "run", - "-p", + "chat", + "-q", options.prompt, "--yolo", "--model", @@ -46,7 +46,7 @@ export async function hermesAgent( String(options.maxTurns), ]; for (const s of options.skills) { - args.push("--skill", s); + args.push("-s", s); } if (options.quiet) { args.push("--quiet");