Skip to main content

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 in opencode.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