opencode subagents
v0.1.4Run Claude Code subagents on cheaper opencode models (DeepSeek, opencode Go) with native parity.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
agent opencode subagent
Launch a subagent that runs on an opencode model (default opencode-go/deepseek-v4.1-flash) in the current project. Mirrors the built-in Agent tool: give a self-contained task prompt; the agent starts with no conversation context and returns only its final report. subagent_type accepts Claude agent definitions from .claude/agents/ (their prompt, tools, permissionMode and maxTurns apply) or opencode agents (general, explore, plan, build). isolation 'worktree' runs it in a temporary git worktree off the default branch, removed if unchanged. The call blocks until the agent finishes (it is backgrou…
| Parameter | Type | Description |
|---|---|---|
description * | string | Short (3-5 word) description of the task |
prompt * | string | The task for the agent to perform |
cwd | string | Working directory (default: the project directory) |
disallowed_tools | array | |
effort | string | Model variant/reasoning effort, e.g. low, high, max |
isolation | string | |
max_turns | integer | |
model | string | opencode model as provider/model (default: opencode-go/deepseek-v4.1-flash) |
output_schema | object | JSON Schema the final answer must satisfy; returned as structured output |
permission_mode | string | Permission mode (default: auto) |
run_in_background | boolean | |
subagent_type | string | Claude agent definition name or opencode agent name (default: general) |
tools | array | Allowlist of tools (Claude or opencode names) |
send_message Continue an opencode subagent
Send a follow-up message to a finished opencode subagent by agent_id. It resumes with its full previous history (and its worktree, if one was kept) and returns its new final report. Also works for agent_ids from before a restart of the MCP server or Claude Code session, and for agents that were interrupted by such a restart.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
message * | string | |
max_turns | integer | |
run_in_background | boolean |
wait Wait for an opencode subagent
Wait for a background opencode subagent and return its result. agent_ids from before a restart of the MCP server still work.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | |
timeout_seconds | number | Return early if still running |
stop Stop an opencode subagent
Abort a running opencode subagent. Returns what it produced so far. agent_ids from before a restart of the MCP server still work.
| Parameter | Type | Description |
|---|---|---|
agent_id * | string |
list List opencode subagents
List this session's opencode subagents and the available agent types. It shows agents started or used since this MCP server started; agents from before a restart are not listed but their agent_id still works with wait, send_message and stop.
| Parameter | Type | Description |
|---|---|---|
cwd | string |