Legacy reference: this page describes OCX 2 for OpenCode V1. For OCX 3 and OpenCode V2, see the V2 documentation.
Overview
Agents are specialized AI assistants for specific tasks. OpenCode supports two agent modes and multiple configuration formats.Agent Types
Built-in Agents
JSONC Configuration
Define agents inopencode.jsonc:
Markdown Configuration
Place files in~/.config/opencode/agents/ or .opencode/agents/:
~/.config/opencode/agents/review.md
Agent Options
Temperature Guidelines
Additional Model Options
Pass provider-specific options directly:See Also
- Permissions — Fine-grained per-agent access control.
- Skills & Instructions — Reusable instruction sets for agents.
- Configuration — Global configuration reference.