agentWrite OpenCode agents, custom commands, and AGENTS.md rules — files in `.opencode/agents/` or `.opencode/commands/`, or the `agent`, `command`, and `instructions` keys. Use for `mode`, `steps`, per-agent `permission`, `$ARGUMENTS`/`!cmd`/`@file` templates, the CLAUDE.md fallback, or a stale `tools:`
delegateBuild a Claude Code plugin that hands coding tasks to OpenCode in the background and polls status/result/cancel — the OpenCode port of openai/codex-plugin-cc. Use to choose a transport (`opencode acp`, `opencode serve` + SDK, or headless `opencode run --format json`) and design the detached job comp
pluginWrite or debug OpenCode plugins — JS/TS modules in `.opencode/plugins/` that return hook handlers (`tool.execute.before/after`, `permission.ask`, `shell.env`, `command.execute.before`), read bus events (`session.idle`) in the `event` handler, or register tools from code. Use for "OpenCode hook/stop
policiesAuthor OpenCode enterprise governance — the `experimental.policies` provider allow/deny layer and the `permission` per-tool gate — for `opencode.json` / `.opencode/`. Use when configuring which LLM providers OpenCode may use, migrating off `disabled_providers`/`enabled_providers`, locking down a fle
sdkDrive OpenCode (opencode.ai, the open-source coding agent) programmatically — the @opencode-ai/sdk JS/TS client, the github.com/sst/opencode-sdk-go Go client, and the `opencode serve` HTTP/OpenAPI server it talks to. Use when building an integration on top of OpenCode, calling createOpencode / creat
skillWrite OpenCode Agent Skills (SKILL.md) and `references` entries, or make an existing Claude Code skill load in OpenCode. Use for `.opencode/skills/`, `.claude/skills/` drop-ins, skill name/frontmatter rules, "skill won't load", the `skill` permission or disabling the skill tool, and `@alias` referen
toolsAdd capabilities to OpenCode: standalone custom tools in `.opencode/tools/*.ts`, MCP servers (`mcp` key), and LSP servers (`lsp` key). Use for overriding a built-in tool, `environment` vs `env` spellings, namespaced MCP tools and their gating, `lsp` true/false/object, or `apply_patch`/`patchText`. T