-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc
More file actions
240 lines (215 loc) · 5.82 KB
/
Copy pathopencode.jsonc
File metadata and controls
240 lines (215 loc) · 5.82 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
{
"$schema": "https://opencode.ai/config.json",
"model": "minimax-coding-plan/MiniMax-M2.7",
"instructions": [
"AGENTS.md",
"CLAUDE.md",
".opencode/skills/*.md"
],
"permission": {
"read": {
"*": "allow",
".env": "deny",
".env.*": "deny",
"**/*.pem": "deny",
"**/*.key": "deny",
"**/id_rsa": "deny",
"**/id_ed25519": "deny",
"**/*token*": "ask",
"**/*secret*": "ask"
},
"edit": {
"*": "ask",
"src/providers/**": "allow",
"src/channels/**": "allow",
"src/memory/**": "allow",
"src/observability/**": "allow",
"src/peripherals/**": "ask",
"src/config/**": "ask",
"src/agent/**": "ask",
"src/tools/**": "ask",
"src/security/**": "ask",
"src/runtime/**": "ask",
"src/gateway/**": "ask",
"tests/**": "allow",
"test_helpers/**": "allow",
"benches/**": "ask",
"docs/**": "allow",
"examples/**": "allow",
"scripts/**": "ask",
"dev/**": "ask",
"README.md": "ask",
"README.*.md": "ask",
"AGENTS.md": "ask",
"CLAUDE.md": "ask",
"CONTRIBUTING.md": "ask",
"Cargo.toml": "ask",
"Cargo.lock": "ask",
"deny.toml": "ask",
"clippy.toml": "ask",
"rustfmt.toml": "ask",
".github/workflows/**": "ask",
".env": "deny",
".env.*": "deny",
"**/*.pem": "deny",
"**/*.key": "deny",
"**/id_rsa": "deny",
"**/id_ed25519": "deny"
},
"bash": {
"*": "ask",
"pwd": "allow",
"ls*": "allow",
"find *": "allow",
"rg *": "allow",
"grep *": "allow",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow",
"git branch*": "allow",
"git worktree list*": "allow",
"cargo fmt --all -- --check": "allow",
"cargo fmt --all": "ask",
"cargo check*": "allow",
"cargo test*": "allow",
"cargo clippy --all-targets -- -D warnings": "allow",
"cargo clippy*": "ask",
"cargo build*": "ask",
"cargo bench*": "ask",
"cargo deny*": "ask",
"./dev/ci.sh all": "ask",
"./dev/ci.sh *": "ask",
"bash -n bootstrap.sh scripts/bootstrap.sh scripts/install.sh": "allow",
"rm *": "deny",
"rm -rf *": "deny",
"sudo *": "deny",
"chmod *": "ask",
"chown *": "deny",
"git push*": "deny",
"git reset --hard*": "deny",
"git clean*": "deny",
"cargo publish*": "deny",
"docker system prune*": "deny"
},
"external_directory": "ask",
"webfetch": "ask",
"websearch": "ask",
"doom_loop": "ask"
},
"formatter": {
"rustfmt": {
"command": ["cargo", "fmt", "--all"],
"extensions": [".rs"]
}
},
"agent": {
"architect": {
"description": "Read-only RantAIClaw architecture planner. Use for design, module boundaries, trait/factory decisions, and risky changes.",
"mode": "subagent",
"temperature": 1,
"permission": {
"read": "allow",
"edit": "deny",
"bash": {
"git status*": "allow",
"git diff*": "allow",
"rg *": "allow",
"grep *": "allow",
"cargo check*": "allow",
"*": "ask"
}
}
},
"builder": {
"description": "Main implementation agent for focused Rust changes.",
"mode": "primary",
"temperature": 1,
"permission": {
"read": "allow",
"edit": "ask",
"bash": {
"git status*": "allow",
"git diff*": "allow",
"cargo fmt --all -- --check": "allow",
"cargo check*": "allow",
"cargo test*": "allow",
"cargo clippy --all-targets -- -D warnings": "allow",
"./dev/ci.sh all": "ask",
"rm *": "deny",
"sudo *": "deny",
"git push*": "deny",
"*": "ask"
}
}
},
"reviewer": {
"description": "Read-only reviewer for correctness, security, rollback, docs impact, and trait/factory boundaries.",
"mode": "subagent",
"temperature": 1,
"permission": {
"read": "allow",
"edit": "deny",
"bash": {
"git status*": "allow",
"git diff*": "allow",
"cargo check*": "allow",
"cargo test*": "allow",
"*": "ask"
}
}
},
"security": {
"description": "Security-boundary reviewer for gateway, runtime, tools, shell, filesystem, policy, pairing, secret handling, and webhook behavior.",
"mode": "subagent",
"temperature": 1,
"permission": {
"read": "allow",
"edit": "deny",
"bash": {
"git diff*": "allow",
"rg *": "allow",
"cargo test*": "allow",
"*": "ask"
}
}
},
"tester": {
"description": "Test specialist. Adds focused deterministic tests without broad product rewrites.",
"mode": "subagent",
"temperature": 1,
"permission": {
"read": "allow",
"edit": {
"tests/**": "allow",
"test_helpers/**": "allow",
"src/**/*.rs": "ask",
"*": "ask"
},
"bash": {
"cargo test*": "allow",
"cargo check*": "allow",
"cargo fmt --all -- --check": "allow",
"*": "ask"
}
}
},
"docs": {
"description": "Documentation sync agent. Updates docs when CLI/config/provider/channel/runtime behavior changes.",
"mode": "subagent",
"temperature": 1,
"permission": {
"read": "allow",
"edit": {
"README.md": "ask",
"README.*.md": "ask",
"docs/**": "allow",
"*.md": "ask"
},
"bash": {
"bash -n bootstrap.sh scripts/bootstrap.sh scripts/install.sh": "allow",
"*": "ask"
}
}
}
}
}