delegate_many
Run several dependent tasks in parallel with per-task verification, write scopes, and rollback to coordinate bounded work across workers.
Instructions
Give the executor several tasks with an order, each one a contract of its own.
tasks: a list of objects with name short unique name goal what to do, self-contained, with concrete targets verify_commands checks of this task that can fail (list of shell commands, required) write_globs files this task may write (list of globs, required) constraints explicit checkable requirements (required when the checks only look for text) after names of the tasks that must succeed first (list) context facts for this task (optional) immutable read-only files or globs for this task (optional) workers: tasks run side by side, for a server with several request slots (default 1).
A task starts when the tasks it comes after are verified. A task whose prerequisite failed is cancelled with the reason and not started. Two tasks that run at the same time cannot write the same file: the first to write it owns it until it ends. Each task has its own job, receipt, diff and rollback; job_rollback of the batch undoes all of them, newest first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tasks": "<tasks>",
"workspace": "<workspace>"
},
"name": "delegate_many"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| tasks | Yes | ||
| context | No | ||
| workers | No | ||
| allow_run | No | ||
| immutable | No | ||
| max_steps | No | ||
| workspace | Yes | ||
| read_globs | No | ||
| max_repairs | No | ||
| wait_seconds | No | ||
| checks_network | No | ||
| unjailed_checks | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |