-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.local.example.json
More file actions
117 lines (107 loc) · 2.85 KB
/
opencode.local.example.json
File metadata and controls
117 lines (107 loc) · 2.85 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
{
"$schema": "https://opencode.ai/config.json",
// Local-only profile.
// Uses local models via llama-swap (DeepSeek R1 for planning, Qwen for building).
"autoupdate": true,
"snapshot": false,
"compaction": { "auto": true, "prune": true },
"instructions": ["~/.config/opencode/rules/*.md"],
"plugin": ["@mohak34/opencode-notifier@latest"],
"model": "llama.cpp/unsloth/Qwen3.6-27B",
"small_model": "llama.cpp/unsloth/Qwen3.6-27B",
"provider": {
"llama.cpp": {
"npm": "@ai-sdk/openai-compatible",
"name": "llama-swap (local)",
"options": {
"baseURL": "http://127.0.0.1:8000/v1",
"apiKey": "local"
},
"models": {
"unsloth/Qwen3.6-27B": {
"name": "Qwen 3.6 27B"
},
"unsloth/DeepSeek-R1-32B": {
"name": "DeepSeek R1 32B"
},
"unsloth/Gemma-4-31B": {
"name": "Gemma 4 31B"
}
}
}
},
"agent": {
"plan": {
"mode": "primary",
"description": "System architect and planner",
"model": "llama.cpp/unsloth/DeepSeek-R1-32B",
"reasoningEffort": "high",
"textVerbosity": "low",
"permission": {
"edit": "deny"
}
},
"plan-reviewer": {
"mode": "primary",
"model": "llama.cpp/unsloth/Gemma-4-31B",
"reasoningEffort": "high",
"textVerbosity": "low"
},
"build": {
"mode": "primary",
"description": "Senior engineer implementing the plan",
"model": "llama.cpp/unsloth/Qwen3.6-27B",
"reasoningEffort": "medium",
"textVerbosity": "low"
},
// Custom Subagents (defined in agents/*.md)
"code-reviewer": {
"model": "llama.cpp/unsloth/Gemma-4-31B",
"reasoningEffort": "high",
"textVerbosity": "low"
},
"implementer": {
"model": "llama.cpp/unsloth/Qwen3.6-27B",
"reasoningEffort": "medium",
"textVerbosity": "low"
},
// Built-in Subagents
"general": {
"model": "llama.cpp/unsloth/Qwen3.6-27B",
"thinking_level": "medium"
},
"explore": {
"model": "llama.cpp/unsloth/Qwen3.6-27B",
"thinking_level": "medium"
},
// Utility agents stay on Qwen to keep background work fast.
"title": {
"model": "llama.cpp/unsloth/Qwen3.6-27B",
"thinking_level": "low"
},
"summary": {
"model": "llama.cpp/unsloth/Qwen3.6-27B",
"thinking_level": "low"
},
"compaction": {
"model": "llama.cpp/unsloth/Qwen3.6-27B",
"thinking_level": "low"
}
},
"mcp": {
"godoc": {
"type": "local",
"command": ["godoc-mcp"],
"enabled": true
},
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp",
"enabled": true,
"headers": {
// run for set up --> npx ctx7 setup --opencode
"CONTEXT7_API_KEY": "your-context7-api-key"
}
}
}
}