Delegate task to OpenCode agent
delegate_taskDelegate software-engineering tasks to an OpenCode agent that explores your repository and returns a summary with findings, while controlling edit and shell permissions per call.
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. Every agent can be granted or denied edits and shell access per call with allow_edits / allow_bash; grants still enforce the bridge security policy (sensitive-file protection for edits, no git history changes for shell). 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_bash | No | Grant (true) or revoke (false) shell commands for this call. Omit to use the agent's default. | |
| allow_edits | No | Grant (true) or revoke (false) file edits for this call. Omit to use the agent's default. |