Delegate task to OpenCode agent
delegate_taskDelegate software-engineering tasks to an OpenCode agent that explores the repository, returns a summary and structured findings, and can edit files and run tests when permitted.
Instructions
Delegate a software-engineering task to an OpenCode agent (DeepSeek by default) that runs in the same workspace. The agent explores the repository itself and returns a concise summary plus structured findings. Read-only agents (deepseek-researcher, deepseek-reviewer) cannot modify files; deepseek-coder can edit and run tests. Set allow_edits=false to force edit tools off for this call. Returns { status, session_id, summary, findings, files_changed }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Workspace directory. Defaults to CLAUDE_PROJECT_DIR / the server working directory. | |
| task | Yes | The task to delegate, written as a clear instruction. | |
| agent | No | Agent to use (default: deepseek-researcher). See list_agents. | |
| model | No | Override the model, e.g. "deepseek/deepseek-v4-pro". | |
| paths | No | Starting path hints relative to the workspace. Hints only, not a restriction. | |
| timeout | No | Execution timeout in milliseconds (default from bridge config). | |
| allow_edits | No | When false, edit/write tools are disabled for this call. |