delegate_to_opencode
Send a live engineering instruction to OpenCode CLI, which executes it in the target workspace. Claude plans the task while OpenCode implements it, returning status, diffs, and output.
Instructions
Delegate a real-time software engineering instruction to OpenCode CLI.
Claude Desktop acts as the Planner and Architect. OpenCode CLI acts as the Coding Engineer. The dynamic prompt is forwarded unchanged to OpenCode executing in the target workspace.
Args: prompt: Dynamic, real-time natural language engineering instruction generated by Claude. workspace_path: Absolute or relative local workspace directory path. ide: Optional IDE environment preference ('vs_code', 'antigravity', or 'cli_direct').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ide | No | ||
| prompt | Yes | ||
| workspace_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |