-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
154 lines (154 loc) · 4.63 KB
/
opencode.json
File metadata and controls
154 lines (154 loc) · 4.63 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
{
"$schema": "https://opencode.ai/config.json",
"tools": {
"bash": true,
"edit": true,
"write": true,
"read": true,
"grep": true,
"glob": true,
"list": true,
"patch": true,
"todowrite": true,
"todoread": true,
"webfetch": true
},
"permission": {
"read": {
"*.env": "allow",
"*.env.*": "allow"
},
"edit": "ask",
"bash": {
"*": "ask",
"git status": "allow",
"git diff": "allow",
"git log*": "allow"
},
"webfetch": "ask"
},
"agent": {
"build": {
"description": "Full development with all tools enabled",
"mode": "primary",
"tools": {
"write": true,
"edit": true,
"bash": true
},
"permission": {
"edit": "ask",
"bash": {
"*": "ask",
"git status": "allow",
"git diff": "allow",
"git log*": "allow"
}
}
},
"plan": {
"description": "Analysis and planning without making changes",
"mode": "primary",
"temperature": 0.1,
"tools": {
"write": false,
"edit": false,
"bash": false
},
"permission": {
"edit": "deny",
"bash": "deny"
}
},
"general": {
"description": "General-purpose research and multi-step task execution",
"mode": "subagent"
},
"explore": {
"description": "Fast codebase exploration and search",
"mode": "subagent"
},
"backend-architect": {
"description": "Backend API design and Go/Fiber development specialist",
"mode": "subagent",
"prompt": "You are a backend architecture specialist. Focus on API design, database models, and server-side logic. Use Go best practices, GORM patterns, and Fiber framework conventions.",
"tools": {
"write": true,
"edit": true,
"bash": true
}
},
"frontend-developer": {
"description": "React/TypeScript UI development specialist",
"mode": "subagent",
"prompt": "You are a frontend development specialist. Focus on React 19, TypeScript, Vite, and modern UI patterns. Follow the design system in STYLE.md.",
"tools": {
"write": true,
"edit": true,
"bash": true
}
},
"devops-automator": {
"description": "Docker, Coolify, and deployment automation specialist",
"mode": "subagent",
"prompt": "You are a DevOps specialist. Focus on Docker, Coolify API integration, deployment workflows, and infrastructure automation.",
"tools": {
"write": true,
"edit": true,
"bash": true
}
},
"api-tester": {
"description": "API endpoint testing and validation specialist",
"mode": "subagent",
"prompt": "You are an API testing specialist. Test endpoints, validate responses, check error handling, and verify authentication flows.",
"tools": {
"bash": true,
"write": false,
"edit": false
}
},
"code-reviewer": {
"description": "Code quality and best practices reviewer",
"mode": "subagent",
"temperature": 0.1,
"prompt": "You are a code reviewer. Focus on security, performance, maintainability, Go best practices, and React patterns. Provide constructive feedback without making direct changes.",
"tools": {
"write": false,
"edit": false,
"bash": false
}
},
"security-auditor": {
"description": "Security vulnerability analysis and auditing",
"mode": "subagent",
"temperature": 0.1,
"prompt": "You are a security expert. Identify potential security issues: input validation, authentication/authorization flaws, data exposure risks, dependency vulnerabilities, API security.",
"tools": {
"write": false,
"edit": false,
"bash": true
}
},
"docs-writer": {
"description": "Technical documentation and README maintenance",
"mode": "subagent",
"prompt": "You are a technical writer. Create clear, comprehensive documentation with proper structure, code examples, and user-friendly language.",
"tools": {
"write": true,
"edit": true,
"bash": false
}
},
"deployment-specialist": {
"description": "Coolify deployment and template management expert",
"mode": "subagent",
"prompt": "You are a deployment specialist for PayloadServers. Focus on Coolify API integration, Docker Compose templates, deployment workflows, and tenant management. Reference DEPLOYMENT-GUIDE.md and related docs.",
"tools": {
"write": true,
"edit": true,
"bash": true
}
}
}
}