- 将MyBatis日志实现从STDOUT更改为SLF4J - 调整开发环境日志级别从debug降级为info - 添加OpenCode命令配置文件包括快速开始、文件操作、插件和技能相关命令 - 创建OpenCode技能框架包含代理创建器、命令创建器、插件创建器和技能创建器 - 初始化OpenWork工作区配置文件 - 添加工作区引导和Chrome DevTools演示技能
1.2 KiB
1.2 KiB
name, description
| name | description |
|---|---|
| agent-creator | Create new OpenCode agents with a gpt-5.2-codex default. |
Quick Usage (Already Configured)
Create a project agent
opencode agent create
Agent file locations
- Project agents:
.opencode/agents/<name>.md - Global agents:
~/.config/opencode/agents/<name>.md
Default model
Use gpt-5.2-codex as the default model for new agents unless a workflow needs a different model.
Minimal agent template
---
description: One-line description of what the agent does
mode: subagent
model: gpt-5.2-codex
tools:
write: false
edit: false
bash: false
---
You are a specialized agent. Describe your task, boundaries, and expected output.
Notes from OpenCode docs
- Agent files are markdown with YAML frontmatter.
- The markdown filename becomes the agent name.
- Set
modetoprimary,subagent, orall. - If no model is specified, subagents inherit the caller model.
toolscontrols per-agent tool access.
Reference
Follow the official OpenCode agent docs: https://opencode.ai/docs/agents/
First-Time Setup (If Not Configured)
- Run
opencode agent createand choose project scope. - Paste in the default template above and adjust tools as needed.