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
build-lockedBuild agent that can edit files but cannot run shell commands
general-readonlyGeneral-style parallel subagent that researches with read-only tools and a narrow shell inspection allowlist (for delegation from read-only primaries).
grillExtended read-only planning interview agent for one-question-at-a-time grilling
refactorerRefactor code while preserving behavior and following local command and skill workflows
reviewerReviews code for quality, bugs, security, and best practices