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 |
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 | Read-only planning stress-test agent for light or full one-question-at-a-time grilling |
refactorer | Refactor code while preserving behavior and following local command and skill workflows |
researcher-readonly | Primary-source research subagent that compares claim-specific evidence and cannot delegate further |
researcher | Interactive primary-source research agent that compares claim-specific evidence and may delegate one layer of read-only legwork |
reviewer | Reviews code for quality, bugs, security, and best practices |