fleet_delegate_batch
Run the same instruction on many files in parallel, one task per file, across all nodes. Returns a job ID for polling with output patterns and categories.
Instructions
Apply the same instruction to many files in parallel across all nodes (one task per file). Returns a job_id immediately; poll fleet_job. Use output_pattern with {path} {dir} {stem} {name} {ext}, e.g. 'tests/test_{stem}.py'. complex/code → fast GPU node first; tests/scripts/build/docs → light nodes first (overflow to the other tier when busy); general → any; auto → keyword guess.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Paths or globs; one task per file. | |
| context | No | ||
| category | No | auto | |
| overwrite | No | ||
| instruction | Yes | ||
| shared_files | No | Files included in every task (interfaces, style guide, conftest). | |
| output_pattern | No | ||
| max_output_tokens | No |