opencode subagents

v0.1.4
io.github.sebstaq/opencode-subagent-mcp Checked 11 hours ago Published 27 days ago

Run 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…

ParameterTypeDescription
description *stringShort (3-5 word) description of the task
prompt *stringThe task for the agent to perform
cwdstringWorking directory (default: the project directory)
disallowed_toolsarray
effortstringModel variant/reasoning effort, e.g. low, high, max
isolationstring
max_turnsinteger
modelstringopencode model as provider/model (default: opencode-go/deepseek-v4.1-flash)
output_schemaobjectJSON Schema the final answer must satisfy; returned as structured output
permission_modestringPermission mode (default: auto)
run_in_backgroundboolean
subagent_typestringClaude agent definition name or opencode agent name (default: general)
toolsarrayAllowlist 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.

ParameterTypeDescription
agent_id *string
message *string
max_turnsinteger
run_in_backgroundboolean

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.

ParameterTypeDescription
agent_id *string
timeout_secondsnumberReturn 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.

ParameterTypeDescription
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.

ParameterTypeDescription
cwdstring