-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
174 lines (174 loc) · 5.24 KB
/
Copy pathopencode.json
File metadata and controls
174 lines (174 loc) · 5.24 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
{
"$schema": "https://opencode.ai/config.json",
"model": "anthropic/claude-sonnet-4-5",
"mcp": {
"cloudflare-bindings": {
"type": "remote",
"url": "https://bindings.mcp.cloudflare.com/mcp",
"enabled": true
},
"cloudflare-docs": {
"type": "remote",
"url": "https://docs.mcp.cloudflare.com/mcp",
"enabled": true
},
"cloudflare": {
"type": "remote",
"url": "https://mcp.cloudflare.com/mcp",
"enabled": true
},
"cloudflare-observability": {
"type": "remote",
"url": "https://observability.mcp.cloudflare.com/mcp",
"enabled": false
},
"resend": {
"type": "local",
"command": ["npx", "-y", "resend-mcp"],
"env": {
"RESEND_API_KEY": "{env:RESEND_API_KEY}"
},
"enabled": false
},
"github": {
"type": "local",
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "{env:GITHUB_TOKEN}"
},
"enabled": false
}
},
"small_model": "anthropic/claude-haiku-4-5",
"instructions": [
"CLAUDE.md",
"instructions/a11y.instructions.md",
"instructions/performance-optimization.instructions.md",
"instructions/security-and-owasp.instructions.md",
"instructions/nodejs-javascript-vitest.instructions.md",
"instructions/reactjs.instructions.md",
"instructions/playwright-typescript.instructions.md",
"instructions/self-explanatory-code-commenting.instructions.md",
"instructions/sql-sp-generation.instructions.md",
"CONTRIBUTING.md",
"docs/API_DOCUMENTATION.md",
"docs/SQL_SAFETY.md",
"docs/DATABASE.md",
"docs/DEPLOYMENT.md",
"docs/QUICK_START.md",
"docs/ADMIN_HANDBOOK.md",
"docs/BACKEND_FRAMEWORK.md",
"docs/PERFORMANCE_RECOMMENDATIONS.md"
],
"plugin": [
"opencode-notify",
"opencode-snip",
"opencode-update-notifier"
],
"agent": {
"code-architect": {
"description": "Designs feature architectures by analyzing codebase patterns and conventions, then providing comprehensive implementation blueprints",
"mode": "subagent",
"color": "#00ff88",
"permission": {
"read": "allow",
"glob": "allow",
"grep": "allow",
"edit": "deny",
"bash": "deny"
}
},
"code-explorer": {
"description": "Traces codebase features, maps architecture layers, and documents dependencies to inform new development",
"mode": "subagent",
"color": "#ffd700",
"permission": {
"read": "allow",
"glob": "allow",
"grep": "allow",
"edit": "deny",
"bash": "deny"
}
},
"code-reviewer": {
"description": "Reviews code for bugs, logic errors, security vulnerabilities, and adherence to project conventions",
"mode": "subagent",
"color": "#ff4444",
"temperature": 0.1,
"permission": {
"edit": "deny",
"bash": "deny"
}
},
"db-architect": {
"description": "D1/SQLite schema design and migration planning specialist for SetTimes.ca",
"mode": "subagent",
"color": "#4488ff",
"permission": {
"edit": "deny",
"bash": "ask"
}
}
},
"command": {
"quality": {
"template": "Run the full quality check: cd frontend && npx prettier --write \"src/**/*.{js,jsx,json,css}\" && npm run lint && npm run format:check && npm test -- --run && npm run build",
"description": "Run lint + format + tests + build",
"agent": "build",
"subtask": true
},
"deploy-dev": {
"template": "Run the dev deployment: build frontend first with 'npm --prefix frontend run build', then deploy to Cloudflare Pages dev branch with 'npx wrangler pages deploy frontend/dist --project-name settimesdotca --branch dev'",
"description": "Deploy to dev environment",
"subtask": true
},
"deploy-prod": {
"template": "Run the production deployment. REMINDER: ALLOW_ADMIN_SIGNUP must never be set in production. Build frontend first with 'npm --prefix frontend run build', then deploy with 'npx wrangler pages deploy frontend/dist --project-name settimesdotca --branch main'",
"description": "Deploy to production",
"subtask": true
},
"schema": {
"template": "Validate the database schema with 'npm run validate:schema' and the OpenAPI spec with 'npm run validate:openapi'",
"description": "Validate DB schema and OpenAPI spec",
"subtask": true
},
"migrate": {
"template": "Run the local migration script: bash scripts/migrate-local-db.sh",
"description": "Run local D1 migrations",
"subtask": true
}
},
"permission": {
"edit": "ask",
"bash": "ask",
"webfetch": "allow",
"websearch": "allow",
"read": "ask",
"glob": "allow",
"grep": "allow",
"task": "ask",
"question": "allow"
},
"compaction": {
"auto": true,
"prune": true,
"reserved": 15000
},
"watcher": {
"ignore": [
"node_modules/**",
"frontend/node_modules/**",
"dist/**",
"frontend/dist/**",
".wrangler/**",
"coverage/**",
"playwright-report/**",
"test-results/**",
"output/**",
"archive/**",
"plan/**",
".git/**",
".DS_Store"
]
}
}