spawn_batch
Launch multiple delegate tasks in one batch with pre-validation to avoid partial runs; poll results via sessions.
Instructions
Fan out several delegates in one call. Each task inherits the batch-level model, cwd, tools and extensions unless it overrides them. The whole batch is validated before any delegate starts, so a bad model name or a duplicate id fails everything instead of leaving half a fan-out running. Poll the result with sessions, which reports all of them at once, rather than one status per delegate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Default working directory for every task in this batch | |
| model | No | Default model for every task in this batch | |
| tasks | Yes | 1 to 10 delegates to start | |
| tools | No | Default tool allowlist for every task in this batch | |
| idPrefix | No | Names the tasks `<prefix>-01`, `<prefix>-02`, ... e.g. "audit" gives "audit-01" | |
| extensions | No | Default extensions setting for every task in this batch |