fleet_delegate
Delegate one small coding task to a cost-optimized AI node, reading project files and returning a preview, file output, or job ID for long tasks.
Instructions
Delegate ONE small task to a local model and get the result. The server reads files itself. With output_path the answer is written to that file and only a preview comes back. Long tasks return a job_id to poll with fleet_job. 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 |
|---|---|---|---|
| node | No | Force a node by name (normally leave empty). | |
| files | No | Project-relative paths or globs (e.g. src/**/*.py) to include. | |
| model | No | Force a model (normally leave empty). | |
| context | No | Extra context: conventions, interfaces, examples. | |
| category | No | auto | |
| overwrite | No | ||
| instruction | Yes | Self-contained brief: what to produce, constraints, conventions, acceptance criteria. The worker sees only this, `context` and `files`. | |
| json_schema | No | JSON Schema for structured output; parsed JSON is returned in `json`. | |
| output_path | No | Project-relative file to write the result to. | |
| wait_seconds | No | Max wait before returning a job_id (default from config). | |
| max_output_tokens | No |