Document the `role` parameter in the task-tool description (both the batch and single-spawn shapes) and make tailored specialists the default rule, not the exception. Direct a recursing worker to pass a `role` for each sub-specialist. Activates the role field from #2467 for the model. Refs #2468 Op: extend
7.9 KiB
{{#if asyncEnabled}}{{#if batchEnabled}}Spawns subagents to work in the background — one per tasks[] item; a single spawn is a one-item batch.{{else}}Spawns ONE subagent per call to work in the background.{{/if}}
-
Spawning is non-blocking: the call returns immediately with the agent id{{#if batchEnabled}}s{{/if}} and job id{{#if batchEnabled}}s{{/if}}; each result is delivered automatically when that agent yields.
-
Parallelism = {{#if batchEnabled}}multiple
tasks[]items in ONE call. To launch several subagents, you MUST batch them into a single call'stasks[]— they sharecontextonce instead of duplicating it. Separatetaskcalls in one message are ONLY for spawns needing a differentagenttype or unrelatedcontext{{else}}multipletaskcalls in one assistant message{{/if}}. Concurrency is bounded at {{MAX_CONCURRENCY}} running subagents per session. -
If genuinely blocked on a result, wait with
job poll; otherwise keep working.job cancelterminates a task and cannot carry a message — only for stalled/abandoned work. {{else}}{{#if batchEnabled}}Runs subagents synchronously — one pertasks[]item; a single spawn is a one-item batch.{{else}}Runs ONE subagent synchronously per call.{{/if}} -
Spawning is blocking: the call returns only after the agent{{#if batchEnabled}}s{{/if}} finish; results arrive inline.
-
Parallelism = {{#if batchEnabled}}multiple
tasks[]items in ONE call. To launch several subagents, you MUST batch them into a single call'stasks[]— they sharecontextonce instead of duplicating it. Separatetaskcalls in one message are ONLY for spawns needing a differentagenttype or unrelatedcontext{{else}}multipletaskcalls in one assistant message{{/if}}. Concurrency is bounded at {{MAX_CONCURRENCY}} running subagents per session. {{/if}} {{#if ircEnabled}} -
Coordinate with agents via
ircusing their ids. Agents reach you and their siblings live the same way. {{/if}}
{{#if batchEnabled}}