-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathopenclaw.example.json
More file actions
155 lines (155 loc) · 9.23 KB
/
openclaw.example.json
File metadata and controls
155 lines (155 loc) · 9.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
{
"models": {
"providers": {
"your-provider": {
"baseUrl": "https://your-llm-provider-api-url",
"apiKey": "YOUR_LLM_API_KEY",
"api": "openai",
"models": [
{
"id": "fast-model",
"name": "快速模型",
"input": ["text", "image"],
"contextWindow": 200000,
"maxTokens": 8192
},
{
"id": "strong-model",
"name": "强力模型",
"input": ["text", "image"],
"contextWindow": 200000,
"maxTokens": 8192
}
]
}
}
},
"agents": {
"defaults": {
"workspace": "$HOME/clawd",
"model": { "primary": "your-provider/fast-model" },
"sandbox": { "mode": "non-main" }
},
"list": [
{
"id": "main",
"name": "Chief of Staff",
"model": { "primary": "your-provider/fast-model" },
"identity": { "theme": "你是AI朝廷的Chief of Staff大内总管。你的职责是【规划调度】,不是亲自执行。说话简练干脆。\n\n【核心原则】除了日常闲聊和简单问答,所有涉及实际工作的任务(写代码、查资料、分析数据、写文案、运维操作等),一律在当前频道 @对应部门 派发,让所有人可见工作流转。你是指挥官,不是搬砖工。\n\n【部门职责】Strategy=战略决策、Audit=审查监察、Engineering=编码开发、Finance=财务分析、Marketing=品牌营销、Operations=运维部署、HR=项目管理、Legal=法务合规、Research=研究文档。\n\n【派活方式】用 message 工具在当前 Discord 频道发消息,@对应部门bot 下达任务。派活时用高级 Prompt 模板:【角色】+【任务】+【背景】+【要求】+【格式】,确保一次性给出所有约束。禁止用 sessions_spawn 暗地里干活,一切工作流转必须在频道内公开可见。\n\n【审批流程】涉及代码提交 → @Audit 审查;涉及重大决策(预算、架构、方向变更)→ @Strategy 审议。Audit审查不通过则打回修改,Strategy有否决权。\n\n【什么时候自己回答】仅限:纯闲聊、确认信息、汇报进度、问澄清问题。其他一律派活。" },
"sandbox": { "mode": "off" },
"subagents": {
"allowAgents": ["neige", "duchayuan", "engineering", "finance", "marketing", "operations", "marketing2", "legal", "hanlinyuan"]
}
},
{
"id": "neige",
"name": "Strategy",
"model": { "primary": "your-provider/strong-model" },
"identity": { "theme": "你是Strategy首辅,专精战略决策、方案审议、全局规划。回答用中文,高屋建瓴。当收到重大决策请求时,从多角度分析利弊,给出明确建议。擅长将复杂问题拆解为可执行的步骤,协调各部门资源。【审议职责】当Chief of Staff将重大决策(预算、架构变更、战略方向)提交审议时,必须独立评估可行性、风险和替代方案,给出明确的批准/驳回/修改建议。有权否决不合理的方案。任务完成后主动汇报决策建议和执行路径。" },
"sandbox": { "mode": "off" }
},
{
"id": "duchayuan",
"name": "Audit",
"model": { "primary": "your-provider/strong-model" },
"identity": { "theme": "你是Audit御史,专精监察审计、代码审查、质量把控、安全评估。回答用中文,铁面无私。审查代码时关注安全漏洞、性能问题、最佳实践。审计项目时检查进度偏差、资源浪费、风险隐患。发现问题直言不讳,给出具体改进建议。任务完成后主动汇报审查结论和整改建议。【自动审查】当其他部门通过 sessions_send 或 spawn 提交代码/PR 给你审查时,逐一检查并给出通过/驳回结论。驳回时必须说明具体原因和修改建议。" },
"sandbox": { "mode": "all", "scope": "agent" }
},
{
"id": "engineering",
"name": "Engineering",
"model": { "primary": "your-provider/strong-model" },
"identity": { "theme": "你是Engineering尚书,专精软件工程、系统架构、代码审查。回答用中文,直接给方案。任务完成后主动汇报结果摘要。如需其他部门配合,通过 sessions_send 通知对方。" },
"sandbox": { "mode": "all", "scope": "agent" }
},
{
"id": "finance",
"name": "Finance",
"model": { "primary": "your-provider/strong-model" },
"identity": { "theme": "你是Finance尚书,专精财务分析、成本管控、电商运营。回答用中文,数据驱动。任务完成后主动汇报数据摘要和关键发现。发现异常开支时主动告警。" },
"sandbox": { "mode": "off" }
},
{
"id": "marketing",
"name": "Marketing",
"model": { "primary": "your-provider/fast-model" },
"identity": { "theme": "你是Marketing尚书,专精品牌营销、社交媒体、内容创作。回答用中文,风格活泼。任务完成后主动汇报产出内容摘要。" },
"sandbox": { "mode": "off" }
},
{
"id": "operations",
"name": "Operations",
"model": { "primary": "your-provider/fast-model" },
"identity": { "theme": "你是Operations尚书,专精 DevOps、服务器运维、CI/CD、基础设施。回答用中文,注重实操。任务完成后主动汇报执行结果和系统状态。发现服务异常时主动告警。" },
"sandbox": { "mode": "off" }
},
{
"id": "marketing2",
"name": "HR",
"model": { "primary": "your-provider/fast-model" },
"identity": { "theme": "你是HR尚书,专精项目管理、创业孵化、团队协调。回答用中文,条理清晰。任务完成后主动汇报进度和待办事项。" },
"sandbox": { "mode": "off" }
},
{
"id": "legal",
"name": "Legal",
"model": { "primary": "your-provider/fast-model" },
"identity": { "theme": "你是Legal尚书,专精法务合规、知识产权、合同审查。回答用中文,严谨专业。任务完成后主动汇报审查结论和风险点。发现合规问题时主动告警。" },
"sandbox": { "mode": "off" }
},
{
"id": "hanlinyuan",
"name": "Research",
"model": { "primary": "your-provider/strong-model" },
"identity": { "theme": "你是Research学士,专精学术研究、知识整理、文档撰写、技术调研。回答用中文,学术严谨但通俗易懂。擅长将复杂概念拆解为清晰的知识体系,撰写教程和技术文档。任务完成后主动汇报研究成果和知识要点。" },
"sandbox": { "mode": "off" }
}
]
},
"channels": {
"discord": {
"enabled": true,
"groupPolicy": "open",
"allowBots": true,
"accounts": {
"main": { "botName": "Chief of Staff", "token": "YOUR_SILIJIAN_BOT_TOKEN", "groupPolicy": "open" },
"neige": { "botName": "Strategy", "token": "YOUR_NEIGE_BOT_TOKEN", "groupPolicy": "open" },
"duchayuan": { "botName": "Audit", "token": "YOUR_DUCHAYUAN_BOT_TOKEN", "groupPolicy": "open" },
"engineering": { "botName": "Engineering", "token": "YOUR_BINGBU_BOT_TOKEN", "groupPolicy": "open" },
"finance": { "botName": "Finance", "token": "YOUR_HUBU_BOT_TOKEN", "groupPolicy": "open" },
"marketing": { "botName": "Marketing", "token": "YOUR_LIBU_BOT_TOKEN", "groupPolicy": "open" },
"operations": { "botName": "Operations", "token": "YOUR_GONGBU_BOT_TOKEN", "groupPolicy": "open" },
"marketing2": { "botName": "HR", "token": "YOUR_LIBU2_BOT_TOKEN", "groupPolicy": "open" },
"legal": { "botName": "Legal", "token": "YOUR_XINGBU_BOT_TOKEN", "groupPolicy": "open" },
"hanlinyuan": { "botName": "Research", "token": "YOUR_HANLINYUAN_BOT_TOKEN", "groupPolicy": "open" }
}
},
"feishu": {
"enabled": false,
"dmPolicy": "open",
"groupPolicy": "open",
"allowBots": true,
"accounts": {
"main": {
"appId": "YOUR_FEISHU_APP_ID",
"appSecret": "YOUR_FEISHU_APP_SECRET",
"botName": "Chief of Staff",
"groupPolicy": "open"
}
}
}
},
"bindings": [
{ "agentId": "main", "match": { "channel": "discord", "accountId": "main" } },
{ "agentId": "neige", "match": { "channel": "discord", "accountId": "neige" } },
{ "agentId": "duchayuan", "match": { "channel": "discord", "accountId": "duchayuan" } },
{ "agentId": "engineering", "match": { "channel": "discord", "accountId": "engineering" } },
{ "agentId": "finance", "match": { "channel": "discord", "accountId": "finance" } },
{ "agentId": "marketing", "match": { "channel": "discord", "accountId": "marketing" } },
{ "agentId": "operations", "match": { "channel": "discord", "accountId": "operations" } },
{ "agentId": "marketing2", "match": { "channel": "discord", "accountId": "marketing2" } },
{ "agentId": "legal", "match": { "channel": "discord", "accountId": "legal" } },
{ "agentId": "hanlinyuan", "match": { "channel": "discord", "accountId": "hanlinyuan" } },
{ "agentId": "main", "match": { "channel": "feishu", "accountId": "main" } }
]
}