Files
agent/opencode.json
2026-02-16 12:46:37 +08:00

61 lines
1.6 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"agent": {
"team": {
"description": "管理复杂开发任务的项目经理和团队协调者",
"mode": "primary",
"prompt": "{file:./.opencode/agents/team.md}",
"temperature": 0.3,
"tools": {
"write": false,
"edit": false,
"bash": true
}
},
"planning": {
"description": "专注于深度分析、需求拆解和实施路线图的技术架构师",
"mode": "subagent",
"prompt": "{file:./.opencode/agents/planning.md}",
"temperature": 0.2,
"tools": {
"write": false,
"edit": false,
"bash": false
}
},
"frontend": {
"description": "资深前端与 UmiJS 专家,负责从服务层到 UI/UX 的全栈实施",
"mode": "subagent",
"prompt": "{file:./.opencode/agents/frontend.md}",
"temperature": 0.3,
"tools": {
"write": true,
"edit": true,
"bash": true
}
},
"code-spec": {
"description": "强制执行 Ant Design 和 ProComponents 最佳实践的代码规范专家",
"mode": "subagent",
"prompt": "{file:./.opencode/agents/code-spec.md}",
"temperature": 0.1,
"tools": {
"write": true,
"edit": true,
"bash": false
}
},
"qa-tester": {
"description": "进行功能测试和 i18n 验证的资深 QA 工程师",
"mode": "subagent",
"prompt": "{file:./.opencode/agents/qa-tester.md}",
"temperature": 0.2,
"tools": {
"write": false,
"edit": false,
"bash": true
}
}
}
}