-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.github.example.json
More file actions
93 lines (85 loc) · 2.44 KB
/
opencode.github.example.json
File metadata and controls
93 lines (85 loc) · 2.44 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
{
"$schema": "https://opencode.ai/config.json",
// Optimized for GitHub Copilot Subscription
"autoupdate": true,
"snapshot": false,
"compaction": { "auto": true, "prune": true },
"instructions": ["~/.config/opencode/rules/*.md"],
"disabled_providers": ["google-vertex-anthropic", "google-vertex"],
// Default models (GitHub Copilot Provider)
"model": "github-copilot/claude-sonnet-4.6",
"small_model": "github-copilot/claude-haiku-4.5",
"agent": {
// Built-in Primary Agents
"plan": {
"mode": "primary",
"description": "System architect and planner",
"model": "github-copilot/claude-opus-4.6",
"thinking": { "type": "adaptive" },
"effort": "high",
"permission": {
"edit": "deny"
}
},
"build": {
"mode": "primary",
"description": "Senior engineer implementing the plan",
"model": "github-copilot/claude-haiku-4.5",
"thinking": { "type": "adaptive" },
"effort": "medium"
},
// Custom Subagents (defined in agents/*.md)
"code-reviewer": {
"model": "github-copilot/claude-sonnet-4.6",
"thinking": { "type": "adaptive" },
"effort": "high"
},
"implementer": {
"model": "github-copilot/claude-haiku-4.5",
"thinking": { "type": "adaptive" },
"effort": "medium"
},
// Built-in Subagents
"general": {
"model": "github-copilot/claude-haiku-4.5",
"thinking": { "type": "adaptive" },
"effort": "medium"
},
"explore": {
"model": "github-copilot/claude-haiku-4.5",
"thinking": { "type": "adaptive" },
"effort": "medium"
},
// Utility agents — GPT-5-mini does NOT support temperature.
// Use reasoningEffort instead.
"title": {
"model": "github-copilot/gpt-5-mini",
"reasoningEffort": "minimal"
},
"summary": {
"model": "github-copilot/gpt-5-mini",
"reasoningEffort": "minimal"
},
"compaction": {
"model": "github-copilot/gpt-5-mini",
"reasoningEffort": "minimal"
}
},
// Requires godoc-mcp to be installed and available on PATH
"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"
}
}
}
}