-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc
More file actions
246 lines (246 loc) · 8.27 KB
/
opencode.jsonc
File metadata and controls
246 lines (246 loc) · 8.27 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
{
"$schema": "https://opencode.ai/config.json",
"model": "openai/gpt-5.4",
"small_model": "opencode-go/glm-5",
"default_agent": "worker",
"compaction": {
"auto": true,
"prune": true,
"reserved": 12000
},
"instructions": [
"./instructions.md",
"./instructions/agent-routing.md",
"./instructions/frontend-design.md",
"./instructions/teamwork-continuation.md",
"./instructions/code-quality.md"
],
"plugin": [],
"command": {
"ship": {
"description": "Implement with worker teamwork flow",
"agent": "worker",
"template": "Implement the requested change using the full worker flow: understand the requirement, gather targeted context, delegate code changes to the implementation subagent, review non-trivial changes, verify results, and return a concise production-ready summary."
},
"frontend": {
"description": "Run a design-led frontend task with SEO optimization",
"agent": "worker",
"template": "Treat this as a design-led frontend task. Lock the purpose, audience, tone, visual direction, and one memorable idea first. Use the frontend-design skill and the frontend_brief tool before implementation. Also load the seo-optimizer skill to ensure all pages meet technical SEO requirements (title tags, meta descriptions, heading hierarchy, image alt text, schema markup, Core Web Vitals). Then delegate coding and verify responsiveness/accessibility/SEO. Task: $ARGUMENTS"
},
"resume-safe": {
"description": "Continue safely with fallback handoff",
"agent": "worker",
"template": "Continue the current task safely. Reconstruct the current objective, active files, acceptance criteria, completed work, remaining work, blockers, and verification state. If the implementation path is blocked by context, tool, or model limits, generate a structured handoff and continue with the backup implementation agent instead of restarting."
}
},
"permission": {
"workflow_handoff": "allow",
"frontend_brief": "allow",
"clean_code_guard": "allow"
},
"provider": {
"openai": {
"models": {
"gpt-5.4": {
"options": {
"reasoningEffort": "high",
"textVerbosity": "medium",
"reasoningSummary": "concise"
}
}
}
},
"openrouter": {
"models": {
"deepseek/deepseek-v3.2": {
"name": "DeepSeek V3.2",
"options": {
"provider": {
"allow_fallbacks": false
}
}
}
}
}
},
"lsp": {
"tailwindcss": {
"command": [
"npx",
"@tailwindcss/language-server",
"--stdio"
],
"extensions": [
".html",
".css",
".js",
".ts",
".jsx",
".tsx",
".vue",
".svelte"
]
}
},
"agent": {
"build": {
"description": "Full-access implementation agent for direct coding tasks",
"mode": "primary",
"model": "openai/gpt-5.4",
"prompt": "{file:./prompts/build.txt}",
"steps": 28,
"permission": {
"skill": {
"*": "allow",
"pr-review": "allow",
"internal-*": "deny",
"experimental-*": "ask"
}
}
},
"plan": {
"description": "Read-only planner for analysis and implementation planning",
"mode": "primary",
"model": "openai/gpt-5.4",
"temperature": 0.1,
"steps": 12,
"permission": {
"todowrite": "allow",
"skill": {
"*": "allow",
"pr-review": "allow",
"internal-*": "deny",
"experimental-*": "ask"
}
}
},
"worker": {
"description": "Plans and orchestrates work with GPT-5.4, delegating implementation to specialized subagents",
"mode": "primary",
"model": "openai/gpt-5.4",
"prompt": "{file:./prompts/worker.txt}",
"temperature": 0.2,
"steps": 16,
"color": "info",
"permission": {
"todowrite": "allow",
"edit": "deny",
"bash": "deny",
"task": {
"*": "deny",
"worker-impl": "allow",
"worker-impl-backup": "allow",
"worker-review": "allow",
"general": "allow",
"explore": "allow"
},
"skill": {
"*": "allow",
"pr-review": "allow",
"internal-*": "deny",
"experimental-*": "ask"
}
}
},
"worker-impl": {
"description": "Hidden implementation subagent that applies code changes with DeepSeek and verifies results",
"mode": "subagent",
"hidden": true,
"model": "openrouter/deepseek/deepseek-v3.2",
"prompt": "{file:./prompts/worker-impl.txt}",
"temperature": 0.1,
"steps": 32,
"permission": {
"task": {
"*": "deny"
},
"skill": {
"*": "allow",
"pr-review": "allow",
"internal-*": "deny",
"experimental-*": "ask"
}
}
},
"worker-impl-backup": {
"description": "Backup implementation subagent that continues from handoff when worker-impl is blocked",
"mode": "subagent",
"hidden": true,
"model": "opencode-go/glm-5",
"prompt": "{file:./prompts/worker-impl-backup.txt}",
"temperature": 0.1,
"steps": 20,
"permission": {
"task": {
"*": "deny"
},
"skill": {
"*": "allow",
"pr-review": "allow",
"internal-*": "deny",
"experimental-*": "ask"
}
}
},
"worker-review": {
"description": "Code review subagent that checks for clean code, correctness, and unnecessary complexity",
"mode": "subagent",
"hidden": true,
"model": "openai/gpt-5.4",
"prompt": "{file:./prompts/worker-review.txt}",
"temperature": 0.1,
"steps": 12,
"permission": {
"edit": "deny",
"bash": "deny",
"webfetch": "deny",
"task": {
"*": "deny"
},
"skill": {
"*": "allow",
"pr-review": "allow",
"internal-*": "deny",
"experimental-*": "ask"
}
}
}
},
"watcher": {
"ignore": [
"node_modules/**",
"dist/**",
".git/**",
"venv/**",
".next/**",
".turbo/**",
".cache/**",
"coverage/**",
"build/**"
]
},
"formatter": {
"prettier": {
"disabled": false
},
"uv": {
"disabled": false
}
},
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"enabled": true
},
"playwright": {
"type": "local",
"command": [
"npx",
"-y",
"@playwright/mcp@latest"
],
"enabled": true
}
}
}