-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
59 lines (59 loc) · 1.6 KB
/
opencode.json
File metadata and controls
59 lines (59 loc) · 1.6 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
{
"$schema": "https://opencode.ai/config.json",
"model": "anthropic/claude-sonnet-4-5",
"small_model": "anthropic/claude-haiku-4-5",
"default_agent": "build",
"autoupdate": "notify",
"share": "manual",
"snapshot": true,
"compaction": {
"auto": true,
"prune": true,
"reserved": 12000
},
"watcher": {
"ignore": [".git/**", "node_modules/**", "lib/**", "es/**", "dist/**", "coverage/**", "storybook-static/**"]
},
"instructions": ["AGENTS.md", ".cursor/rules/**", ".cursorrules", ".github/copilot-instructions.md"],
"permission": {
"edit": "allow",
"webfetch": "allow",
"bash": {
"*": "allow",
"git push*": "ask",
"npm publish*": "ask",
"rm -rf *": "ask"
}
},
"agent": {
"plan": {
"description": "Plan changes without modifying files",
"mode": "primary",
"permission": {
"edit": "ask",
"bash": {
"*": "ask",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow"
},
"webfetch": "allow"
}
},
"code-reviewer": {
"description": "Review changes for correctness, maintainability, and safety",
"mode": "subagent",
"prompt": "You are a code reviewer. Focus on correctness, edge cases, readability, API compatibility, and regression risk. Prefer concise findings. Do not modify files.",
"permission": {
"edit": "deny",
"webfetch": "deny",
"bash": {
"*": "ask",
"git status*": "allow",
"git diff*": "allow",
"git log*": "allow"
}
}
}
}
}