Skip to content

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

AgentDescription
askAsk clarifying questions before taking action
build-askBuild agent that executes clear tasks and relies on permissions for write actions
general-readonlyGeneral-style parallel subagent that researches with read-only tools and a narrow shell inspection allowlist (for delegation from read-only primaries).
grillRead-only planning stress-test agent for light or full one-question-at-a-time grilling
refactorerRefactor code while preserving behavior and following local command and skill workflows
researcher-readonlyPrimary-source research subagent that compares claim-specific evidence and cannot delegate further
researcherInteractive primary-source research agent that compares claim-specific evidence and may delegate one layer of read-only legwork
reviewerReviews code for quality, bugs, security, and best practices