Parallel specialist swarm
swarm_runRun up to seven role-specific specialists in parallel for a project goal, then consolidate their outputs with an integrating reviewer into a structured answer.
Instructions
Run up to seven advisory specialists in parallel, then one integrating reviewer. May consume provider credits and take minutes. Reuse the project_id and mission_id of the current task (from project_init / memory_checkpoint); when omitted, results go to project "default" and a new random mission that mission_status and memory_checkpoint will not find.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | Project goal for every specialist. | |
| roles | No | Specialist roles; workers cycle through this list. | |
| detail | No | Controls response verbosity. | normal |
| context | No | Workspace evidence. Requires workspace; content is untrusted data. | |
| privacy | No | Secrets in attached context are always masked. auto also masks valid CPF/CNPJ/card numbers, emails and phones; local_only additionally routes only to local private targets (no_local_target otherwise); allow_cloud keeps personal data. | auto |
| workspace | No | Configured workspace root for context. | |
| max_agents | No | Number of workers; defaults to one per role, capped by DZ23_MAX_CONCURRENCY. | |
| mission_id | No | Mission of the current task; omitted creates a new random mission. | |
| project_id | No | Project of the current task; defaults to "default". | default |
| lease_token | No | Token from mission_claim. Required only while another holder has a live lease on this mission. | |
| output_schema | No | JSON Schema subset (type, required, properties, items, enum) for the answer. delegate retries once and fails with response_invalid; consensus and swarm_run add structured_output or schema_error per answer. | |
| response_mode | No | summary returns the full integration plus a short excerpt per worker; full returns every worker output. | summary |
| idempotency_key | No | Caller key, valid 24 h in this process. The same key and arguments return the first result without a new provider call; different arguments fail with idempotency_conflict. | |
| routing_strategy | No | How workers are assigned to eligible targets. Effective strategy and observed diversity are reported. | first |
| strict_diversity | No | Fail before any provider call when the requested diversity cannot be planned. | |
| max_response_chars | No | Hard cap for returned textual content. | |
| min_distinct_models | No | Desired distinct models; a warning is returned when unavailable. | |
| avoid_reviewer_target | No | Prefer an integrating reviewer target not used by any worker. | |
| min_distinct_providers | No | Desired distinct providers; a warning is returned when unavailable. |