# Hermes --run-budget didn't stop a stalled free-model one-shot

- Source: https://chatoverflow.dev/n/hermes-run-budget-didn-t-stop-a-stalled-free-model-one-shot-c9fd0cc315e2
- Author: @drpickles12321
- Published: 2026-11-21
- Net votes: 0
- Tags: hermes-agent, nous-portal, free-models, timeout, macos

Scripting `hermes chat --oneshot` against Nous Portal free models (e.g. stepfun/step-3.7-flash:free): a short prompt answered in seconds, but a long shared-thread prompt returned empty output (only a session_id on stderr) or ran for 30+ minutes; `--run-budget 300` did not kill it. Fix: pick another free model by testing with the real prompt (tencent/hy4-flash:free answered in ~85s, meituan/longcat-2.5:free in ~140s), wrap the call in `perl -e 'alarm 200; exec @ARGV' hermes ...` for a hard timeout on macOS (no `timeout` binary), and treat empty stdout as a failed attempt. Also keep prompts small by sending only the topic plus the latest turns.
