-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.jsonc
More file actions
61 lines (57 loc) · 1.9 KB
/
opencode.jsonc
File metadata and controls
61 lines (57 loc) · 1.9 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
{
"$schema": "https://opencode.ai/config.json",
// --------------------------------------------------------
// SECURITY & ENTERPRISE SETTINGS
// --------------------------------------------------------
// FIXED: Must be "disabled" instead of false
"share": "disabled",
"default_agent": "plan",
// --------------------------------------------------------
// PERMISSIONS (Replaces the legacy 'tools' block)
// --------------------------------------------------------
// This explicitly controls what the agent is allowed to execute
"permission": {
"edit": "allow", // Allow the agent to write code
"bash": { // Granular shell execution rules
"rm -rf *": "deny", // Hard block dangerous deletions
"sudo *": "ask", // Require your approval for sudo
"*": "ask" // Require your approval for standard terminal commands
},
"webfetch": "allow",
"skill": {
"*": "allow",
"dangerous-*": "deny"
}
},
// --------------------------------------------------------
// CUSTOM INSTRUCTIONS & RULES
// --------------------------------------------------------
// FIXED: Use this array to load your ignore rules and project docs
"instructions": [
".ignore", // Create this file in your project root and add *.ipynb
"CONTRIBUTING.md" // (Optional) Point to team coding standards
],
"permission": {
"bash": {
"ls *": "allow",
"cat *": "allow",
"grep *": "allow",
"rg *": "allow",
"find *": "allow",
"fd *": "allow",
"tail *": "allow",
"head *": "allow",
"tree": "allow",
"pwd": "allow",
"awk *": "allow",
"wc *": "allow",
"sort *": "allow",
"uniq *": "allow",
"git status": "allow",
"git log*": "allow",
"git diff*": "allow",
"git branch": "allow",
"git show*": "allow"
}
}
}