Repository navigation
Expand file tree
/
Copy pathopencode.json
More file actions
46 lines (43 loc) · 1.43 KB
/
Copy pathopencode.json
File metadata and controls
46 lines (43 loc) · 1.43 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
{
"$schema": "https://opencode.ai/config.json",
"model": "opencode/x-preview-f-free",
"small_model": "opencode/x-preview-f-free",
"default_agent": "build",
"autoupdate": "notify",
"snapshot": true,
"permission": {
"external_directory": {
"**": "allow"
}
},
"provider": {
"opencode-zen": {
"options": {
"apiKey": "{env:OPENCODE_API_KEY}",
"baseURL": "https://opencode.ai/zen/v1"
}
}
},
"agent": {
"reviewer": {
"mode": "subagent",
"model": "opencode/x-preview-f-free",
"description": "Reviews code changes, finds bugs, security issues, and quality problems.",
"permission": {
"edit": "deny",
"bash": "deny"
},
"prompt": "You are a strict senior code reviewer. Analyze the provided diff or files. Report: (1) bugs and correctness issues with file:line references, (2) security problems, (3) maintainability/style problems, (4) anything that will break the build. Be concrete and actionable. Output a numbered findings list."
},
"test-checker": {
"mode": "subagent",
"model": "opencode/x-preview-f-free",
"description": "Verifies the project builds and tests pass, reports failures.",
"permission": {
"edit": "allow",
"bash": "allow"
},
"prompt": "You are a CI verification agent. Build the project and run tests. Report pass/fail with error output if it fails."
}
}
}