opencode-multiagent 0.2.0 → 0.3.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +62 -0
- package/CHANGELOG.md +18 -0
- package/CONTRIBUTING.md +36 -0
- package/README.md +41 -165
- package/README.tr.md +84 -0
- package/RELEASE.md +68 -0
- package/agents/advisor.md +9 -6
- package/agents/auditor.md +8 -6
- package/agents/critic.md +19 -10
- package/agents/deep-worker.md +11 -7
- package/agents/devil.md +3 -1
- package/agents/executor.md +20 -19
- package/agents/heavy-worker.md +11 -7
- package/agents/lead.md +22 -30
- package/agents/librarian.md +6 -2
- package/agents/planner.md +18 -10
- package/agents/qa.md +9 -6
- package/agents/quick.md +12 -7
- package/agents/reviewer.md +9 -6
- package/agents/scout.md +9 -5
- package/agents/scribe.md +33 -28
- package/agents/strategist.md +10 -7
- package/agents/ui-heavy-worker.md +11 -7
- package/agents/ui-worker.md +12 -7
- package/agents/validator.md +8 -5
- package/agents/worker.md +12 -7
- package/commands/execute.md +1 -0
- package/commands/init-deep.md +1 -0
- package/commands/init.md +1 -0
- package/commands/inspect.md +1 -0
- package/commands/plan.md +1 -0
- package/commands/quality.md +1 -0
- package/commands/review.md +1 -0
- package/commands/status.md +1 -0
- package/defaults/opencode-multiagent.json +223 -0
- package/defaults/opencode-multiagent.schema.json +249 -0
- package/dist/control-plane.d.ts +4 -0
- package/dist/control-plane.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1583 -0
- package/dist/opencode-multiagent/compiler.d.ts +19 -0
- package/dist/opencode-multiagent/compiler.d.ts.map +1 -0
- package/dist/opencode-multiagent/constants.d.ts +116 -0
- package/dist/opencode-multiagent/constants.d.ts.map +1 -0
- package/dist/opencode-multiagent/defaults.d.ts +10 -0
- package/dist/opencode-multiagent/defaults.d.ts.map +1 -0
- package/dist/opencode-multiagent/file-lock.d.ts +15 -0
- package/dist/opencode-multiagent/file-lock.d.ts.map +1 -0
- package/dist/opencode-multiagent/hooks.d.ts +62 -0
- package/dist/opencode-multiagent/hooks.d.ts.map +1 -0
- package/dist/opencode-multiagent/log.d.ts +2 -0
- package/dist/opencode-multiagent/log.d.ts.map +1 -0
- package/dist/opencode-multiagent/markdown.d.ts +8 -0
- package/dist/opencode-multiagent/markdown.d.ts.map +1 -0
- package/dist/opencode-multiagent/mcp.d.ts +3 -0
- package/dist/opencode-multiagent/mcp.d.ts.map +1 -0
- package/dist/opencode-multiagent/policy.d.ts +5 -0
- package/dist/opencode-multiagent/policy.d.ts.map +1 -0
- package/dist/opencode-multiagent/quality.d.ts +14 -0
- package/dist/opencode-multiagent/quality.d.ts.map +1 -0
- package/dist/opencode-multiagent/runtime.d.ts +7 -0
- package/dist/opencode-multiagent/runtime.d.ts.map +1 -0
- package/dist/opencode-multiagent/session-tracker.d.ts +32 -0
- package/dist/opencode-multiagent/session-tracker.d.ts.map +1 -0
- package/dist/opencode-multiagent/skills.d.ts +17 -0
- package/dist/opencode-multiagent/skills.d.ts.map +1 -0
- package/dist/opencode-multiagent/supervision.d.ts +12 -0
- package/dist/opencode-multiagent/supervision.d.ts.map +1 -0
- package/dist/opencode-multiagent/task-manager.d.ts +48 -0
- package/dist/opencode-multiagent/task-manager.d.ts.map +1 -0
- package/dist/opencode-multiagent/telemetry.d.ts +26 -0
- package/dist/opencode-multiagent/telemetry.d.ts.map +1 -0
- package/dist/opencode-multiagent/tools.d.ts +56 -0
- package/dist/opencode-multiagent/tools.d.ts.map +1 -0
- package/dist/opencode-multiagent/types.d.ts +36 -0
- package/dist/opencode-multiagent/types.d.ts.map +1 -0
- package/dist/opencode-multiagent/utils.d.ts +9 -0
- package/dist/opencode-multiagent/utils.d.ts.map +1 -0
- package/docs/agents.md +260 -0
- package/docs/agents.tr.md +260 -0
- package/docs/configuration.md +255 -0
- package/docs/configuration.tr.md +255 -0
- package/docs/usage-guide.md +226 -0
- package/docs/usage-guide.tr.md +227 -0
- package/examples/opencode.with-overrides.json +1 -5
- package/package.json +23 -13
- package/skills/advanced-evaluation/SKILL.md +37 -21
- package/skills/advanced-evaluation/manifest.json +2 -13
- package/skills/cek-context-engineering/SKILL.md +159 -87
- package/skills/cek-context-engineering/manifest.json +1 -3
- package/skills/cek-prompt-engineering/SKILL.md +13 -10
- package/skills/cek-prompt-engineering/manifest.json +1 -3
- package/skills/cek-test-prompt/SKILL.md +38 -28
- package/skills/cek-test-prompt/manifest.json +1 -3
- package/skills/cek-thought-based-reasoning/SKILL.md +75 -21
- package/skills/cek-thought-based-reasoning/manifest.json +1 -3
- package/skills/context-degradation/SKILL.md +14 -13
- package/skills/context-degradation/manifest.json +1 -3
- package/skills/debate/SKILL.md +23 -78
- package/skills/debate/manifest.json +2 -12
- package/skills/design-first/manifest.json +2 -13
- package/skills/dispatching-parallel-agents/SKILL.md +14 -3
- package/skills/dispatching-parallel-agents/manifest.json +1 -4
- package/skills/drift-analysis/SKILL.md +50 -29
- package/skills/drift-analysis/manifest.json +2 -12
- package/skills/evaluation/manifest.json +2 -12
- package/skills/executing-plans/SKILL.md +15 -8
- package/skills/executing-plans/manifest.json +1 -3
- package/skills/handoff-protocols/manifest.json +2 -12
- package/skills/parallel-investigation/SKILL.md +25 -12
- package/skills/parallel-investigation/manifest.json +1 -4
- package/skills/reflexion-critique/SKILL.md +21 -10
- package/skills/reflexion-critique/manifest.json +1 -3
- package/skills/reflexion-reflect/SKILL.md +36 -34
- package/skills/reflexion-reflect/manifest.json +2 -10
- package/skills/root-cause-analysis/manifest.json +2 -13
- package/skills/sadd-judge-with-debate/SKILL.md +50 -26
- package/skills/sadd-judge-with-debate/manifest.json +1 -3
- package/skills/structured-code-review/manifest.json +2 -11
- package/skills/task-decomposition/manifest.json +2 -13
- package/skills/verification-before-completion/manifest.json +2 -15
- package/skills/verification-gates/SKILL.md +27 -19
- package/skills/verification-gates/manifest.json +2 -12
- package/defaults/agent-settings.json +0 -102
- package/defaults/agent-settings.schema.json +0 -25
- package/defaults/flags.json +0 -35
- package/defaults/flags.schema.json +0 -119
- package/defaults/mcp-defaults.json +0 -47
- package/defaults/mcp-defaults.schema.json +0 -38
- package/defaults/profiles.json +0 -53
- package/defaults/profiles.schema.json +0 -60
- package/defaults/team-profiles.json +0 -83
- package/src/control-plane.ts +0 -21
- package/src/index.ts +0 -8
- package/src/opencode-multiagent/compiler.ts +0 -168
- package/src/opencode-multiagent/constants.ts +0 -178
- package/src/opencode-multiagent/file-lock.ts +0 -90
- package/src/opencode-multiagent/hooks.ts +0 -599
- package/src/opencode-multiagent/log.ts +0 -12
- package/src/opencode-multiagent/mailbox.ts +0 -287
- package/src/opencode-multiagent/markdown.ts +0 -99
- package/src/opencode-multiagent/mcp.ts +0 -35
- package/src/opencode-multiagent/policy.ts +0 -67
- package/src/opencode-multiagent/quality.ts +0 -140
- package/src/opencode-multiagent/runtime.ts +0 -55
- package/src/opencode-multiagent/skills.ts +0 -144
- package/src/opencode-multiagent/supervision.ts +0 -156
- package/src/opencode-multiagent/task-manager.ts +0 -148
- package/src/opencode-multiagent/team-manager.ts +0 -219
- package/src/opencode-multiagent/team-tools.ts +0 -359
- package/src/opencode-multiagent/telemetry.ts +0 -124
- package/src/opencode-multiagent/utils.ts +0 -54
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
> Language: **English** | [Turkish](configuration.tr.md)
|
|
2
|
+
>
|
|
3
|
+
> Back: [README](../README.md)
|
|
4
|
+
|
|
5
|
+
# Configuration Reference
|
|
6
|
+
|
|
7
|
+
This document explains the plugin's configuration surfaces, what each setting does, and how
|
|
8
|
+
override precedence works.
|
|
9
|
+
|
|
10
|
+
## Configuration Files
|
|
11
|
+
|
|
12
|
+
The plugin uses three different configuration layers:
|
|
13
|
+
|
|
14
|
+
1. Bundled defaults: `defaults/opencode-multiagent.json`
|
|
15
|
+
2. User runtime overrides: `~/.config/opencode/plugins/opencode-multiagent.json`
|
|
16
|
+
3. Host OpenCode config: `opencode.json`
|
|
17
|
+
|
|
18
|
+
## Merge and Override Rules
|
|
19
|
+
|
|
20
|
+
### Runtime settings
|
|
21
|
+
|
|
22
|
+
At startup, the plugin loads bundled defaults and then reads the user override file at
|
|
23
|
+
`~/.config/opencode/plugins/opencode-multiagent.json`.
|
|
24
|
+
|
|
25
|
+
The user settings file currently supports these sections:
|
|
26
|
+
|
|
27
|
+
- `flags`
|
|
28
|
+
- `agentSettings`
|
|
29
|
+
- `profiles`
|
|
30
|
+
|
|
31
|
+
The effective runtime flags are resolved in this order:
|
|
32
|
+
|
|
33
|
+
1. built-in `defaultFlags`
|
|
34
|
+
2. selected profile from merged profiles
|
|
35
|
+
3. user `flags`
|
|
36
|
+
|
|
37
|
+
That means user `flags` always win over the selected profile, and the selected profile wins over
|
|
38
|
+
the built-in baseline.
|
|
39
|
+
|
|
40
|
+
### Agent settings
|
|
41
|
+
|
|
42
|
+
`agentSettings` is applied during agent compilation and only fills `model`, `temperature`, and
|
|
43
|
+
`steps` when those fields are not already explicitly set in the host config.
|
|
44
|
+
|
|
45
|
+
Practical rule:
|
|
46
|
+
|
|
47
|
+
- bundled agent markdown provides the default definition
|
|
48
|
+
- `agentSettings` provides central default overrides
|
|
49
|
+
- explicit `opencode.json -> agent.<name>.*` values win if you set them yourself
|
|
50
|
+
|
|
51
|
+
### MCP defaults
|
|
52
|
+
|
|
53
|
+
The bundled `mcpDefaults` section is injected conservatively. The plugin only adds an MCP server
|
|
54
|
+
when the active OpenCode config does not already define a server with the same name.
|
|
55
|
+
|
|
56
|
+
Practical rule:
|
|
57
|
+
|
|
58
|
+
- bundled `mcpDefaults` fills gaps
|
|
59
|
+
- explicit `opencode.json -> mcp.<name>` definitions always win
|
|
60
|
+
|
|
61
|
+
## `flags`
|
|
62
|
+
|
|
63
|
+
Top-level runtime flags:
|
|
64
|
+
|
|
65
|
+
| Key | Default | What it does |
|
|
66
|
+
| --------------------- | ---------- | ------------------------------------------------------------------------------------ |
|
|
67
|
+
| `profile` | `standard` | Selects the base runtime profile before user flag overrides are applied. |
|
|
68
|
+
| `enforcement` | `true` | Enables local safety checks for sensitive file paths and destructive shell patterns. |
|
|
69
|
+
| `observation` | `true` | Enables JSONL observation logging for events and tool execution traces. |
|
|
70
|
+
| `prompt_controls` | `true` | Adds prompt metadata headers and logs risky prompt or command content. |
|
|
71
|
+
| `agent_compilation` | `true` | Compiles bundled, global, and project agent markdown into the active config. |
|
|
72
|
+
| `command_compilation` | `true` | Compiles bundled, global, and project command markdown into the active config. |
|
|
73
|
+
| `mcp_compilation` | `true` | Injects plugin-managed MCP server defaults into the active config when missing. |
|
|
74
|
+
| `telemetry` | `true` | Records session, tool, and error telemetry in the plugin log. |
|
|
75
|
+
| `supervision` | `true` | Enables parent-child supervision reminders for idle delegated sessions. |
|
|
76
|
+
| `quality_gate` | `true` | Tracks edit activity and emits quality reminders for sessions that go idle. |
|
|
77
|
+
| `skill_injection` | `false` | Enables runtime skill registry lookup and skill availability injection. |
|
|
78
|
+
|
|
79
|
+
### `skill_sources`
|
|
80
|
+
|
|
81
|
+
Default value:
|
|
82
|
+
|
|
83
|
+
```json
|
|
84
|
+
["${plugin_root}/skills", "${home}/.agents/skills", "${home}/skills"]
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
This is the ordered search path used when `skill_injection` is enabled.
|
|
88
|
+
|
|
89
|
+
- `${plugin_root}` resolves to the installed package root
|
|
90
|
+
- `${home}` resolves to the current user's home directory
|
|
91
|
+
|
|
92
|
+
### `compiler.permission_compilation`
|
|
93
|
+
|
|
94
|
+
| Key | Default | What it does |
|
|
95
|
+
| --------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| `compiler.permission_compilation` | `true` | Fills missing top-level OpenCode permission defaults conservatively for core tools such as `bash`, `read`, `edit`, `glob`, `grep`, and `list`. |
|
|
97
|
+
|
|
98
|
+
### `experimental`
|
|
99
|
+
|
|
100
|
+
These flags enable optional prompt and session transforms:
|
|
101
|
+
|
|
102
|
+
| Key | Default | What it does |
|
|
103
|
+
| -------------------------------------- | ------- | ---------------------------------------------------------------------- |
|
|
104
|
+
| `experimental.chat_system_transform` | `false` | Appends an experimental note to the system prompt. |
|
|
105
|
+
| `experimental.chat_messages_transform` | `false` | Appends an experimental note to the last user message before dispatch. |
|
|
106
|
+
| `experimental.session_compacting` | `false` | Adds experimental context to compaction summaries. |
|
|
107
|
+
| `experimental.text_complete` | `false` | Appends experimental text to completed LLM responses. |
|
|
108
|
+
|
|
109
|
+
These are enabled by default only in the `strict` profile.
|
|
110
|
+
|
|
111
|
+
### `supervision_config`
|
|
112
|
+
|
|
113
|
+
| Key | Default | Meaning |
|
|
114
|
+
| ------------------------------------ | -------- | ----------------------------------------------------------------------------------------------- |
|
|
115
|
+
| `supervision_config.idle_timeout_ms` | `180000` | How long a delegated child session can stay idle before supervision logic considers it overdue. |
|
|
116
|
+
| `supervision_config.cooldown_ms` | `300000` | Cooldown between supervision reminders. |
|
|
117
|
+
|
|
118
|
+
### `quality_config`
|
|
119
|
+
|
|
120
|
+
| Key | Default | Meaning |
|
|
121
|
+
| ------------------------------------- | -------- | ------------------------------------------------------------------------------------ |
|
|
122
|
+
| `quality_config.reminder_idle_ms` | `120000` | How long an editing session can remain idle before a quality reminder is considered. |
|
|
123
|
+
| `quality_config.reminder_cooldown_ms` | `300000` | Cooldown between quality reminders. |
|
|
124
|
+
|
|
125
|
+
## `agentSettings`
|
|
126
|
+
|
|
127
|
+
This section centralizes per-agent defaults for:
|
|
128
|
+
|
|
129
|
+
- `model`
|
|
130
|
+
- `temperature`
|
|
131
|
+
- `steps`
|
|
132
|
+
|
|
133
|
+
All bundled agents currently default to `temperature: 0`.
|
|
134
|
+
|
|
135
|
+
| Agent | Category | Default model | Steps |
|
|
136
|
+
| ----------------- | ------------- | --------------------------------- | ----- |
|
|
137
|
+
| `lead` | Primary | `anthropic/claude-opus-4-6` | `500` |
|
|
138
|
+
| `critic` | Primary | `openai/gpt-5.4` | `200` |
|
|
139
|
+
| `planner` | Primary | `anthropic/claude-opus-4-6` | `100` |
|
|
140
|
+
| `executor` | Primary | `anthropic/claude-sonnet-4-6` | `200` |
|
|
141
|
+
| `scout` | Research | `anthropic/claude-sonnet-4-6` | `24` |
|
|
142
|
+
| `worker` | Coding | `openai/gpt-5.3-codex` | `30` |
|
|
143
|
+
| `heavy-worker` | Coding | `openai/gpt-5.4` | `40` |
|
|
144
|
+
| `deep-worker` | Coding | `anthropic/claude-opus-4-6` | `60` |
|
|
145
|
+
| `ui-worker` | Coding | `anthropic/claude-opus-4-6` | `30` |
|
|
146
|
+
| `ui-heavy-worker` | Coding | `anthropic/claude-opus-4-6` | `40` |
|
|
147
|
+
| `quick` | Coding | `opencode-go/minimax-m2.5` | `16` |
|
|
148
|
+
| `reviewer` | Quality | `github-copilot/grok-code-fast-1` | `24` |
|
|
149
|
+
| `validator` | Quality | `openai/gpt-5.3-codex` | `24` |
|
|
150
|
+
| `qa` | Quality | `openai/gpt-5.4` | `24` |
|
|
151
|
+
| `advisor` | Advisory | `openai/gpt-5.4` | `20` |
|
|
152
|
+
| `auditor` | Quality | `openai/gpt-5.4` | `24` |
|
|
153
|
+
| `strategist` | Advisory | `anthropic/claude-opus-4-6` | `20` |
|
|
154
|
+
| `devil` | Quality | `anthropic/claude-sonnet-4-6` | `8` |
|
|
155
|
+
| `scribe` | Documentation | `anthropic/claude-sonnet-4-6` | `30` |
|
|
156
|
+
| `librarian` | Research | `anthropic/claude-sonnet-4-6` | `24` |
|
|
157
|
+
|
|
158
|
+
## `mcpDefaults`
|
|
159
|
+
|
|
160
|
+
These are plugin-owned MCP server definitions shipped with the package.
|
|
161
|
+
|
|
162
|
+
| Server | Type | Enabled by default | Purpose |
|
|
163
|
+
| ------------ | -------- | ------------------ | ------------------------------------------------------------------------------- |
|
|
164
|
+
| `code_index` | `local` | `true` | Indexed code search, file discovery, summaries, and symbol lookup. |
|
|
165
|
+
| `repo` | `local` | `true` | Git status, diff, log, branch, and commit inspection tools. |
|
|
166
|
+
| `context7` | `remote` | `false` | Live library and framework documentation lookup. |
|
|
167
|
+
| `exa` | `remote` | `false` | Web search and code context retrieval. |
|
|
168
|
+
| `gh_grep` | `remote` | `false` | GitHub code search over public repositories. |
|
|
169
|
+
| `github` | `local` | `false` | GitHub repository, issue, PR, and file operations. Requires `GITHUB_PAT_TOKEN`. |
|
|
170
|
+
|
|
171
|
+
Notes:
|
|
172
|
+
|
|
173
|
+
- `code_index` and `repo` are enabled in the bundled defaults because they support the local
|
|
174
|
+
development workflow directly.
|
|
175
|
+
- `github` is disabled by default because it requires credentials.
|
|
176
|
+
- `context7`, `exa`, and `gh_grep` are optional remote services and start disabled.
|
|
177
|
+
|
|
178
|
+
## `profiles`
|
|
179
|
+
|
|
180
|
+
The plugin ships three named profiles.
|
|
181
|
+
|
|
182
|
+
| Profile | Best for | Observation and telemetry | Supervision and quality | Experimental transforms |
|
|
183
|
+
| ---------- | ------------------- | ------------------------- | ----------------------- | ----------------------- |
|
|
184
|
+
| `minimal` | Lowest overhead | Mostly off | Mostly off | Off |
|
|
185
|
+
| `standard` | Default daily use | On | On | Off |
|
|
186
|
+
| `strict` | Maximum guard rails | On | On | On |
|
|
187
|
+
|
|
188
|
+
Profile details:
|
|
189
|
+
|
|
190
|
+
- `minimal` keeps enforcement on, but reduces logging and reminder behavior.
|
|
191
|
+
- `standard` is the default balance for normal use.
|
|
192
|
+
- `strict` turns on all experimental transforms in addition to the normal runtime protections.
|
|
193
|
+
|
|
194
|
+
## User Override Examples
|
|
195
|
+
|
|
196
|
+
### Basic user runtime file
|
|
197
|
+
|
|
198
|
+
Path: `~/.config/opencode/plugins/opencode-multiagent.json`
|
|
199
|
+
|
|
200
|
+
```json
|
|
201
|
+
{
|
|
202
|
+
"flags": {
|
|
203
|
+
"profile": "strict"
|
|
204
|
+
},
|
|
205
|
+
"agentSettings": {
|
|
206
|
+
"lead": {
|
|
207
|
+
"steps": 650
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Custom profile example
|
|
214
|
+
|
|
215
|
+
```json
|
|
216
|
+
{
|
|
217
|
+
"profiles": {
|
|
218
|
+
"quiet": {
|
|
219
|
+
"observation": false,
|
|
220
|
+
"telemetry": false,
|
|
221
|
+
"supervision": false,
|
|
222
|
+
"quality_gate": false
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"flags": {
|
|
226
|
+
"profile": "quiet"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### Host-side MCP override in `opencode.json`
|
|
232
|
+
|
|
233
|
+
Use the host config when you want to explicitly enable or replace an MCP server definition:
|
|
234
|
+
|
|
235
|
+
```json
|
|
236
|
+
{
|
|
237
|
+
"$schema": "https://opencode.ai/config.json",
|
|
238
|
+
"plugin": ["opencode-multiagent"],
|
|
239
|
+
"mcp": {
|
|
240
|
+
"github": {
|
|
241
|
+
"type": "local",
|
|
242
|
+
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
|
|
243
|
+
"environment": {
|
|
244
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT_TOKEN}"
|
|
245
|
+
},
|
|
246
|
+
"enabled": true
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## Related Docs
|
|
253
|
+
|
|
254
|
+
- [Usage Guide](usage-guide.md)
|
|
255
|
+
- [Agent Reference](agents.md)
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
> Dil: [English](configuration.md) | **Türkçe**
|
|
2
|
+
>
|
|
3
|
+
> Geri: [README](../README.tr.md)
|
|
4
|
+
|
|
5
|
+
# Konfigürasyon Referansı
|
|
6
|
+
|
|
7
|
+
Bu doküman, plugin'in konfigürasyon yüzeylerini, her ayarın ne yaptığını ve override sırasının
|
|
8
|
+
nasıl çalıştığını açıklar.
|
|
9
|
+
|
|
10
|
+
## Konfigürasyon Dosyaları
|
|
11
|
+
|
|
12
|
+
Plugin üç farklı konfigürasyon katmanı kullanır:
|
|
13
|
+
|
|
14
|
+
1. Paketle birlikte gelen varsayılanlar: `defaults/opencode-multiagent.json`
|
|
15
|
+
2. Kullanıcı runtime override dosyası: `~/.config/opencode/plugins/opencode-multiagent.json`
|
|
16
|
+
3. Host OpenCode konfigürasyonu: `opencode.json`
|
|
17
|
+
|
|
18
|
+
## Merge ve Override Kuralları
|
|
19
|
+
|
|
20
|
+
### Runtime ayarları
|
|
21
|
+
|
|
22
|
+
Plugin başlarken önce paketlenmiş varsayılanları, sonra da
|
|
23
|
+
`~/.config/opencode/plugins/opencode-multiagent.json` dosyasını okur.
|
|
24
|
+
|
|
25
|
+
Kullanıcı ayar dosyası şu bölümleri destekler:
|
|
26
|
+
|
|
27
|
+
- `flags`
|
|
28
|
+
- `agentSettings`
|
|
29
|
+
- `profiles`
|
|
30
|
+
|
|
31
|
+
Efektif runtime flag'leri şu sırayla çözülür:
|
|
32
|
+
|
|
33
|
+
1. dahili `defaultFlags`
|
|
34
|
+
2. merge edilmiş profillerden seçilen profil
|
|
35
|
+
3. kullanıcı `flags`
|
|
36
|
+
|
|
37
|
+
Yani kullanıcı `flags` her zaman seçilen profilin üstüne yazar, seçilen profil de dahili temel
|
|
38
|
+
ayarların üstüne yazar.
|
|
39
|
+
|
|
40
|
+
### Agent ayarları
|
|
41
|
+
|
|
42
|
+
`agentSettings`, agent compilation sırasında uygulanır ve sadece `model`, `temperature` ve
|
|
43
|
+
`steps` alanlarını doldurur; ancak bu alanlar host config içinde zaten açıkça tanımlanmışsa
|
|
44
|
+
dokunulmaz.
|
|
45
|
+
|
|
46
|
+
Pratik kural:
|
|
47
|
+
|
|
48
|
+
- paketlenmiş agent markdown dosyaları temel tanımı sağlar
|
|
49
|
+
- `agentSettings` merkezi varsayılan override sağlar
|
|
50
|
+
- açıkça tanımladığınız `opencode.json -> agent.<name>.*` değerleri her zaman kazanır
|
|
51
|
+
|
|
52
|
+
### MCP varsayılanları
|
|
53
|
+
|
|
54
|
+
Paketlenmiş `mcpDefaults` bölümü korumacı şekilde enjekte edilir. Plugin, aktif OpenCode
|
|
55
|
+
konfigürasyonunda aynı isimde bir sunucu yoksa MCP sunucusunu ekler.
|
|
56
|
+
|
|
57
|
+
Pratik kural:
|
|
58
|
+
|
|
59
|
+
- paketlenmiş `mcpDefaults` boşlukları doldurur
|
|
60
|
+
- açıkça tanımladığınız `opencode.json -> mcp.<name>` değerleri her zaman kazanır
|
|
61
|
+
|
|
62
|
+
## `flags`
|
|
63
|
+
|
|
64
|
+
Üst seviye runtime flag'leri:
|
|
65
|
+
|
|
66
|
+
| Anahtar | Varsayılan | Ne yapar |
|
|
67
|
+
| --------------------- | ---------- | -------------------------------------------------------------------------------------- |
|
|
68
|
+
| `profile` | `standard` | Kullanıcı flag override'ları uygulanmadan önce temel runtime profilini seçer. |
|
|
69
|
+
| `enforcement` | `true` | Hassas dosya yolları ve yıkıcı shell komutları için yerel güvenlik kontrollerini açar. |
|
|
70
|
+
| `observation` | `true` | Event ve tool çalıştırmalarını JSONL olarak loglar. |
|
|
71
|
+
| `prompt_controls` | `true` | Prompt metadata header'larını ve riskli prompt/komut içerik loglamasını açar. |
|
|
72
|
+
| `agent_compilation` | `true` | Paketlenmiş, global ve proje bazlı agent markdown dosyalarını aktif config'e derler. |
|
|
73
|
+
| `command_compilation` | `true` | Paketlenmiş, global ve proje bazlı command markdown dosyalarını aktif config'e derler. |
|
|
74
|
+
| `mcp_compilation` | `true` | Eksikse plugin tarafından yönetilen MCP varsayılanlarını aktif config'e enjekte eder. |
|
|
75
|
+
| `telemetry` | `true` | Session, tool ve hata telemetry kayıtlarını plugin loguna yazar. |
|
|
76
|
+
| `supervision` | `true` | Delegated child session'lar için parent-child supervision hatırlatmalarını açar. |
|
|
77
|
+
| `quality_gate` | `true` | Edit yapan session'ları izler ve idle kalınca quality reminder üretir. |
|
|
78
|
+
| `skill_injection` | `false` | Runtime skill registry taramasını ve skill availability injection'ını açar. |
|
|
79
|
+
|
|
80
|
+
### `skill_sources`
|
|
81
|
+
|
|
82
|
+
Varsayılan değer:
|
|
83
|
+
|
|
84
|
+
```json
|
|
85
|
+
["${plugin_root}/skills", "${home}/.agents/skills", "${home}/skills"]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Bu dizi, `skill_injection` açıksa kullanılacak arama sırasını belirtir.
|
|
89
|
+
|
|
90
|
+
- `${plugin_root}` kurulu paket kökünü gösterir
|
|
91
|
+
- `${home}` aktif kullanıcının home dizinini gösterir
|
|
92
|
+
|
|
93
|
+
### `compiler.permission_compilation`
|
|
94
|
+
|
|
95
|
+
| Anahtar | Varsayılan | Ne yapar |
|
|
96
|
+
| --------------------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
97
|
+
| `compiler.permission_compilation` | `true` | `bash`, `read`, `edit`, `glob`, `grep` ve `list` gibi temel araçlar için eksik top-level OpenCode permission varsayılanlarını temkinli biçimde doldurur. |
|
|
98
|
+
|
|
99
|
+
### `experimental`
|
|
100
|
+
|
|
101
|
+
Bu flag'ler opsiyonel prompt ve session transform davranışlarını açar:
|
|
102
|
+
|
|
103
|
+
| Anahtar | Varsayılan | Ne yapar |
|
|
104
|
+
| -------------------------------------- | ---------- | ---------------------------------------------------------- |
|
|
105
|
+
| `experimental.chat_system_transform` | `false` | System prompt sonuna deneysel bir not ekler. |
|
|
106
|
+
| `experimental.chat_messages_transform` | `false` | Dispatch öncesi son kullanıcı mesajına deneysel not ekler. |
|
|
107
|
+
| `experimental.session_compacting` | `false` | Session compaction özetlerine deneysel context ekler. |
|
|
108
|
+
| `experimental.text_complete` | `false` | Tamamlanan LLM çıktılarının sonuna deneysel metin ekler. |
|
|
109
|
+
|
|
110
|
+
Bu alanlar varsayılan olarak sadece `strict` profilinde açıktır.
|
|
111
|
+
|
|
112
|
+
### `supervision_config`
|
|
113
|
+
|
|
114
|
+
| Anahtar | Varsayılan | Anlamı |
|
|
115
|
+
| ------------------------------------ | ---------- | ----------------------------------------------------------------------- |
|
|
116
|
+
| `supervision_config.idle_timeout_ms` | `180000` | Delegated child session'ın ne kadar süre boşta kalabileceğini belirler. |
|
|
117
|
+
| `supervision_config.cooldown_ms` | `300000` | Supervision hatırlatmaları arasındaki bekleme süresi. |
|
|
118
|
+
|
|
119
|
+
### `quality_config`
|
|
120
|
+
|
|
121
|
+
| Anahtar | Varsayılan | Anlamı |
|
|
122
|
+
| ------------------------------------- | ---------- | -------------------------------------------------------------------------------------------- |
|
|
123
|
+
| `quality_config.reminder_idle_ms` | `120000` | Edit yapan bir session ne kadar süre boşta kalırsa quality reminder düşünüleceğini belirler. |
|
|
124
|
+
| `quality_config.reminder_cooldown_ms` | `300000` | Quality reminder'lar arasındaki bekleme süresi. |
|
|
125
|
+
|
|
126
|
+
## `agentSettings`
|
|
127
|
+
|
|
128
|
+
Bu bölüm, agent bazında şu varsayılanları merkezi olarak yönetir:
|
|
129
|
+
|
|
130
|
+
- `model`
|
|
131
|
+
- `temperature`
|
|
132
|
+
- `steps`
|
|
133
|
+
|
|
134
|
+
Paketlenmiş tüm agent'lar şu anda varsayılan olarak `temperature: 0` kullanır.
|
|
135
|
+
|
|
136
|
+
| Agent | Kategori | Varsayılan model | Steps |
|
|
137
|
+
| ----------------- | ------------- | --------------------------------- | ----- |
|
|
138
|
+
| `lead` | Primary | `anthropic/claude-opus-4-6` | `500` |
|
|
139
|
+
| `critic` | Primary | `openai/gpt-5.4` | `200` |
|
|
140
|
+
| `planner` | Primary | `anthropic/claude-opus-4-6` | `100` |
|
|
141
|
+
| `executor` | Primary | `anthropic/claude-sonnet-4-6` | `200` |
|
|
142
|
+
| `scout` | Research | `anthropic/claude-sonnet-4-6` | `24` |
|
|
143
|
+
| `worker` | Coding | `openai/gpt-5.3-codex` | `30` |
|
|
144
|
+
| `heavy-worker` | Coding | `openai/gpt-5.4` | `40` |
|
|
145
|
+
| `deep-worker` | Coding | `anthropic/claude-opus-4-6` | `60` |
|
|
146
|
+
| `ui-worker` | Coding | `anthropic/claude-opus-4-6` | `30` |
|
|
147
|
+
| `ui-heavy-worker` | Coding | `anthropic/claude-opus-4-6` | `40` |
|
|
148
|
+
| `quick` | Coding | `opencode-go/minimax-m2.5` | `16` |
|
|
149
|
+
| `reviewer` | Quality | `github-copilot/grok-code-fast-1` | `24` |
|
|
150
|
+
| `validator` | Quality | `openai/gpt-5.3-codex` | `24` |
|
|
151
|
+
| `qa` | Quality | `openai/gpt-5.4` | `24` |
|
|
152
|
+
| `advisor` | Advisory | `openai/gpt-5.4` | `20` |
|
|
153
|
+
| `auditor` | Quality | `openai/gpt-5.4` | `24` |
|
|
154
|
+
| `strategist` | Advisory | `anthropic/claude-opus-4-6` | `20` |
|
|
155
|
+
| `devil` | Quality | `anthropic/claude-sonnet-4-6` | `8` |
|
|
156
|
+
| `scribe` | Documentation | `anthropic/claude-sonnet-4-6` | `30` |
|
|
157
|
+
| `librarian` | Research | `anthropic/claude-sonnet-4-6` | `24` |
|
|
158
|
+
|
|
159
|
+
## `mcpDefaults`
|
|
160
|
+
|
|
161
|
+
Bunlar paketle birlikte gelen ve plugin tarafından yönetilen MCP sunucu tanımlarıdır.
|
|
162
|
+
|
|
163
|
+
| Sunucu | Tip | Varsayılan enabled | Amaç |
|
|
164
|
+
| ------------ | -------- | ------------------ | ------------------------------------------------------------------------- |
|
|
165
|
+
| `code_index` | `local` | `true` | İndeksli kod arama, dosya bulma, özet ve sembol sorguları. |
|
|
166
|
+
| `repo` | `local` | `true` | Git status, diff, log, branch ve commit inceleme araçları. |
|
|
167
|
+
| `context7` | `remote` | `false` | Güncel kütüphane ve framework dokümantasyonu sorgulama. |
|
|
168
|
+
| `exa` | `remote` | `false` | Web arama ve code context toplama. |
|
|
169
|
+
| `gh_grep` | `remote` | `false` | Public GitHub depolarında kod arama. |
|
|
170
|
+
| `github` | `local` | `false` | GitHub repo, issue, PR ve dosya işlemleri. `GITHUB_PAT_TOKEN` gerektirir. |
|
|
171
|
+
|
|
172
|
+
Notlar:
|
|
173
|
+
|
|
174
|
+
- `code_index` ve `repo`, yerel geliştirme akışını doğrudan desteklediği için varsayılan olarak açıktır.
|
|
175
|
+
- `github`, kimlik bilgisi gerektirdiği için varsayılan olarak kapalıdır.
|
|
176
|
+
- `context7`, `exa` ve `gh_grep` opsiyonel uzak servislerdir; kapalı başlar.
|
|
177
|
+
|
|
178
|
+
## `profiles`
|
|
179
|
+
|
|
180
|
+
Plugin üç isimli profil ile gelir.
|
|
181
|
+
|
|
182
|
+
| Profil | En uygun senaryo | Observation ve telemetry | Supervision ve quality | Experimental transform |
|
|
183
|
+
| ---------- | -------------------------- | ------------------------ | ---------------------- | ---------------------- |
|
|
184
|
+
| `minimal` | En düşük runtime yükü | Çoğu kapalı | Çoğu kapalı | Kapalı |
|
|
185
|
+
| `standard` | Varsayılan günlük kullanım | Açık | Açık | Kapalı |
|
|
186
|
+
| `strict` | En yüksek koruma seviyesi | Açık | Açık | Açık |
|
|
187
|
+
|
|
188
|
+
Profil detayları:
|
|
189
|
+
|
|
190
|
+
- `minimal`, enforcement'i açık bırakır ama log ve reminder davranışlarını azaltır.
|
|
191
|
+
- `standard`, normal kullanım için varsayılan dengedir.
|
|
192
|
+
- `strict`, standart korumaların üstüne tüm experimental transform'ları da açar.
|
|
193
|
+
|
|
194
|
+
## Kullanıcı Override Örnekleri
|
|
195
|
+
|
|
196
|
+
### Temel kullanıcı runtime dosyası
|
|
197
|
+
|
|
198
|
+
Yol: `~/.config/opencode/plugins/opencode-multiagent.json`
|
|
199
|
+
|
|
200
|
+
```json
|
|
201
|
+
{
|
|
202
|
+
"flags": {
|
|
203
|
+
"profile": "strict"
|
|
204
|
+
},
|
|
205
|
+
"agentSettings": {
|
|
206
|
+
"lead": {
|
|
207
|
+
"steps": 650
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### Özel profil örneği
|
|
214
|
+
|
|
215
|
+
```json
|
|
216
|
+
{
|
|
217
|
+
"profiles": {
|
|
218
|
+
"sessiz": {
|
|
219
|
+
"observation": false,
|
|
220
|
+
"telemetry": false,
|
|
221
|
+
"supervision": false,
|
|
222
|
+
"quality_gate": false
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"flags": {
|
|
226
|
+
"profile": "sessiz"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
### `opencode.json` içinde host taraflı MCP override
|
|
232
|
+
|
|
233
|
+
Bir MCP sunucusunu açıkça etkinleştirmek veya değiştirmek istediğinizde host config kullanın:
|
|
234
|
+
|
|
235
|
+
```json
|
|
236
|
+
{
|
|
237
|
+
"$schema": "https://opencode.ai/config.json",
|
|
238
|
+
"plugin": ["opencode-multiagent"],
|
|
239
|
+
"mcp": {
|
|
240
|
+
"github": {
|
|
241
|
+
"type": "local",
|
|
242
|
+
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
|
|
243
|
+
"environment": {
|
|
244
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT_TOKEN}"
|
|
245
|
+
},
|
|
246
|
+
"enabled": true
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
## İlgili Dokümanlar
|
|
253
|
+
|
|
254
|
+
- [Kullanım Kılavuzu](usage-guide.tr.md)
|
|
255
|
+
- [Ajan Referansı](agents.tr.md)
|