OpenCode subagents
Generate an OpenCode subagent as Markdown or opencode.json, with mode, model, temperature, steps and per-tool permissions.
Generate an OpenCode subagent as Markdown or opencode.json, with mode, model, temperature, steps and per-tool permissions.
Markdown: .opencode/agents/ or ~/.config/opencode/agents/. JSON: agent object in opencode.json.
Markdown uses the filename as the agent name (no name field). JSON uses the object key. The body is the prompt in Markdown; JSON uses prompt.
MCP tool naming uses patterns like mymcp_* in permissions (verify against your server names).
OpenCode rules document Claude CLAUDE.md compatibility only; .claude/agents/ is not listed for OpenCode.