delegate
Delegate coding tasks to Cursor's agent, auto-approving permissions and resuming sessions for iterative execution.
Instructions
Delegate a coding task to cursor-agent over ACP. Never shell out to cursor-agent — use this tool only. Auto-approves every permission the agent requests, in any mode and anywhere on disk. Clarifying questions arrive as prose in result — resume with resumeSessionId to answer. Keep model (composer-2.5), fast and effort at their defaults unless the user explicitly asks. See the delegate skill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fast | No | Fast tier; higher cost — only when the user asks. | |
| mode | No | agent implements; plan and ask are instructions to the agent, not limits. | agent |
| spec | Yes | Task brief: goal, scope, fixed decisions quoted exactly, acceptance criteria. Sent as written. Point at files to read rather than pasting code, or attach them with contextFiles. | |
| model | No | Bare ACP family id, version included: composer-2.5, grok-4.5, claude-opus-5, gpt-5.6-sol. doctor deep:true lists every id. | composer-2.5 |
| effort | No | Exact Cursor thinking-effort value for the selected model. Values differ per model and some expose no effort option; invalid values fail before the prompt and name the accepted set. Pass only when the user asks for Cursor effort — the host's own reasoning setting is unrelated. | |
| context | No | Context window size; gpt-5.x accepts 272k and 1m. Do not pass speculatively. | |
| workspace | Yes | The agent's working directory, not a limit. Smallest directory holding the task's files; with no such directory the project root is the floor. Must already exist; never create one for the call. | |
| contextFiles | No | Paths to attach instead of pasting contents into spec. Text becomes references the agent may open; images (png/jpg/gif/webp, <5MB) are sent inline. Relative paths resolve against workspace but are not limited to it. Skips are reported in protocolWarnings, never fatal. | |
| resumeSessionId | No | Continue an existing ACP session. |