-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
254 lines (254 loc) · 8.65 KB
/
Copy pathopencode.json
File metadata and controls
254 lines (254 loc) · 8.65 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
{
"$schema": "https://opencode.ai/config.json",
"model": "openai/gpt-5.5",
"agent": {
"spec-explore": {
"description": "Thinking partner. Investigates the codebase, clarifies requirements, and prepares the ground for a proposal. Does NOT write code or final specs.",
"mode": "primary",
"model": "openai/gpt-5.5",
"temperature": 0.7,
"reasoningEffort": "high",
"permission": {
"edit": "deny",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow",
"webfetch": "allow",
"task": "allow",
"question": "allow",
"skill": "allow"
},
"prompt": "{file:./.agents/skills/openspec-explore/SKILL.md}"
},
"spec-propose": {
"description": "OpenSpec propose mode. Generates the full change folder (proposal.md, design.md, specs/, tasks.md) under openspec/changes/<id>/. Only writes inside openspec/.",
"mode": "primary",
"model": "openai/gpt-5.5",
"temperature": 0.2,
"reasoningEffort": "high",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow",
"webfetch": "allow",
"task": "allow",
"question": "allow",
"skill": "allow"
},
"prompt": "{file:./.agents/skills/openspec-propose/SKILL.md}"
},
"spec-apply": {
"description": "OpenSpec apply mode. Implements tasks from an existing change following hexagonal architecture and TDD. ALWAYS reads openspec/changes/<id>/ before editing code. Commits are operator opt-in.",
"mode": "primary",
"model": "openai/gpt-5.5",
"temperature": 0.2,
"reasoningEffort": "medium",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow",
"webfetch": "allow",
"task": "allow",
"question": "allow",
"skill": "allow"
},
"prompt": "{file:./.agents/skills/openspec-apply-change/SKILL.md}"
},
"spec-archive": {
"description": "OpenSpec archive mode. After explicit review, confirms archive policy and delegates spec updates plus the archive move to `openspec archive`.",
"mode": "primary",
"model": "openai/gpt-5.5",
"temperature": 0.1,
"reasoningEffort": "medium",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow",
"task": "allow",
"question": "allow",
"skill": "allow"
},
"prompt": "{file:./.agents/skills/openspec-archive-change/SKILL.md}"
},
"spec-review": {
"description": "OpenSpec review mode. Runs the full review gate before archive: invokes code/tests/architecture reviewers in parallel, consolidates findings, applies fixes, and validates with project-validator until green.",
"mode": "primary",
"model": "openai/gpt-5.5",
"temperature": 0.2,
"reasoningEffort": "high",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow",
"task": "allow",
"question": "allow",
"skill": "allow"
},
"prompt": "{file:./.agents/skills/openspec-review/SKILL.md}"
},
"spec-merge-review": {
"description": "Pre-merge gate for the worktree→PR flow. Given a spec/<change> branch or PR, checks supersession and mergeability against the CURRENT main, runs the reviewer panel on the branch→main diff, confirms the branch is green, and emits MERGE / REBASE-FIRST / CLOSE-SUPERSEDED / FIX. Read-only — never merges; the operator merges. Sits between spec-review and the merge.",
"mode": "primary",
"model": "openai/gpt-5.5",
"temperature": 0.2,
"reasoningEffort": "high",
"permission": {
"edit": "deny",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow",
"task": "allow",
"question": "allow",
"skill": "allow"
},
"prompt": "{file:./.agents/skills/openspec-merge-review/SKILL.md}"
},
"spec-loop": {
"description": "Unattended Ralph-style loop over an OpenSpec change. Implements ONE task per iteration with strict TDD, gated by @project-validator, until every task is checked. Driven externally by scripts/loop.sh.",
"mode": "primary",
"model": "openai/gpt-5.5",
"temperature": 0.2,
"reasoningEffort": "medium",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow",
"webfetch": "deny",
"task": {
"project-validator": "allow",
"*": "deny"
},
"skill": "allow"
},
"prompt": "{file:./.agents/skills/openspec-loop/SKILL.md}"
},
"code-reviewer": {
"description": "Reviews production code in a scoped diff against MATO's design, naming, DI, and error-handling conventions. Applies fixes inside the scope.",
"mode": "subagent",
"model": "openai/gpt-5.5",
"temperature": 0.2,
"reasoningEffort": "high",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow"
},
"prompt": "{file:./.agents/agents/code-reviewer.md}"
},
"tests-reviewer": {
"description": "Reviews test quality and coverage inside a scoped diff. Fixes low-ambiguity issues and adds missing tests when behavior is clear.",
"mode": "subagent",
"model": "openai/gpt-5.5",
"temperature": 0.2,
"reasoningEffort": "medium",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow"
},
"prompt": "{file:./.agents/agents/tests-reviewer.md}"
},
"architecture-reviewer": {
"description": "Reviews hexagonal/DDD architecture compliance inside a scoped diff and fixes violations.",
"mode": "subagent",
"model": "openai/gpt-5.5",
"temperature": 0.2,
"reasoningEffort": "high",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow"
},
"prompt": "{file:./.agents/agents/architecture-reviewer.md}"
},
"frontend-reviewer": {
"description": "Reviews frontend changes (apps/next, apps/admin, apps/mobile) for component, hook, routing, and API integration issues. Applies fixes inside the scope.",
"mode": "subagent",
"model": "openai/gpt-5.5",
"temperature": 0.2,
"reasoningEffort": "medium",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow"
},
"prompt": "{file:./.agents/agents/frontend-reviewer.md}"
},
"project-validator": {
"description": "Runs full project validation (biome check, type-check, bun test), fixes issues, and re-runs until clean.",
"mode": "subagent",
"model": "openai/gpt-5.5",
"temperature": 0,
"reasoningEffort": "low",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow"
},
"prompt": "{file:./.agents/agents/project-validator.md}"
},
"project-validator-fast": {
"description": "Fast scoped validator for interactive apply. Validates only touched packages \u2014 scoped lint + scoped tests + whole-project typecheck. Use after each task during apply. Escalate to @project-validator for broad changes (shared packages, schema, root config) or at review/loop checkpoints.",
"mode": "subagent",
"model": "openai/gpt-5.5",
"temperature": 0,
"reasoningEffort": "low",
"permission": {
"edit": "allow",
"bash": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow"
},
"prompt": "{file:./.agents/agents/project-validator-fast.md}"
}
},
"instructions": [
"AGENTS.md",
".agents/skills/guidelines/git-strategy/SKILL.md"
],
"mcp": {
"postgres": {
"type": "local",
"command": [
"bunx",
"-y",
"@modelcontextprotocol/server-postgres",
"{env:ONEJS_BOILERPLATE_DATABASE_URL}"
],
"enabled": true
},
"playwright": {
"type": "local",
"command": ["bunx", "-y", "@playwright/mcp@latest"],
"enabled": true
},
"context7": {
"type": "local",
"command": ["bunx", "-y", "@upstash/context7-mcp"],
"enabled": true
}
}
}