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.
Files changed (153) hide show
  1. package/AGENTS.md +62 -0
  2. package/CHANGELOG.md +18 -0
  3. package/CONTRIBUTING.md +36 -0
  4. package/README.md +41 -165
  5. package/README.tr.md +84 -0
  6. package/RELEASE.md +68 -0
  7. package/agents/advisor.md +9 -6
  8. package/agents/auditor.md +8 -6
  9. package/agents/critic.md +19 -10
  10. package/agents/deep-worker.md +11 -7
  11. package/agents/devil.md +3 -1
  12. package/agents/executor.md +20 -19
  13. package/agents/heavy-worker.md +11 -7
  14. package/agents/lead.md +22 -30
  15. package/agents/librarian.md +6 -2
  16. package/agents/planner.md +18 -10
  17. package/agents/qa.md +9 -6
  18. package/agents/quick.md +12 -7
  19. package/agents/reviewer.md +9 -6
  20. package/agents/scout.md +9 -5
  21. package/agents/scribe.md +33 -28
  22. package/agents/strategist.md +10 -7
  23. package/agents/ui-heavy-worker.md +11 -7
  24. package/agents/ui-worker.md +12 -7
  25. package/agents/validator.md +8 -5
  26. package/agents/worker.md +12 -7
  27. package/commands/execute.md +1 -0
  28. package/commands/init-deep.md +1 -0
  29. package/commands/init.md +1 -0
  30. package/commands/inspect.md +1 -0
  31. package/commands/plan.md +1 -0
  32. package/commands/quality.md +1 -0
  33. package/commands/review.md +1 -0
  34. package/commands/status.md +1 -0
  35. package/defaults/opencode-multiagent.json +223 -0
  36. package/defaults/opencode-multiagent.schema.json +249 -0
  37. package/dist/control-plane.d.ts +4 -0
  38. package/dist/control-plane.d.ts.map +1 -0
  39. package/dist/index.d.ts +5 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +1583 -0
  42. package/dist/opencode-multiagent/compiler.d.ts +19 -0
  43. package/dist/opencode-multiagent/compiler.d.ts.map +1 -0
  44. package/dist/opencode-multiagent/constants.d.ts +116 -0
  45. package/dist/opencode-multiagent/constants.d.ts.map +1 -0
  46. package/dist/opencode-multiagent/defaults.d.ts +10 -0
  47. package/dist/opencode-multiagent/defaults.d.ts.map +1 -0
  48. package/dist/opencode-multiagent/file-lock.d.ts +15 -0
  49. package/dist/opencode-multiagent/file-lock.d.ts.map +1 -0
  50. package/dist/opencode-multiagent/hooks.d.ts +62 -0
  51. package/dist/opencode-multiagent/hooks.d.ts.map +1 -0
  52. package/dist/opencode-multiagent/log.d.ts +2 -0
  53. package/dist/opencode-multiagent/log.d.ts.map +1 -0
  54. package/dist/opencode-multiagent/markdown.d.ts +8 -0
  55. package/dist/opencode-multiagent/markdown.d.ts.map +1 -0
  56. package/dist/opencode-multiagent/mcp.d.ts +3 -0
  57. package/dist/opencode-multiagent/mcp.d.ts.map +1 -0
  58. package/dist/opencode-multiagent/policy.d.ts +5 -0
  59. package/dist/opencode-multiagent/policy.d.ts.map +1 -0
  60. package/dist/opencode-multiagent/quality.d.ts +14 -0
  61. package/dist/opencode-multiagent/quality.d.ts.map +1 -0
  62. package/dist/opencode-multiagent/runtime.d.ts +7 -0
  63. package/dist/opencode-multiagent/runtime.d.ts.map +1 -0
  64. package/dist/opencode-multiagent/session-tracker.d.ts +32 -0
  65. package/dist/opencode-multiagent/session-tracker.d.ts.map +1 -0
  66. package/dist/opencode-multiagent/skills.d.ts +17 -0
  67. package/dist/opencode-multiagent/skills.d.ts.map +1 -0
  68. package/dist/opencode-multiagent/supervision.d.ts +12 -0
  69. package/dist/opencode-multiagent/supervision.d.ts.map +1 -0
  70. package/dist/opencode-multiagent/task-manager.d.ts +48 -0
  71. package/dist/opencode-multiagent/task-manager.d.ts.map +1 -0
  72. package/dist/opencode-multiagent/telemetry.d.ts +26 -0
  73. package/dist/opencode-multiagent/telemetry.d.ts.map +1 -0
  74. package/dist/opencode-multiagent/tools.d.ts +56 -0
  75. package/dist/opencode-multiagent/tools.d.ts.map +1 -0
  76. package/dist/opencode-multiagent/types.d.ts +36 -0
  77. package/dist/opencode-multiagent/types.d.ts.map +1 -0
  78. package/dist/opencode-multiagent/utils.d.ts +9 -0
  79. package/dist/opencode-multiagent/utils.d.ts.map +1 -0
  80. package/docs/agents.md +260 -0
  81. package/docs/agents.tr.md +260 -0
  82. package/docs/configuration.md +255 -0
  83. package/docs/configuration.tr.md +255 -0
  84. package/docs/usage-guide.md +226 -0
  85. package/docs/usage-guide.tr.md +227 -0
  86. package/examples/opencode.with-overrides.json +1 -5
  87. package/package.json +23 -13
  88. package/skills/advanced-evaluation/SKILL.md +37 -21
  89. package/skills/advanced-evaluation/manifest.json +2 -13
  90. package/skills/cek-context-engineering/SKILL.md +159 -87
  91. package/skills/cek-context-engineering/manifest.json +1 -3
  92. package/skills/cek-prompt-engineering/SKILL.md +13 -10
  93. package/skills/cek-prompt-engineering/manifest.json +1 -3
  94. package/skills/cek-test-prompt/SKILL.md +38 -28
  95. package/skills/cek-test-prompt/manifest.json +1 -3
  96. package/skills/cek-thought-based-reasoning/SKILL.md +75 -21
  97. package/skills/cek-thought-based-reasoning/manifest.json +1 -3
  98. package/skills/context-degradation/SKILL.md +14 -13
  99. package/skills/context-degradation/manifest.json +1 -3
  100. package/skills/debate/SKILL.md +23 -78
  101. package/skills/debate/manifest.json +2 -12
  102. package/skills/design-first/manifest.json +2 -13
  103. package/skills/dispatching-parallel-agents/SKILL.md +14 -3
  104. package/skills/dispatching-parallel-agents/manifest.json +1 -4
  105. package/skills/drift-analysis/SKILL.md +50 -29
  106. package/skills/drift-analysis/manifest.json +2 -12
  107. package/skills/evaluation/manifest.json +2 -12
  108. package/skills/executing-plans/SKILL.md +15 -8
  109. package/skills/executing-plans/manifest.json +1 -3
  110. package/skills/handoff-protocols/manifest.json +2 -12
  111. package/skills/parallel-investigation/SKILL.md +25 -12
  112. package/skills/parallel-investigation/manifest.json +1 -4
  113. package/skills/reflexion-critique/SKILL.md +21 -10
  114. package/skills/reflexion-critique/manifest.json +1 -3
  115. package/skills/reflexion-reflect/SKILL.md +36 -34
  116. package/skills/reflexion-reflect/manifest.json +2 -10
  117. package/skills/root-cause-analysis/manifest.json +2 -13
  118. package/skills/sadd-judge-with-debate/SKILL.md +50 -26
  119. package/skills/sadd-judge-with-debate/manifest.json +1 -3
  120. package/skills/structured-code-review/manifest.json +2 -11
  121. package/skills/task-decomposition/manifest.json +2 -13
  122. package/skills/verification-before-completion/manifest.json +2 -15
  123. package/skills/verification-gates/SKILL.md +27 -19
  124. package/skills/verification-gates/manifest.json +2 -12
  125. package/defaults/agent-settings.json +0 -102
  126. package/defaults/agent-settings.schema.json +0 -25
  127. package/defaults/flags.json +0 -35
  128. package/defaults/flags.schema.json +0 -119
  129. package/defaults/mcp-defaults.json +0 -47
  130. package/defaults/mcp-defaults.schema.json +0 -38
  131. package/defaults/profiles.json +0 -53
  132. package/defaults/profiles.schema.json +0 -60
  133. package/defaults/team-profiles.json +0 -83
  134. package/src/control-plane.ts +0 -21
  135. package/src/index.ts +0 -8
  136. package/src/opencode-multiagent/compiler.ts +0 -168
  137. package/src/opencode-multiagent/constants.ts +0 -178
  138. package/src/opencode-multiagent/file-lock.ts +0 -90
  139. package/src/opencode-multiagent/hooks.ts +0 -599
  140. package/src/opencode-multiagent/log.ts +0 -12
  141. package/src/opencode-multiagent/mailbox.ts +0 -287
  142. package/src/opencode-multiagent/markdown.ts +0 -99
  143. package/src/opencode-multiagent/mcp.ts +0 -35
  144. package/src/opencode-multiagent/policy.ts +0 -67
  145. package/src/opencode-multiagent/quality.ts +0 -140
  146. package/src/opencode-multiagent/runtime.ts +0 -55
  147. package/src/opencode-multiagent/skills.ts +0 -144
  148. package/src/opencode-multiagent/supervision.ts +0 -156
  149. package/src/opencode-multiagent/task-manager.ts +0 -148
  150. package/src/opencode-multiagent/team-manager.ts +0 -219
  151. package/src/opencode-multiagent/team-tools.ts +0 -359
  152. package/src/opencode-multiagent/telemetry.ts +0 -124
  153. 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)