# `H.Session.Subagents`
[🔗](https://github.com/parlant/harness/blob/v0.3.0/lib/h/session/subagents.ex#L1)

Coordinator-managed subagent delegation lifecycle for `H.Session.Server`.

Persists idempotent child intent (`memos`) and `"waiting"` state before
calling `H.Daemon`, dispatches child sessions and submissions outside storage
commits, holds zero `Task.Supervisor` workers while parked, wakes on
`{:submission_settled, outcome}`, and recovers idempotently across crashes
and VM restarts.

# `abort_child`

Propagates a parent conversation abort to an owned child session.

# `child_daemon_opts`

Builds `H.Daemon` options targeting the same isolated runtime/catalog/provider
as the parent session.

# `remove_watch`

Removes watch tracking for `{child_sid, child_req_id}` from coordinator state.

# `resume_waiting`

Re-attaches and re-watches a parked `"waiting"` subagent tool task after
coordinator crash or VM restart.

# `spawn_or_dispatch`

Validates semantic arguments for a `"subagent"` tool call and dispatches or
parks it according to `mode` (`"wait"`, `"start"`, `"await"`, `"steer"`, `"abort"`).

# `stage_failed`

Stages an error tool result when subagent dispatch, attach, or watch fails.

# `stage_settled`

Stages settlement for a waiting `"subagent"` tool task when
`{:submission_settled, outcome}` arrives.

# `unwatch`

Unregisters `self()` from PubSub submission settlement for `{child_sid, child_req_id}`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
