-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
354 lines (354 loc) · 10.6 KB
/
opencode.json
File metadata and controls
354 lines (354 loc) · 10.6 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
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
{
"$schema": "https://opencode.ai/config.json",
"agent": {
"code-reviewer": {
"description": "Code review agent for quality, correctness, and standards adherence. Delegates to specialized subagents for security, test coverage, and performance analysis.",
"mode": "primary",
"model": "github-copilot/claude-opus-4.5",
"prompt": "{file:./.github/agents/CodeReviewer.opencode.md}",
"tools": {
"read": true,
"write": true,
"edit": true,
"glob": true,
"grep": true,
"bash": true,
"task": true,
"context7_*": true
},
"permission": {
"write": {
"recommendations.md": "allow",
"*": "deny"
},
"edit": {
"recommendations.md": "allow",
"*": "deny"
},
"bash": {
"git diff*": "allow",
"git log*": "allow",
"git show*": "allow",
"git status": "allow",
"*": "deny"
}
}
},
"security-reviewer": {
"description": "Security-focused code review subagent for vulnerabilities and security best practices. Analyzes auth, input validation, data handling, and dependencies.",
"mode": "subagent",
"model": "github-copilot/claude-sonnet-4",
"prompt": "{file:./.github/agents/SecurityReviewer.opencode.md}",
"tools": {
"read": true,
"glob": true,
"grep": true
}
},
"test-coverage-reviewer": {
"description": "Test coverage review subagent for test adequacy and coverage analysis. Checks coverage against policy, test quality, and identifies gaps.",
"mode": "subagent",
"model": "github-copilot/claude-sonnet-4",
"prompt": "{file:./.github/agents/TestCoverageReviewer.opencode.md}",
"tools": {
"read": true,
"glob": true,
"grep": true,
"bash": true
},
"permission": {
"bash": {
"npm test*": "allow",
"npm run test*": "allow",
"pnpm test*": "allow",
"pnpm run test*": "allow",
"vitest*": "allow",
"*": "deny"
}
}
},
"performance-reviewer": {
"description": "Performance review subagent for efficiency, resource usage, and scalability analysis. Identifies complexity issues, memory leaks, and optimization opportunities.",
"mode": "subagent",
"model": "github-copilot/claude-sonnet-4",
"prompt": "{file:./.github/agents/PerformanceReviewer.opencode.md}",
"tools": {
"read": true,
"glob": true,
"grep": true
}
},
"milestone-manager": {
"description": "Keep track of project milestones and progress.",
"mode": "subagent",
"model": "github-copilot/gpt-5.1-codex-mini",
"prompt": "{file:./.github/agents/MilestoneManager.opencode.md}",
"tools": {
"write": true,
"edit": true,
"glob": true,
"grep": true
}
},
"planner": {
"description": "Planning agent for creating detailed, actionable project plans. Use for feature planning, migration planning, and breaking down complex tasks.",
"mode": "primary",
"model": "github-copilot/claude-opus-4.5",
"prompt": "{file:./.github/agents/Planner.opencode.md}",
"tools": {
"read": true,
"write": true,
"edit": true,
"glob": true,
"grep": true,
"bash": true,
"webfetch": true,
"task": true,
"context7_*": true
},
"permission": {
"write": {
"plans/**": "allow",
"docs/**": "allow"
},
"edit": {
"plans/**": "allow",
"docs/**": "allow"
},
"bash": {
"git branch*": "allow",
"git checkout*": "allow",
"git switch*": "allow",
"git add*": "allow",
"git commit*": "allow",
"git push*": "allow",
"git status": "allow",
"git diff*": "allow",
"git log*": "allow",
"*": "deny"
},
"skill": {
"frontend-design": "allow"
}
}
},
"plan-researcher": {
"description": "Research subagent for comprehensive context gathering during planning. Delegates research tasks from the planner agent.",
"mode": "subagent",
"model": "github-copilot/claude-sonnet-4",
"prompt": "{file:./.github/agents/PlanResearcher.opencode.md}",
"tools": {
"read": true,
"write": true,
"edit": true,
"glob": true,
"grep": true,
"webfetch": true,
"context7_*": true
},
"permission": {
"write": {
"plans/**": "allow",
"docs/**": "allow"
},
"edit": {
"plans/**": "allow",
"docs/**": "allow"
}
}
},
"developer": {
"description": "Developer agent for clean, testable software through TDD methodology. Delegates to specialized subagents for test writing, design validation, and refactoring.",
"mode": "primary",
"model": "github-copilot/claude-opus-4.5",
"prompt": "{file:./.github/agents/Developer.opencode.md}",
"tools": {
"read": true,
"write": true,
"edit": true,
"glob": true,
"grep": true,
"bash": true,
"task": true,
"webfetch": true,
"skill": true,
"todowrite": true,
"todoread": true,
"context7_*": true
},
"permission": {
"write": {
"vitest.config.ts": "allow",
"vite.config.ts": "allow",
"tailwind.config.ts": "allow",
"package.json": "allow",
"index.html": "allow",
"src/**": "allow",
"tests/**": "allow",
"test/**": "allow",
"docs/designs/**": "allow",
"docs/architecture/**": "allow",
"plans/TODO.md": "allow"
},
"edit": {
"vitest.config.ts": "allow",
"vite.config.ts": "allow",
"tailwind.config.ts": "allow",
"package.json": "allow",
"index.html": "allow",
"src/**": "allow",
"tests/**": "allow",
"test/**": "allow",
"docs/designs/**": "allow",
"docs/architecture/**": "allow",
"plans/TODO.md": "allow"
},
"bash": {
"npm test*": "allow",
"npm run test*": "allow",
"npm run build*": "allow",
"npm run lint*": "allow",
"pnpm test*": "allow",
"pnpm run test*": "allow",
"pnpm run build*": "allow",
"pnpm run lint*": "allow",
"vitest*": "allow",
"git branch*": "allow",
"git checkout*": "allow",
"git switch*": "allow",
"git add*": "allow",
"git commit*": "allow",
"git push*": "allow",
"git status": "allow",
"git diff*": "allow",
"git log*": "allow",
"gh pr create*": "allow",
"tail*": "allow",
"grep*": "allow",
"sed*": "allow",
"sort*": "allow",
"echo*": "allow"
},
"skill": {
"frontend-design": "allow"
}
}
},
"tdd-test-writer": {
"description": "TDD test writing subagent for comprehensive test-first development. Writes failing tests before implementation.",
"mode": "subagent",
"model": "github-copilot/claude-haiku-4.5",
"prompt": "{file:./.github/agents/TDDTestWriter.opencode.md}",
"tools": {
"read": true,
"write": true,
"edit": true,
"glob": true,
"grep": true,
"bash": true
},
"permission": {
"write": {
"tests/**": "allow",
"test/**": "allow",
"**/*.test.*": "allow",
"**/*.spec.*": "allow",
"*": "deny"
},
"edit": {
"tests/**": "allow",
"test/**": "allow",
"**/*.test.*": "allow",
"**/*.spec.*": "allow",
"*": "deny"
},
"bash": {
"npm test*": "allow",
"npm run test*": "allow",
"pnpm test*": "allow",
"pnpm run test*": "allow",
"vitest*": "allow",
"*": "deny"
}
}
},
"design-validator": {
"description": "Design validation subagent for verifying design completeness before coding. Validates architecture and design documentation.",
"mode": "subagent",
"model": "github-copilot/claude-sonnet-4",
"prompt": "{file:./.github/agents/DesignValidator.opencode.md}",
"tools": {
"read": true,
"glob": true,
"grep": true
},
"permission": {
"skill": {
"frontend-design": "allow"
}
}
},
"refactor-assistant": {
"description": "Refactoring subagent for systematic code improvement while maintaining test coverage. Applies refactoring patterns safely.",
"mode": "subagent",
"model": "github-copilot/claude-sonnet-4",
"prompt": "{file:./.github/agents/RefactorAssistant.opencode.md}",
"tools": {
"read": true,
"write": true,
"edit": true,
"glob": true,
"grep": true,
"bash": true
},
"permission": {
"write": {
"src/**": "allow",
"*": "deny"
},
"edit": {
"src/**": "allow",
"*": "deny"
},
"bash": {
"npm test*": "allow",
"npm run test*": "allow",
"pnpm test*": "allow",
"pnpm run test*": "allow",
"vitest*": "allow",
"*": "deny"
},
"skill": {
"frontend-design": "allow"
}
}
}
},
"command": {
"write-ears": {
"description": "Generate EARS specification from requirements.",
"template": "{file:./.github/prompts/write-ears-spec.prompt.md}",
"model": "github-copilot/claude-haiku-4.5"
},
"write-adr": {
"description": "Generate Architecture Decision Record (ADR) from design decisions.",
"template": "{file:./.github/prompts/write-adr.prompt.md}",
"model": "github-copilot/claude-haiku-4.5"
},
"write-prd": {
"description": "Generate Product Requirements Document (PRD) from feature requests.",
"template": "{file:./.github/prompts/write-prd.prompt.md}",
"model": "github-copilot/claude-haiku-4.5"
}
},
"mcp": {
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"headers": {
"CONTEXT7_API_KEY": "{env:CONTEXT7_API_KEY}"
},
"enabled": true
}
}
}