Skip to content

The agent that grows with you

docs: clarify when delegated results belong in one group

Tekniuma688e7d5ff9a
diff --git a/tools/delegate_tool.py b/tools/delegate_tool.py
index e6b12f4fd6d..b019f7c218d 100644
--- a/tools/delegate_tool.py
+++ b/tools/delegate_tool.py
@@ -509,8 +509,9 @@ _DESCRIPTION_HEAD = (
"(limit in the tasks description).\n\n"
"Runs in the background: dispatch returns immediately with live transcript paths, and each completed unit "
"re-enters the conversation on its own — an ungrouped task as soon as IT finishes, tasks sharing a `group` "
- "together once all of them finish. Handle each result as it lands. Do NOT wait or poll; continue "
- "other work. While children run, `action` (list/steer/stop) controls them live — steer when a transcript shows a "
+ "together once all of them finish. Choose groups by how you want to use the results (see `group`). "
+ "No need to wait or poll; continue other work while results are pending. "
+ "While children run, `action` (list/steer/stop) controls them live — steer when a transcript shows a "
"child drifting.\n\n"
"USE FOR: reasoning-heavy subtasks, work that would flood your context with intermediate data, or independent "
"parallel workstreams.\n"
@@ -599,10 +600,12 @@ DELEGATE_TASK_SCHEMA = {
),
"group": _p(
"string",
- "Optional completion group. Tasks sharing a group wait for each other and return as ONE "
- "message (use when you must compare or merge their results); a task without a group "
- "returns on its own the moment it finishes. Independent work (separate PR reviews, "
- "unrelated fixes) should stay ungrouped so nothing waits for the slowest sibling.",
+ "Optional result-delivery bucket within this call; all tasks still run in parallel. "
+ "Use the same group when you want to review results together (comparison, synthesis, "
+ "or one coordinated decision): ONE message arrives after all tasks in that group finish. "
+ "Omit when each result is useful to act on separately: it arrives as soon as that task "
+ "finishes. Different groups report independently. This does not order execution; if B "
+ "needs A's output, dispatch B after A returns.",
),
},
"required": ["goal"],
diff --git a/website/docs/user-guide/features/delegation.md b/website/docs/user-guide/features/delegation.md
index 90c5b9fe162..00d0f19e8c6 100644
--- a/website/docs/user-guide/features/delegation.md
+++ b/website/docs/user-guide/features/delegation.md
@@ -119,8 +119,11 @@ delegate_task(
When a top-level agent provides a `tasks` array, Hermes returns one background handle and runs the subagents in parallel. Results come back **per completion unit**, not once at the end:
-- A task **without** a `group` is its own unit: its result re-enters the conversation the moment that subagent finishes, so five independent PR reviews land as five messages and the agent acts on each without waiting for the slowest one.
-- Tasks that share a `group` string wait for each other and return as **one** consolidated message (use this when the parent must compare or merge their outputs).
+- Omit `group` when each result is useful to act on separately. Each task reports as soon as it finishes.
+- Use the same `group` string when you want to review outputs together: comparison, synthesis, or one coordinated decision. The group returns **one** consolidated message after all its tasks finish. Even independently executable tasks can belong in one group when their results inform the same decision.
+- Different groups report independently; grouped and ungrouped tasks can share one call.
+
+Grouping controls **result delivery, not execution order**: all tasks still run in parallel. If task B needs task A's output to do its work, dispatch A first, then dispatch B with that output after A returns.
```json
{"tasks": [
@@ -135,7 +138,7 @@ The dispatch handle lists each unit (`units[].delegation_id`, `group`, `task_ind
- **Maximum concurrency:** 3 tasks by default (configurable via `delegation.max_concurrent_children` or the `DELEGATION_MAX_CONCURRENT_CHILDREN` env var; floor of 1, no hard ceiling). Batches larger than the limit return a tool error rather than being silently truncated.
- **Thread pool:** Uses `ThreadPoolExecutor` with the configured concurrency limit as max workers
-- **Progress display:** In CLI mode, a tree-view shows tool calls from each subagent in real-time with per-task completion lines. In gateway mode, progress is batched and relayed to the parent's progress callback
+- **Progress display:** In CLI mode, a tree-view shows tool calls from each subagent in real-time with per-task completion lines. In gateway mode, progress is batched and relayed to the parent's progress callback. CLI and TUI completion notices use task-first titles such as `Subagent Task Completed: Review changes`; multi-task groups use the group name and task count. Unsuccessful or incomplete work gets a corresponding status label. These compact notices do not replace the full results delivered to the parent agent.
- **Result ordering:** Within a unit, results are sorted by task index to match input order regardless of completion order; `TASK i/N` labels index the whole call
- **Cancellation:** Follow-up messages do not cancel a top-level background batch. `/stop` or closing/resetting the owning session cancels its active children. Synchronous orchestrator children still follow their parent's interrupt state