Repository navigation
Expand file tree
/
Copy pathopencode.jsonc
More file actions
173 lines (173 loc) · 5.01 KB
/
Copy pathopencode.jsonc
File metadata and controls
173 lines (173 loc) · 5.01 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
{
"$schema": "https://opencode.ai/config.json",
// MockServer opencode configuration
"compaction": {
"auto": true,
"prune": true
},
"share": "manual",
"default_agent": "plan",
"small_model": "openai/gpt-4o-mini",
"provider": {
"openai": {}
},
"enabled_providers": ["openai"],
"instructions": [
"AGENTS.md"
],
"watcher": {
"ignore": [
"vendor/**",
"**/node_modules/**",
".git/**",
".tmp/**",
"**/target/**",
".idea/**",
"*.class",
"*.jar",
"**/_site/**",
"**/.sass-cache/**",
"terraform/**/.terraform/**",
"terraform/**/*.tfstate",
"terraform/**/*.tfstate.backup",
"terraform/**/*.tfvars",
"build-*/**"
]
},
"permission": {
"bash": {
"*": "allow",
"scripts/ci/bk-pipeline-status.sh*": "allow",
"./scripts/ci/bk-pipeline-status.sh*": "allow",
"git push --force*": "deny",
"git reset --hard*": "deny",
"git clean -fd*": "deny",
"rm -rf .": "deny",
"rm -rf ..": "deny",
"rm -rf ~": "deny",
"rm -rf /": "deny",
"rm -rf /*": "deny"
}
},
// Observability & inference cost:
// - Metric definitions live in `.opencode/rules/metrics.md`.
// - Per-unit telemetry is recorded in the decision-log telemetry block
// (`.opencode/rules/decision-log.md`) and aggregated by
// `.opencode/scripts/aggregate-telemetry.sh`.
// - The per-agent `model`/`temperature` settings below are the primary
// inference-cost lever (spec §9, OP5) — routing a task to the right model
// class is how cost and determinism are controlled.
"agent": {
"test-runner": {
"description": "Runs Maven tests for changed modules and reports results",
"model": "openai/gpt-4o-mini",
"temperature": 0,
"agent": ".opencode/agents/test-runner.md",
"tools": {
"write": false,
"edit": false,
"skill": false
}
},
"code-reviewer": {
"description": "Pre-commit code reviewer — checks for correctness, security, and conventions",
"model": "openai/gpt-4o",
"temperature": 0.1,
"agent": ".opencode/agents/code-reviewer.md",
"tools": {
"write": false,
"edit": false,
"skill": false
}
},
"security-auditor": {
"description": "Security-focused code auditor for Java applications",
"model": "openai/gpt-5",
"temperature": 0.1,
"agent": ".opencode/agents/security-auditor.md",
"tools": {
"write": false,
"edit": false,
"skill": false
}
},
"docs-writer": {
"description": "Technical writer for architecture docs, ADRs, and READMEs",
"model": "openai/gpt-4o",
"temperature": 0.4,
"agent": ".opencode/agents/docs-writer.md"
},
"simplifier": {
"description": "Code simplification specialist — reduces code to smallest correct form",
"model": "openai/gpt-4o",
"temperature": 0.1,
"agent": ".opencode/agents/simplifier.md"
},
"implementer": {
"description": "Implementation specialist — writes production code and tests",
"model": "openai/gpt-5",
"temperature": 0.2,
"agent": ".opencode/agents/implementer.md"
},
"review-cheap": {
"description": "Intermediate deep reviewer on cheaper model — non-authoritative PASS",
"model": "openai/gpt-4o",
"temperature": 0.1,
"agent": ".opencode/agents/review-cheap.md",
"tools": {
"write": false,
"edit": false
}
},
"review-final": {
"description": "Authoritative final reviewer — binding PASS/BLOCK verdict",
"model": "openai/gpt-5",
"temperature": 0.1,
"agent": ".opencode/agents/review-final.md",
"tools": {
"write": false,
"edit": false
}
},
"debugger": {
"description": "Production debugger — investigates issues using logs, metrics, and CI data",
"model": "openai/gpt-5",
"temperature": 0.2,
"agent": ".opencode/agents/debugger.md",
"tools": {
"write": false,
"edit": false,
"skill": true
}
},
"pipeline-investigator": {
"description": "Buildkite pipeline failure investigator",
"model": "openai/gpt-5",
"temperature": 0.2,
"agent": ".opencode/agents/pipeline-investigator.md",
"tools": {
"write": false,
"edit": false,
"skill": true
}
},
"taskify-agent": {
"description": "Task decomposition specialist — breaks specs into structured task graphs",
"model": "openai/gpt-4o",
"temperature": 0.3,
"agent": ".opencode/agents/taskify-agent.md"
},
"council-seat": {
"description": "Read-only design council seat for parallel fan-out debates",
"model": "openai/gpt-4o-mini",
"temperature": 0.7,
"agent": ".opencode/agents/council-seat.md",
"tools": {
"write": false,
"edit": false,
"bash": false,
"skill": false
}
}
}
}