forked from fmflurry/settings-opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc.tui-migration.bak
More file actions
344 lines (344 loc) · 10.8 KB
/
opencode.jsonc.tui-migration.bak
File metadata and controls
344 lines (344 loc) · 10.8 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
{
"$schema": "https://opencode.ai/config.json",
// Theme configuration
// "theme": "nord",
"theme": "kanagawa",
"autoupdate": true,
"default_agent": "build",
"instructions": [
"skills/tdd-workflow/SKILL.md",
"skills/security-review/SKILL.md",
"skills/coding-standards/SKILL.md",
"skills/learned-skillbook/SKILL.md",
],
"agent": {
"build": {
"description": "Primary coding agent for development work",
"mode": "primary",
"model": "openai/gpt-5.2",
"reasoningEffort": "high",
"tools": {
"write": true,
"edit": true,
"bash": true,
"read": true,
},
},
"planner": {
"description": "Expert planning specialist for complex features and refactoring. Use for implementation planning, architectural changes, or complex refactoring.",
"mode": "subagent",
"model": "anthropic/claude-opus-4-5",
"prompt": "{.config/opencode/prompts/agents/planner.txt}",
"tools": {
"read": true,
"bash": true,
"write": false,
"edit": false,
},
},
"architect": {
"description": "Software architecture specialist for system design, scalability, and technical decision-making.",
"mode": "subagent",
"model": "openai/gpt-5.2",
"reasoningEffort": "high",
"prompt": "{.config/opencode/prompts/agents/architect.txt}",
"tools": {
"read": true,
"bash": true,
"write": false,
"edit": false,
},
},
"code-reviewer": {
"description": "Expert code review specialist. Reviews code for quality, security, and maintainability. Use immediately after writing or modifying code.",
"mode": "subagent",
"model": "openai/gpt-5.2",
"reasoningEffort": "high",
"prompt": "{.config/opencode/prompts/agents/code-reviewer.txt}",
"tools": {
"read": true,
"bash": true,
"grep": true,
"write": false,
"edit": false,
},
},
"security-reviewer": {
"description": "Security vulnerability detection and remediation specialist. Use after writing code that handles user input, authentication, API endpoints, or sensitive data.",
"mode": "subagent",
"model": "openai/gpt-5.2",
"reasoningEffort": "high",
"prompt": "{.config/opencode/prompts/agents/security-reviewer.txt}",
"tools": {
"read": true,
"bash": true,
"write": true,
"edit": true,
"grep": true,
"glob": true,
},
},
"tdd-guide": {
"description": "Test-Driven Development specialist enforcing write-tests-first methodology. Use when writing new features, fixing bugs, or refactoring code. Ensures 80%+ test coverage.",
"mode": "subagent",
"model": "openai/gpt-5.3-codex",
"reasoningEffort": "high",
"prompt": "{.config/opencode/prompts/agents/tdd-guide.txt}",
"tools": {
"read": true,
"write": true,
"edit": true,
"bash": true,
"grep": true,
},
},
"build-error-resolver": {
"description": "Build and TypeScript error resolution specialist. Use when build fails or type errors occur. Fixes build/type errors only with minimal diffs.",
"mode": "subagent",
"model": "openai/gpt-5.3-codex",
"reasoningEffort": "high",
"prompt": "{.config/opencode/prompts/agents/build-error-resolver.txt}",
"tools": {
"read": true,
"write": true,
"edit": true,
"bash": true,
"grep": true,
"glob": true,
},
},
"e2e-runner": {
"description": "End-to-end testing specialist using Playwright. Generates, maintains, and runs E2E tests for critical user flows.",
"mode": "subagent",
"model": "zai-coding-plan/glm-5",
"prompt": "{.config/opencode/prompts/agents/e2e-runner.txt}",
"tools": {
"read": true,
"write": true,
"edit": true,
"bash": true,
"grep": true,
"glob": true,
},
},
"doc-updater": {
"description": "Documentation and codemap specialist. Use for updating codemaps and documentation.",
"mode": "subagent",
"model": "openai/gpt-5.2",
"reasoningEffort": "high",
"prompt": "{.config/opencode/prompts/agents/doc-updater.txt}",
"tools": {
"read": true,
"write": true,
"edit": true,
"bash": true,
"grep": true,
"glob": true,
},
},
"refactor-cleaner": {
"description": "Dead code cleanup and consolidation specialist. Use for removing unused code, duplicates, and refactoring.",
"mode": "subagent",
"model": "openai/gpt-5.3-codex",
"reasoningEffort": "high",
"prompt": "{.config/opencode/prompts/agents/refactor-cleaner.txt}",
"tools": {
"read": true,
"write": true,
"edit": true,
"bash": true,
"grep": true,
"glob": true,
},
},
"database-reviewer": {
"description": "PostgreSQL database specialist for query optimization, schema design, security, and performance. Incorporates Supabase best practices.",
"mode": "subagent",
"model": "anthropic/claude-opus-4-5",
"prompt": "{.config/opencode/prompts/agents/database-reviewer.txt}",
"tools": {
"read": true,
"write": true,
"edit": true,
"bash": true,
"grep": true,
"glob": true,
},
},
},
"command": {
"plan": {
"description": "Create a detailed implementation plan for complex features",
"template": "{file:commands/plan.md}\n\n$ARGUMENTS",
"agent": "planner",
"subtask": true,
},
"tdd": {
"description": "Enforce TDD workflow with 80%+ test coverage",
"template": "{file:commands/tdd.md}\n\n$ARGUMENTS",
"agent": "tdd-guide",
"subtask": true,
},
"code-review": {
"description": "Review code for quality, security, and maintainability",
"template": "{file:commands/code-review.md}\n\n$ARGUMENTS",
"agent": "code-reviewer",
"subtask": true,
},
"security": {
"description": "Run comprehensive security review",
"template": "{file:commands/security.md}\n\n$ARGUMENTS",
"agent": "security-reviewer",
"subtask": true,
},
"build-fix": {
"description": "Fix build and TypeScript errors with minimal changes",
"template": "{file:commands/build-fix.md}\n\n$ARGUMENTS",
"agent": "build-error-resolver",
"subtask": true,
},
"e2e": {
"description": "Generate and run E2E tests with Playwright",
"template": "{file:commands/e2e.md}\n\n$ARGUMENTS",
"agent": "e2e-runner",
"subtask": true,
},
"refactor-clean": {
"description": "Remove dead code and consolidate duplicates",
"template": "{file:commands/refactor-clean.md}\n\n$ARGUMENTS",
"agent": "refactor-cleaner",
"subtask": true,
},
"orchestrate": {
"description": "Orchestrate multiple agents for complex tasks",
"template": "{file:commands/orchestrate.md}\n\n$ARGUMENTS",
"agent": "planner",
"subtask": true,
},
"learn": {
"description": "Extract patterns and learnings from session",
"template": "{file:commands/learn.md}\n\n$ARGUMENTS",
},
"checkpoint": {
"description": "Save verification state and progress",
"template": "{file:commands/checkpoint.md}\n\n$ARGUMENTS",
},
"verify": {
"description": "Run verification loop",
"template": "{file:commands/verify.md}\n\n$ARGUMENTS",
},
"eval": {
"description": "Run evaluation against criteria",
"template": "{file:commands/eval.md}\n\n$ARGUMENTS",
},
"update-docs": {
"description": "Update documentation",
"template": "{file:commands/update-docs.md}\n\n$ARGUMENTS",
"agent": "doc-updater",
"subtask": true,
},
"update-codemaps": {
"description": "Update codemaps",
"template": "{file:commands/update-codemaps.md}\n\n$ARGUMENTS",
"agent": "doc-updater",
"subtask": true,
},
"test-coverage": {
"description": "Analyze test coverage",
"template": "{file:commands/test-coverage.md}\n\n$ARGUMENTS",
"agent": "tdd-guide",
"subtask": true,
},
"setup-pm": {
"description": "Configure package manager",
"template": "{file:commands/setup-pm.md}\n\n$ARGUMENTS",
},
"skill-create": {
"description": "Generate skills from git history",
"template": "{file:commands/skill-create.md}\n\n$ARGUMENTS",
},
"instinct-status": {
"description": "View learned instincts",
"template": "{file:commands/instinct-status.md}\n\n$ARGUMENTS",
},
"instinct-import": {
"description": "Import instincts",
"template": "{file:commands/instinct-import.md}\n\n$ARGUMENTS",
},
"instinct-export": {
"description": "Export instincts",
"template": "{file:commands/instinct-export.md}\n\n$ARGUMENTS",
},
"evolve": {
"description": "Cluster instincts into skills",
"template": "{file:commands/evolve.md}\n\n$ARGUMENTS",
},
},
"mcp": {
"zai-mcp-server": {
"type": "local",
"command": ["npx", "-y", "@z_ai/mcp-server"],
"environment": {
"Z_AI_API_KEY": "8ea39da100a541c483e84ae32e46cae4.gKqRaRGHVBrw1Y6r",
"Z_AI_MODE": "ZAI",
},
},
"web-search-prime": {
"type": "remote",
"url": "https://api.z.ai/api/mcp/web_search_prime/mcp",
"headers": {
"Authorization": "8ea39da100a541c483e84ae32e46cae4.gKqRaRGHVBrw1Y6r",
},
},
"web-reader": {
"type": "remote",
"url": "https://api.z.ai/api/mcp/web_reader/mcp",
"headers": {
"Authorization": "8ea39da100a541c483e84ae32e46cae4.gKqRaRGHVBrw1Y6r",
},
},
"context7": {
"type": "local",
"command": ["npx", "-y", "@upstash/context7-mcp@latest"],
},
"wallaby": {
"type": "local",
"command": ["npx", "-y", "-c", "node ~/.wallaby/mcp/"],
},
"Figma": {
"type": "remote",
"url": "https://mcp.figma.com/mcp",
"headers": {},
"enabled": false,
},
},
"provider": {
"kimi-for-coding": {
"name": "Kimi For Coding",
"npm": "@ai-sdk/anthropic",
"options": {
"baseURL": "https://api.kimi.com/coding/v1",
},
"models": {
"k2p5": {
"name": "Kimi K2.5",
"reasoning": true,
"attachment": false,
"limit": {
"context": 262144,
"output": 32768,
},
"modalities": {
"input": ["text", "image", "video"],
"output": ["text"],
},
"options": {
"interleaved": {
"field": "reasoning_content",
},
},
},
},
},
},
}