-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopencode.json
More file actions
130 lines (116 loc) · 3.69 KB
/
opencode.json
File metadata and controls
130 lines (116 loc) · 3.69 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
{
"$schema": "https://opencode.ai/config.json",
// FORGE - Framework for Orchestrated Requirements, Governance & Engineering
// Full project configuration for OpenCode
// Default model for all agents unless overridden
"model": "github-copilot/claude-sonnet-4.6",
// Default agent - FORGE orchestrator handles all workflow routing
"default_agent": "forge",
// Provider configuration with thinking budgets
// claude-opus-4.7 is the default for reasoning-heavy agents
// claude-opus-4.6 is available on GitHub Copilot Business/Enterprise accounts
"provider": {
"github-copilot": {
"models": {
// claude-opus-4.7 is a reasoning-native model (temperature: false).
// It does NOT accept external thinking parameters — reasoning is built-in.
"claude-opus-4.7": {},
"claude-opus-4.6": {
"options": {
"thinking": { "budgetTokens": 16000 }
}
},
"claude-sonnet-4.6": {}
}
}
},
// Agent model overrides - Opus for deep reasoning, Sonnet for speed
// Default: claude-opus-4.7 (available on all account types)
// NOTE: For FORGE meta-development, we override agent paths to use meta versions
//
// GITHUB COPILOT BUSINESS/ENTERPRISE FALLBACK:
// If claude-opus-4.7 is not yet available on your account, override agents
// to use claude-opus-4.6 (still available on Business/Enterprise accounts):
//
// "forge-pm": { "model": "github-copilot/claude-opus-4.6", "path": "..." }
// "forge-architect": { "model": "github-copilot/claude-opus-4.6", "path": "..." }
// "forge-reviewer": { "model": "github-copilot/claude-opus-4.6" }
// "forge-ux": { "model": "github-copilot/claude-opus-4.6" }
"agent": {
"forge": {
"variant": "high"
},
"forge-pm": {
"model": "github-copilot/claude-opus-4.7",
"path": ".opencode-meta/agents/forge-pm-meta.md"
},
"forge-architect": {
"model": "github-copilot/claude-opus-4.7",
"path": ".opencode-meta/agents/forge-architect-meta.md"
},
"forge-scrum": {
"model": "github-copilot/claude-sonnet-4.6",
"path": ".opencode-meta/agents/forge-scrum-meta.md"
},
"forge-reviewer": {
"model": "github-copilot/claude-opus-4.7"
}
},
// Global tool permissions
"permission": {
"bash": {
// Git operations
"git *": "allow",
// NPM/Node operations
"npm *": "allow",
"npx *": "allow",
"node *": "allow",
"yarn *": "allow",
"pnpm *": "allow",
"bun *": "allow",
// Safe read operations
"ls *": "allow",
"pwd": "allow",
"cat *": "allow",
"head *": "allow",
"tail *": "allow",
"grep *": "allow",
"find *": "allow",
"wc *": "allow",
"tree *": "allow",
// Build and test operations
"make *": "allow",
// Directory and file operations
"mkdir *": "allow",
"touch *": "allow",
"cp *": "allow",
"mv *": "allow",
"rm -f *": "allow",
// Echo and output
"echo *": "allow",
// Everything else asks
"*": "ask"
},
// File operation tool permissions
"edit": "allow",
"write": "allow",
"read": "allow",
"glob": "allow",
"grep": "allow"
},
// Constitution and knowledge base for FORGE meta-development
"instructions": [
".forge-meta/constitution.md",
".forge-meta/knowledge/decision-log.md"
],
// MCP server integrations
"mcp": {
"github": {
"type": "local",
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
"environment": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_TOKEN}"
}
}
}
}