* fix(delegation): correct the delegate_task text the model reads
Text the model reads described behaviour the code does not have:
- The tool description sent durable work to
terminal(background=True, notify=True). A background process ends
with its session unless it is started with persist_on_release=True,
so the advice now names that flag.
- The steer `message` parameter and the note a steer returns said the
text is appended to the child's next tool result. It is delivered as
a user message after the child's current tool calls.
- The note on a delegation that ran inside the call named
background=true, a parameter delegate_task accepts and ignores.
The prompt-surface snapshot is regenerated: tools/delegate_task.json
and the tool token counts in surfaces.json.
* docs(delegation): config comments and example match the code
- delegation.api_key: an empty value means the parent's key, or the
named provider's own. The comments said it falls back to
OPENAI_API_KEY.
- delegation.orchestrator_enabled: false makes every child a leaf. The
comments described it as a switch for role="orchestrator", a
parameter delegate_task ignores.
- delegation.max_spawn_depth has a floor of 1 and no ceiling. The
config example gave a range of 1-3.
- The bundled hermes-agent skill's concurrency reference gave a default
of 3. It is 10, and the env var is read only when no config value is
loaded.
* docs(delegation): name the provider branch in the api_key comment
With delegation.provider set, an empty delegation.api_key is not the
parent's key: the named provider resolves its own, and the spawn is
refused when it has none. The comment in config_defaults.py already says
so; this one now matches it.
Co-authored-by: Bear Huddleston <196404565+BearHuddleston@users.noreply.github.com>
* docs(delegation): steer_subagent docstring says how a steer arrives
The docstring said AIAgent.steer() appends the text to the child's last
tool result. The child receives it as a user message after its current
tool calls, as the note this function's caller returns now says.
Co-authored-by: Bear Huddleston <196404565+BearHuddleston@users.noreply.github.com>
* docs(skills): delegation facts in the hermes-agent background reference
The reference gave max_concurrent_children a default of 3, described
delegate_task(background=true) and a per-call leaf or orchestrator role,
and sent work that must outlive the process to terminal(background=True,
notify_on_complete=True).
The default is 10, top-level calls run in the background where the
session can receive a later message, nesting follows depth, and a
terminal job started with persist_on_release survives the session ending
but not a gateway or host shutdown.
Co-authored-by: Bear Huddleston <196404565+BearHuddleston@users.noreply.github.com>
* docs(agents): delegation defaults and dispatch in tools/AGENTS.md
The Delegation section said the parent waits unless background=true,
gave max_concurrent_children a default of 3 and max_spawn_depth a
default of 2, and sent work that must survive a restart to
terminal(background=True, notify_on_complete=True).
A top-level model call is backgrounded by the runtime where the session
can receive the result, the defaults are 10 and 1, and cronjob is the
tool for work that must survive a restart.
Co-authored-by: Bear Huddleston <196404565+BearHuddleston@users.noreply.github.com>
* docs(delegation): max_spawn_depth default in a gateway comment
The comment on the delegate-chain walk bound gave
delegation.max_spawn_depth a default of 2. It is 1 (config_defaults.py).
---------
Co-authored-by: Bear Huddleston <196404565+BearHuddleston@users.noreply.github.com>