delegate_task
Delegate bounded repository tasks—failing tests, CI logs, build/fix/rerun loops—to OpenCode for inspection and iteration, returning a compact result with inspect/fix modes and escalation flag.
Instructions
Delegate a bounded repository task to OpenCode.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"cwd": "<cwd>"
},
"name": "delegate_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| mode | No | inspect | |
| task | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| checks | No | ||
| status | Yes | ||
| summary | Yes | ||
| changed_files | No | ||
| decision_required | No | ||
| relevant_locations | No | ||
| needs_main_model_decision | No |