-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
224 lines (224 loc) · 6.19 KB
/
Copy pathopencode.json
File metadata and controls
224 lines (224 loc) · 6.19 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
{
"$schema": "https://opencode.ai/config.json",
"autoupdate": false,
"small_model": "amazon-bedrock/global.anthropic.claude-haiku-4-5-20251001-v1:0",
"enabled_providers": [
"amazon-bedrock",
"github-copilot",
"bedrock-mantle",
"google-vertex"
],
"plugin": [
"oh-my-opencode-slim@1.1.1",
"@tarquinen/opencode-dcp@3.1.12",
"./forge-memory-plugin",
"cc-safety-net@1.0.6"
],
"compaction": {
"reserved": 32000,
"auto": false
},
"tool_output": {
"max_lines": 1000,
"max_bytes": 40960
},
"provider": {
"amazon-bedrock": {
"options": {
"setCacheKey": true
}
},
"github-copilot": {
"options": {
"chunkTimeout": 120000,
"headerTimeout": 30000
}
},
"google-vertex": {
"whitelist": [
"gemini-3-flash-preview",
"gemini-3.1-pro-preview",
"gemini-3.1-flash-lite-preview"
]
},
"bedrock-mantle": {
"npm": "@ai-sdk/openai-compatible",
"name": "Bedrock Mantle (OpenAI-compatible)",
"options": {
"baseURL": "{env:OPENAI_BASE_URL}",
"apiKey": "{env:OPENAI_API_KEY}"
},
"models": {
"moonshotai.kimi-k2.5": {
"name": "Kimi K2.5"
},
"minimax.minimax-m2.5": {
"name": "MiniMax M2.5"
},
"zai.glm-5": {
"name": "GLM-5"
},
"nvidia.nemotron-nano-12b-v2": {
"name": "Nemotron Nano 12B v2"
},
"nvidia.nemotron-nano-3-30b": {
"name": "Nemotron Nano 3 30B"
},
"nvidia.nemotron-nano-9b-v2": {
"name": "Nemotron Nano 9B v2"
},
"nvidia.nemotron-super-3-120b": {
"name": "Nemotron Super 3 120B"
},
"openai.gpt-oss-120b": {
"name": "GPT OSS 120B"
},
"openai.gpt-oss-20b": {
"name": "GPT OSS 20B"
},
"qwen.qwen3-coder-30b-a3b-instruct": {
"name": "Qwen3 Coder 30B"
},
"qwen.qwen3-coder-480b-a35b-instruct": {
"name": "Qwen3 Coder 480B"
},
"qwen.qwen3-coder-next": {
"name": "Qwen3 Coder Next"
},
"deepseek.v3.2": {
"name": "DeepSeek v3.2"
}
}
}
},
"permission": {
"external_directory": {
"~/.local/share/opencode-forge/**": "allow",
"~/.claude/**": "allow",
"/tmp/**": "allow"
},
"gtax": {
"gtax_reservations_create": "ask",
"gtax_reservation_extend": "ask",
"gtax_client_recovery_imageloader": "ask",
"gtax_client_provision_start": "ask",
"gtax_client_recovery_start": "ask",
"gtax_job_submit": "ask",
"gtax_client_property_update": "ask",
"gtax_client_property_delete": "ask",
"gtax_network_switch": "ask"
},
"bash": {
"git push": "deny",
"git push *": "deny",
"git remote": "ask",
"git remote -v": "ask",
"git remote show *": "ask",
"git remote get-url *": "ask",
"git remote add *": "deny",
"git remote set-url *": "deny",
"git remote remove *": "deny",
"git remote rename *": "deny",
"git remote *": "deny",
"git lfs push *": "deny",
"git commit": "ask",
"git commit *": "ask",
"git add": "ask",
"git add *": "ask",
"git rebase": "ask",
"git rebase *": "ask",
"git merge": "ask",
"git merge *": "ask",
"git reset": "ask",
"git reset *": "ask",
"git stash": "allow",
"git stash *": "allow",
"git cherry-pick": "ask",
"git cherry-pick *": "ask",
"git revert": "ask",
"git revert *": "ask",
"git clean": "ask",
"git clean *": "ask",
"git rm *": "ask",
"git mv *": "ask",
"git restore": "ask",
"git restore *": "ask",
"git tag *": "ask",
"git branch -d *": "ask",
"git branch -D *": "ask",
"git branch *": "allow",
"git fetch": "ask",
"git fetch *": "ask",
"git pull": "ask",
"git pull *": "ask",
"git clone *": "ask",
"gh pr list": "allow",
"gh pr list *": "allow",
"gh pr view *": "allow",
"gh pr status": "allow",
"gh pr checks *": "allow",
"gh pr diff *": "allow",
"gh pr create *": "deny",
"gh pr merge *": "deny",
"gh pr close *": "deny",
"gh pr edit *": "deny",
"gh pr comment *": "deny",
"gh pr review *": "deny",
"gh release create *": "deny",
"gh release delete *": "deny",
"gh release edit *": "deny",
"gh repo create *": "deny",
"gh repo delete *": "deny",
"gh repo fork *": "deny",
"gh repo edit *": "deny",
"gh repo rename *": "deny",
"gh issue list": "allow",
"gh issue list *": "allow",
"gh issue view *": "allow",
"gh issue status": "allow",
"gh issue create *": "deny",
"gh issue close *": "deny",
"gh issue edit *": "deny",
"gh issue comment *": "deny",
"gh api -X POST *": "ask",
"gh api -X PUT *": "ask",
"gh api -X DELETE *": "ask",
"gh api -X PATCH *": "ask",
"gh api --method POST *": "ask",
"gh api --method PUT *": "ask",
"gh api --method DELETE *": "ask",
"gh api --method PATCH *": "ask",
"gh api *": "allow"
}
},
"command": {
"review": {
"template": "The /review command has been disabled by order of the Magos.",
"description": "[DISABLED] Code review command"
}
},
"mcp": {
"cpp-tools": {
"type": "local",
"command": ["/home/kdrozd/.cargo/bin/mcp-cpp-server"],
"enabled": true,
"environment": {
"CLANGD_PATH": "/usr/bin/clangd"
}
},
"python-checker": {
"type": "local",
"command": ["/home/kdrozd/.config/opencode/.venv/bin/mcp-tools-py", "--project-dir", ".", "--venv-path", "/home/kdrozd/native_pytorch_dev/pytorch_native_venv", "--console-only"],
"enabled": true
},
"gtax": {
"type": "local",
"command": ["/usr/local/bin/gnai", "toolkits", "serve", "--stdio", "gtax"],
"enabled": false
}
},
"agent": {
"compaction": { "model": "github-copilot/gpt-5.5" },
"explore": { "model": "amazon-bedrock/global.anthropic.claude-haiku-4-5-20251001-v1:0" }
}
}