delegate_task
Offload a self-contained coding subtask to a local model for generating boilerplate, tests, docstrings, or rewrites. Provide context files; the output text is saved to a file whose path is returned.
Instructions
Run a self-contained subtask on a LOCAL model and return its text.
Good for: boilerplate, unit tests for a given file, docstrings, log triage, rewrites,
first drafts, mechanical transformations. Pass the files it needs in context_files
(absolute paths, ~90k chars total). model_tier="fast" is ~1.4x quicker for simple
jobs; think=true adds reasoning for tricky ones (slower). Output is saved to a file
whose path is returned, so ask for long outputs freely.
NOT for: final correctness decisions, reasoning about the whole repo, tasks needing more than ~32K tokens of context, or anything you must get right without checking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| think | No | ||
| timeout_s | No | ||
| max_tokens | No | ||
| model_tier | No | strong | |
| context_files | No |