Agents
Agents set the execution posture (permissions, tool access, delegation) for OpenCode sessions. They are published to opencode-config and loaded from ~/.config/opencode/agents/.
| Agent | Description |
|---|---|
ask | Ask clarifying questions before taking action |
build-ask | Build agent that executes clear tasks and relies on permissions for write actions |
build-locked | Build agent that can edit files but cannot run shell commands |
general-readonly | General-style parallel subagent that researches with read-only tools and a narrow shell inspection allowlist (for delegation from read-only primaries). |
grill | Extended read-only planning interview agent for one-question-at-a-time grilling |
refactorer | Refactor code while preserving behavior and following local command and skill workflows |
reviewer | Reviews code for quality, bugs, security, and best practices |