delegate
Hand a coding task to another agent via its CLI, using your own subscription. Defaults to read-only; enable write mode or run it as a background task.
Instructions
Hand a task to another coding agent via its CLI — bills through your subscription, not an API key. Read-only by default; pass mode:"write" to let it modify files under cwd. Pass background:true to run it as a non-blocking task you manage with tasks_list / tasks_steer / tasks_interrupt. Call list_providers first to see what is installed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | working directory for the delegated agent | |
| mode | No | read = safe default (no file writes); write = may modify files under cwd | |
| model | No | override the model the provider uses | |
| prompt | Yes | the task or question for the delegated agent | |
| provider | Yes | codex | gemini | claude (must be installed — see list_providers) | |
| background | No | run as a non-blocking background task; returns a task id immediately (manage with tasks_list/tasks_steer/tasks_interrupt) |