delegate
Send code-change tasks to a cost-effective worker that edits an isolated worktree, runs checks, and returns verified uncommitted changes for review.
Instructions
Make any code change: use this for every edit, including small, mechanical, "quick" or multi-file ones; those are exactly what the cheap worker is for, and your tokens cost the user far more than its. One call: task = what to change, which files, how to check. The worker edits an isolated worktree, runs the checks, and lands an OK result (uncommitted) in your working tree; read the result block instead of re-checking. Pass difficulty, rated from the issue as the time an engineer new to the code needs to fix and test it: easy < 15 min, medium < 1 h, hard > 1 h. For multi-step work pass plan + steps instead of task. Plan format: one "# " line, then per step a "## " heading followed by "files: ", "do: ", "done-when: " (optional "dont:", "needs: ", "difficulty: easy|medium|hard"), each key at the start of its line, not a bullet. In done-when, backticked text is run as a shell command that must succeed; put only commands in backticks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Extra guidance for this run, at most 300 characters | |
| plan | No | Instead of task: plan file path, relative to the repository root | |
| task | No | The change in plain words: what to change, which files, how to check. One step, no plan file needed | |
| wait | No | Default true: return when every group settles or one is BLOCKED. false: return RUNNING at once; then jobs(action="wait") | |
| brief | No | A research result to start from: its id (e.g. r5k2q) or its text. The worker gets it instead of re-exploring | |
| files | No | With task: files or directories it touches, comma-separated (default: the whole repo) | |
| steps | No | With plan: "3" one step, "3-5" a range in one job, "1-2,3,4" comma-separated groups, each its own job, run in parallel unless files overlap or needs: orders them | |
| source | No | The user's request or the issue text, verbatim, or the repo-relative path of a file holding it. The worker checks the task against it and reports where they disagree | |
| done_when | No | With task: how to check it; `backticked` shell commands must succeed (default: the repo's tests) | |
| difficulty | No | Time an engineer new to the code needs: easy < 15 min, medium < 1 h, hard > 1 h. Picks the worker model; a plan step's difficulty: wins |