You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After launching OpenCode, the primary agent automatically delegates tasks to the appropriate subagent. You can also explicitly request a specific subagent in your conversation.
File Format
Each agent file consists of YAML frontmatter + Markdown body:
---
description: Chinese description (used by OpenCode for trigger matching)mode: primary | subagentmodel: provider/model-nametemperature: 0.0-1.0tools: # optional — restrict tool accesswrite: falseedit: falsebash: false
---
<System prompt>
Field Reference
Field
Required
Description
description
Yes
Chinese text — OpenCode uses this to decide when to invoke the agent
mode
Yes
primary (top-level session) or subagent (invoked via delegation only)
model
Yes
Model identifier in provider/model-name format
temperature
Yes
Generation temperature, 0.0-1.0
tools
No
Tool permissions; omitted keys default to allowed; set false to deny
Models Used
Model ID
Purpose
opencode-go/mimo-v2.5
Multimodal, rapid prototyping, general tasks
opencode-go/mimo-v2.5-pro
Production coding, complex algorithms
opencode-go/deepseek-v4-pro
Code review, security audit, database, debugging
opencode-go/kimi-k2.6
Frontend development, UI design
opencode-go/qwen3.6-plus
Documentation, research, project management
opencode-go/glm-5.1
Architecture design
opencode-go/minimax-m2.7
Command execution, result validation
Contributing
Fork the repository
Create a Feat_xxx branch
Commit your code
Create a Pull Request
For detailed agent authoring guidelines, see AGENTS.md.