Skip to content

The agent that grows with you

Merge commit '3868ee9a128362867ba1a8d4f1fe477163b4e905' into fix/106742-cutover-parity

Teknium7385696419f5
diff --cc website/docs/reference/cli-commands.md
index c9323f527c4,4fbeef440af..df80a97eaa5
--- a/website/docs/reference/cli-commands.md
+++ b/website/docs/reference/cli-commands.md
@@@ -144,10 -143,30 +144,31 @@@ hermes chat --toolsets web,terminal,ski
hermes chat --quiet -q "Return only JSON"
hermes chat --worktree -q "Review this repo and open a PR"
hermes chat --ignore-user-config --ignore-rules -q "Repro without my personal setup"
-hermes chat --safe-mode -q "Is this bug mine or Hermes'?"
+hermes chat --safe-mode --model gpt-4.1 -q "Is this bug mine or Hermes'?"
+hermes chat --safe-mode --provider custom --base-url http://127.0.0.1:8000/v1 --model local -q "Isolate against a local server"
```
+ #### Delegation in finite chat runs
+
+ When chat answers and exits (`-Q`, `chat --oneshot`, or a query with non-TTY
+ stdio), `delegate_task` waits for its children and returns their results to the
+ parent in the same turn. Batch children still run in parallel, subject to
+ `delegation.max_concurrent_children`. The parent can use those results in its
+ final response before the CLI exits.
+
+ - **Automatic joining:** no opt-in or background-mode override is needed.
+ Interactive TTY chat and messaging sessions keep background delegation.
+ - **Existing safeguards:** delegation limits, timeouts, cancellation, and
+ `approvals.single_query_mode` still apply. Joining does not auto-approve commands
+ or guarantee successful child outcomes. Inspect results and verify artifacts.
+ - **Terminal completions:** this does not change background terminal notification
+ behavior or the bounded `terminal.oneshot_completion_wait_seconds` exit wait.
+ That setting is not a delegation timeout.
+
+ Delegation remains process-local. Interrupting or terminating the parent can
+ cancel unfinished children. Use a durable scheduler for work that must survive
+ the initiating process.
+
### `hermes -z <prompt>` — scripted one-shot
For programmatic callers (shell scripts, CI, cron, parent processes piping in a prompt), `hermes -z` is the purest one-shot entry point: **single prompt in, final response text out, nothing else on stdout or stderr.** No banner, no spinner, no tool previews, no `Session:` line — just the agent's final reply as plain text.