Spin up parallel subagents in one batch
The primary multi-agent tool. One call, many agents, shared context.
“Do this in parallel — spin up three scouts: read the auth module, the API layer, and the tests, then merge the findings.”
task({
agent: "explore",
context,
tasks: [
{ id: "Auth", role: "explore", assignment: "read src/auth — surface + risks" },
{ id: "API", role: "explore", assignment: "read src/api — endpoints" },
{ id: "Tests", role: "explore", assignment: "read tests — coverage gaps" },
]
})
Three job IDs spawned in one batch, results delivered async as each scout finishes, then a single merged summary. Capped by task.maxConcurrency.