opencode-multiagent 0.2.1 → 0.4.0
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 +83 -0
- package/CHANGELOG.md +31 -0
- package/CONTRIBUTING.md +36 -0
- package/README.md +44 -168
- package/README.tr.md +84 -0
- package/RELEASE.md +68 -0
- package/agents/AGENTS.md +91 -0
- package/agents/auditor.md +67 -23
- package/agents/{worker.md → coder.md} +24 -17
- package/agents/docmaster.md +91 -0
- package/agents/executor.md +63 -79
- package/agents/planner.md +78 -58
- package/agents/reviewer.md +31 -15
- package/agents/scout.md +25 -17
- package/agents/sec-coder.md +83 -0
- package/agents/ui-coder.md +77 -0
- package/commands/board.md +17 -0
- package/commands/execute.md +9 -7
- package/commands/init-deep.md +7 -6
- package/commands/init.md +5 -5
- package/commands/inspect.md +6 -5
- package/commands/plan.md +8 -6
- package/commands/quality.md +4 -3
- package/commands/review.md +5 -3
- package/commands/status.md +5 -3
- package/defaults/AGENTS.md +48 -0
- package/defaults/opencode-multiagent.json +180 -0
- package/defaults/opencode-multiagent.schema.json +265 -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 +1916 -0
- package/dist/opencode-multiagent/compiler.d.ts +25 -0
- package/dist/opencode-multiagent/compiler.d.ts.map +1 -0
- package/dist/opencode-multiagent/constants.d.ts +128 -0
- package/dist/opencode-multiagent/constants.d.ts.map +1 -0
- package/dist/opencode-multiagent/correlation.d.ts +21 -0
- package/dist/opencode-multiagent/correlation.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/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 +18 -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 +26 -0
- package/dist/opencode-multiagent/supervision.d.ts.map +1 -0
- package/dist/opencode-multiagent/task-manager.d.ts +54 -0
- package/dist/opencode-multiagent/task-manager.d.ts.map +1 -0
- package/dist/opencode-multiagent/telemetry.d.ts +28 -0
- package/dist/opencode-multiagent/telemetry.d.ts.map +1 -0
- package/dist/opencode-multiagent/tools.d.ts +87 -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 +148 -0
- package/docs/agents.tr.md +149 -0
- package/docs/configuration.md +244 -0
- package/docs/configuration.tr.md +244 -0
- package/docs/usage-guide.md +224 -0
- package/docs/usage-guide.tr.md +225 -0
- package/examples/opencode.with-overrides.json +3 -7
- package/package.json +23 -13
- package/skills/AGENTS.md +51 -0
- 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/agents/advisor.md +0 -57
- package/agents/critic.md +0 -127
- package/agents/deep-worker.md +0 -65
- package/agents/devil.md +0 -36
- package/agents/heavy-worker.md +0 -68
- package/agents/lead.md +0 -155
- package/agents/librarian.md +0 -62
- package/agents/qa.md +0 -50
- package/agents/quick.md +0 -65
- package/agents/scribe.md +0 -78
- package/agents/strategist.md +0 -63
- package/agents/ui-heavy-worker.md +0 -62
- package/agents/ui-worker.md +0 -69
- package/agents/validator.md +0 -47
- 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,244 @@
|
|
|
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` | Ayrılmış. Skill registry'yi yükler ancak henüz içerik enjekte etmez. |
|
|
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
|
+
| `planner` | Primary | `anthropic/claude-opus-4-6` | `200` |
|
|
139
|
+
| `executor` | Primary | `anthropic/claude-sonnet-4-6` | `200` |
|
|
140
|
+
| `coder` | Coding | `anthropic/claude-sonnet-4-6` | `40` |
|
|
141
|
+
| `ui-coder` | Coding | `anthropic/claude-sonnet-4-6` | `40` |
|
|
142
|
+
| `sec-coder` | Coding | `anthropic/claude-opus-4-6` | `60` |
|
|
143
|
+
| `reviewer` | Quality | `anthropic/claude-sonnet-4-6` | `30` |
|
|
144
|
+
| `auditor` | Quality | `anthropic/claude-opus-4-6` | `40` |
|
|
145
|
+
| `scout` | Research | `anthropic/claude-sonnet-4-6` | `30` |
|
|
146
|
+
| `docmaster` | Documentation | `anthropic/claude-sonnet-4-6` | `30` |
|
|
147
|
+
|
|
148
|
+
## `mcpDefaults`
|
|
149
|
+
|
|
150
|
+
Bunlar paketle birlikte gelen ve plugin tarafından yönetilen MCP sunucu tanımlarıdır.
|
|
151
|
+
|
|
152
|
+
| Sunucu | Tip | Varsayılan enabled | Amaç |
|
|
153
|
+
| ------------ | -------- | ------------------ | ------------------------------------------------------------------------- |
|
|
154
|
+
| `code_index` | `local` | `true` | İndeksli kod arama, dosya bulma, özet ve sembol sorguları. |
|
|
155
|
+
| `repo` | `local` | `true` | Git status, diff, log, branch ve commit inceleme araçları. |
|
|
156
|
+
| `context7` | `remote` | `false` | Güncel kütüphane ve framework dokümantasyonu sorgulama. |
|
|
157
|
+
| `exa` | `remote` | `false` | Web arama ve code context toplama. |
|
|
158
|
+
| `gh_grep` | `remote` | `false` | Public GitHub depolarında kod arama. |
|
|
159
|
+
| `github` | `local` | `false` | GitHub repo, issue, PR ve dosya işlemleri. `GITHUB_PAT_TOKEN` gerektirir. |
|
|
160
|
+
|
|
161
|
+
Notlar:
|
|
162
|
+
|
|
163
|
+
- `code_index` ve `repo`, yerel geliştirme akışını doğrudan desteklediği için varsayılan olarak açıktır.
|
|
164
|
+
- `github`, kimlik bilgisi gerektirdiği için varsayılan olarak kapalıdır.
|
|
165
|
+
- `context7`, `exa` ve `gh_grep` opsiyonel uzak servislerdir; kapalı başlar.
|
|
166
|
+
|
|
167
|
+
## `profiles`
|
|
168
|
+
|
|
169
|
+
Plugin üç isimli profil ile gelir.
|
|
170
|
+
|
|
171
|
+
| Profil | En uygun senaryo | Observation ve telemetry | Supervision ve quality | Experimental transform |
|
|
172
|
+
| ---------- | -------------------------- | ------------------------ | ---------------------- | ---------------------- |
|
|
173
|
+
| `minimal` | En düşük runtime yükü | Çoğu kapalı | Çoğu kapalı | Kapalı |
|
|
174
|
+
| `standard` | Varsayılan günlük kullanım | Açık | Açık | Kapalı |
|
|
175
|
+
| `strict` | En yüksek koruma seviyesi | Açık | Açık | Açık |
|
|
176
|
+
|
|
177
|
+
Profil detayları:
|
|
178
|
+
|
|
179
|
+
- `minimal`, enforcement'i açık bırakır ama log ve reminder davranışlarını azaltır.
|
|
180
|
+
- `standard`, normal kullanım için varsayılan dengedir.
|
|
181
|
+
- `strict`, standart korumaların üstüne tüm experimental transform'ları da açar.
|
|
182
|
+
|
|
183
|
+
## Kullanıcı Override Örnekleri
|
|
184
|
+
|
|
185
|
+
### Temel kullanıcı runtime dosyası
|
|
186
|
+
|
|
187
|
+
Yol: `~/.config/opencode/plugins/opencode-multiagent.json`
|
|
188
|
+
|
|
189
|
+
```json
|
|
190
|
+
{
|
|
191
|
+
"flags": {
|
|
192
|
+
"profile": "strict"
|
|
193
|
+
},
|
|
194
|
+
"agentSettings": {
|
|
195
|
+
"planner": {
|
|
196
|
+
"steps": 300
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Özel profil örneği
|
|
203
|
+
|
|
204
|
+
```json
|
|
205
|
+
{
|
|
206
|
+
"profiles": {
|
|
207
|
+
"sessiz": {
|
|
208
|
+
"observation": false,
|
|
209
|
+
"telemetry": false,
|
|
210
|
+
"supervision": false,
|
|
211
|
+
"quality_gate": false
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"flags": {
|
|
215
|
+
"profile": "sessiz"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### `opencode.json` içinde host taraflı MCP override
|
|
221
|
+
|
|
222
|
+
Bir MCP sunucusunu açıkça etkinleştirmek veya değiştirmek istediğinizde host config kullanın:
|
|
223
|
+
|
|
224
|
+
```json
|
|
225
|
+
{
|
|
226
|
+
"$schema": "https://opencode.ai/config.json",
|
|
227
|
+
"plugin": ["opencode-multiagent"],
|
|
228
|
+
"mcp": {
|
|
229
|
+
"github": {
|
|
230
|
+
"type": "local",
|
|
231
|
+
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
|
|
232
|
+
"environment": {
|
|
233
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT_TOKEN}"
|
|
234
|
+
},
|
|
235
|
+
"enabled": true
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
## İlgili Dokümanlar
|
|
242
|
+
|
|
243
|
+
- [Kullanım Kılavuzu](usage-guide.tr.md)
|
|
244
|
+
- [Ajan Referansı](agents.tr.md)
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
> Language: **English** | [Turkish](usage-guide.tr.md)
|
|
2
|
+
>
|
|
3
|
+
> Back: [README](../README.md)
|
|
4
|
+
|
|
5
|
+
# Usage Guide
|
|
6
|
+
|
|
7
|
+
This guide covers the practical day-to-day use of `opencode-multiagent` as an OpenCode plugin.
|
|
8
|
+
|
|
9
|
+
## 1. Install the Plugin
|
|
10
|
+
|
|
11
|
+
Add the plugin to `opencode.json`:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"$schema": "https://opencode.ai/config.json",
|
|
16
|
+
"plugin": ["opencode-multiagent"]
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
That is the smallest supported setup.
|
|
21
|
+
|
|
22
|
+
Reference examples:
|
|
23
|
+
|
|
24
|
+
- `examples/opencode.json`
|
|
25
|
+
- `examples/opencode.with-overrides.json`
|
|
26
|
+
|
|
27
|
+
## 2. What Happens When the Plugin Loads
|
|
28
|
+
|
|
29
|
+
When OpenCode loads the package, the plugin:
|
|
30
|
+
|
|
31
|
+
1. reads bundled defaults from `defaults/opencode-multiagent.json`
|
|
32
|
+
2. reads user overrides from `~/.config/opencode/plugins/opencode-multiagent.json`
|
|
33
|
+
3. builds the effective runtime flags and agent settings
|
|
34
|
+
4. compiles bundled agent and command markdown into the active config
|
|
35
|
+
5. injects plugin-owned MCP defaults only when the host config does not already define them
|
|
36
|
+
6. prefers `planner` as the default top-level agent when available
|
|
37
|
+
7. enables runtime hooks for telemetry, supervision, quality reminders, and the shared task board
|
|
38
|
+
|
|
39
|
+
## 3. Normal User Flow
|
|
40
|
+
|
|
41
|
+
In normal use, you do not need to pick worker agents manually. The system is designed so the
|
|
42
|
+
top-level interaction goes through `planner`.
|
|
43
|
+
|
|
44
|
+
Typical flow:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
user -> planner -> executor -> specialized subagents
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### The main routing roles
|
|
51
|
+
|
|
52
|
+
| Agent | Role |
|
|
53
|
+
| ---------- | -------------------------------------------------------------------------- |
|
|
54
|
+
| `planner` | Owns triage, planning, challenge, inspection, and result integration. |
|
|
55
|
+
| `executor` | Runs the plan by dispatching bounded coding tasks and validating results. |
|
|
56
|
+
|
|
57
|
+
## 4. Triage Levels
|
|
58
|
+
|
|
59
|
+
`planner` uses a tiered routing model.
|
|
60
|
+
|
|
61
|
+
| Tier | Meaning | Typical route |
|
|
62
|
+
| -------- | -------------------------------------------------------- | -------------------------------------------- |
|
|
63
|
+
| `Tier 0` | Trivial single-file work | `planner -> executor -> coder` |
|
|
64
|
+
| `Tier 1` | Bounded work | `planner -> executor -> coder/ui-coder/sec-coder` |
|
|
65
|
+
| `Tier 2` | Complex multi-module work | `planner -> auditor -> executor -> coders` |
|
|
66
|
+
| `Tier 3` | Inspection | `planner` (inspection mode) |
|
|
67
|
+
|
|
68
|
+
As a user, the practical takeaway is simple: ask for the task naturally and let `planner` decide
|
|
69
|
+
the route unless you have a strong reason to override the flow.
|
|
70
|
+
|
|
71
|
+
## 5. Shared Task Board
|
|
72
|
+
|
|
73
|
+
The plugin exposes three shared task tools:
|
|
74
|
+
|
|
75
|
+
- `task_create`
|
|
76
|
+
- `task_update`
|
|
77
|
+
- `task_list`
|
|
78
|
+
|
|
79
|
+
These are used internally by the agent system to track work, but they are also important to
|
|
80
|
+
understand when reading logs or `.opencode` artifacts.
|
|
81
|
+
|
|
82
|
+
### Task lifecycle
|
|
83
|
+
|
|
84
|
+
Possible task states:
|
|
85
|
+
|
|
86
|
+
- `pending`
|
|
87
|
+
- `claimed`
|
|
88
|
+
- `in_progress`
|
|
89
|
+
- `completed`
|
|
90
|
+
- `failed`
|
|
91
|
+
- `blocked`
|
|
92
|
+
|
|
93
|
+
### Persistence
|
|
94
|
+
|
|
95
|
+
When a project root is available, the task board is persisted to:
|
|
96
|
+
|
|
97
|
+
- `.opencode/tasks/taskboard.json`
|
|
98
|
+
|
|
99
|
+
This makes multi-step execution easier to inspect after a session.
|
|
100
|
+
|
|
101
|
+
## 6. Profiles
|
|
102
|
+
|
|
103
|
+
The plugin ships three runtime profiles:
|
|
104
|
+
|
|
105
|
+
| Profile | When to use it |
|
|
106
|
+
| ---------- | ---------------------------------------------------------------------------- |
|
|
107
|
+
| `minimal` | You want lower runtime overhead and fewer reminders/logs. |
|
|
108
|
+
| `standard` | Normal default usage. Best starting point for most users. |
|
|
109
|
+
| `strict` | You want the strongest runtime controls and experimental transforms enabled. |
|
|
110
|
+
|
|
111
|
+
Example user override file:
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"flags": {
|
|
116
|
+
"profile": "strict"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## 7. Overriding Agent Defaults
|
|
122
|
+
|
|
123
|
+
Use `~/.config/opencode/plugins/opencode-multiagent.json` for centralized plugin-level overrides.
|
|
124
|
+
|
|
125
|
+
Example:
|
|
126
|
+
|
|
127
|
+
```json
|
|
128
|
+
{
|
|
129
|
+
"agentSettings": {
|
|
130
|
+
"planner": {
|
|
131
|
+
"steps": 300
|
|
132
|
+
},
|
|
133
|
+
"reviewer": {
|
|
134
|
+
"model": "anthropic/claude-opus-4-6"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Use `opencode.json` when you want an explicit host-level override for a specific OpenCode field.
|
|
141
|
+
|
|
142
|
+
Example:
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"$schema": "https://opencode.ai/config.json",
|
|
147
|
+
"plugin": ["opencode-multiagent"],
|
|
148
|
+
"agent": {
|
|
149
|
+
"planner": {
|
|
150
|
+
"steps": 300
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## 8. MCP Servers
|
|
157
|
+
|
|
158
|
+
Bundled MCP defaults:
|
|
159
|
+
|
|
160
|
+
- `code_index`
|
|
161
|
+
- `repo`
|
|
162
|
+
- `context7`
|
|
163
|
+
- `exa`
|
|
164
|
+
- `gh_grep`
|
|
165
|
+
- `github`
|
|
166
|
+
|
|
167
|
+
Important behavior:
|
|
168
|
+
|
|
169
|
+
- if the host config already defines one of these servers, the plugin does not overwrite it
|
|
170
|
+
- `code_index` and `repo` are enabled by default
|
|
171
|
+
- `context7`, `exa`, `gh_grep`, and `github` start disabled in bundled defaults
|
|
172
|
+
|
|
173
|
+
### Enabling GitHub MCP
|
|
174
|
+
|
|
175
|
+
Use `opencode.json` to explicitly enable it:
|
|
176
|
+
|
|
177
|
+
```json
|
|
178
|
+
{
|
|
179
|
+
"$schema": "https://opencode.ai/config.json",
|
|
180
|
+
"plugin": ["opencode-multiagent"],
|
|
181
|
+
"mcp": {
|
|
182
|
+
"github": {
|
|
183
|
+
"type": "local",
|
|
184
|
+
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
|
|
185
|
+
"environment": {
|
|
186
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT_TOKEN}"
|
|
187
|
+
},
|
|
188
|
+
"enabled": true
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
## 9. Logs and Generated Artifacts
|
|
195
|
+
|
|
196
|
+
Common generated files and directories:
|
|
197
|
+
|
|
198
|
+
| Path | Purpose |
|
|
199
|
+
| ----------------------------------------------------- | ---------------------------------------------------- |
|
|
200
|
+
| `~/.config/opencode/logs/opencode-multiagent.jsonl` | Observation and telemetry log |
|
|
201
|
+
| `~/.config/opencode/plugins/opencode-multiagent.json` | User runtime overrides |
|
|
202
|
+
| `.opencode/tasks/taskboard.json` | Shared task board persistence |
|
|
203
|
+
| `.opencode/plans/` | Durable plans created through planner and docmaster |
|
|
204
|
+
| `.opencode/exec/` | Execution artifacts maintained during larger work |
|
|
205
|
+
|
|
206
|
+
## 10. Development Workflow
|
|
207
|
+
|
|
208
|
+
If you are developing the plugin itself, the usual workflow is:
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
mise run setup
|
|
212
|
+
mise run test
|
|
213
|
+
mise run typecheck
|
|
214
|
+
mise run validate-config
|
|
215
|
+
mise run build
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
If `mise` is unavailable in your local shell, the equivalent direct commands are based on `bun`,
|
|
219
|
+
`tsx`, and `tsc`.
|
|
220
|
+
|
|
221
|
+
## Related Docs
|
|
222
|
+
|
|
223
|
+
- [Configuration Reference](configuration.md)
|
|
224
|
+
- [Agent Reference](agents.md)
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
> Dil: [English](usage-guide.md) | **Türkçe**
|
|
2
|
+
>
|
|
3
|
+
> Geri: [README](../README.tr.md)
|
|
4
|
+
|
|
5
|
+
# Kullanım Kılavuzu
|
|
6
|
+
|
|
7
|
+
Bu kılavuz, `opencode-multiagent` eklentisinin günlük kullanımını pratik açıdan anlatır.
|
|
8
|
+
|
|
9
|
+
## 1. Plugin Kurulumu
|
|
10
|
+
|
|
11
|
+
`opencode.json` dosyasına plugin'i ekleyin:
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"$schema": "https://opencode.ai/config.json",
|
|
16
|
+
"plugin": ["opencode-multiagent"]
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Bu, desteklenen en küçük kurulumdur.
|
|
21
|
+
|
|
22
|
+
Referans örnekler:
|
|
23
|
+
|
|
24
|
+
- `examples/opencode.json`
|
|
25
|
+
- `examples/opencode.with-overrides.json`
|
|
26
|
+
|
|
27
|
+
## 2. Plugin Yüklenince Ne Olur
|
|
28
|
+
|
|
29
|
+
OpenCode paketi yüklediğinde plugin şu adımları uygular:
|
|
30
|
+
|
|
31
|
+
1. `defaults/opencode-multiagent.json` içindeki varsayılanları okur
|
|
32
|
+
2. `~/.config/opencode/plugins/opencode-multiagent.json` içindeki kullanıcı override'larını okur
|
|
33
|
+
3. efektif runtime flag ve agent ayarlarını oluşturur
|
|
34
|
+
4. paketlenmiş agent ve command markdown dosyalarını aktif config'e derler
|
|
35
|
+
5. host config içinde yoksa plugin'e ait MCP varsayılanlarını ekler
|
|
36
|
+
6. mümkünse `planner` ajanını varsayılan top-level ajan olarak tercih eder
|
|
37
|
+
7. telemetry, supervision, quality reminder ve ortak task board hook'larını açar
|
|
38
|
+
|
|
39
|
+
## 3. Normal Kullanım Akışı
|
|
40
|
+
|
|
41
|
+
Normal kullanımda uzman ajanları elle seçmeniz gerekmez. Sistem, top-level etkileşimin `planner`
|
|
42
|
+
üzerinden gitmesi için tasarlanmıştır.
|
|
43
|
+
|
|
44
|
+
Tipik akış:
|
|
45
|
+
|
|
46
|
+
```text
|
|
47
|
+
kullanici -> planner -> executor -> uzman alt ajanlar
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Temel routing rolleri
|
|
51
|
+
|
|
52
|
+
| Agent | Rol |
|
|
53
|
+
| ---------- | -------------------------------------------------------------------------------------- |
|
|
54
|
+
| `planner` | Talebi triage eder, route seçer, büyük işler için plan üretir, sonuçları inceler. |
|
|
55
|
+
| `executor` | Planı bounded uzman görevlerine bölerek uygular ve sonuçları doğrular. |
|
|
56
|
+
|
|
57
|
+
## 4. Triage Seviyeleri (Tier Modeli)
|
|
58
|
+
|
|
59
|
+
`planner`, katmanlı bir routing modeli kullanır.
|
|
60
|
+
|
|
61
|
+
| Tier | Açıklama | Rota |
|
|
62
|
+
| -------- | ---------------------------------------------- | --------------------------------------------- |
|
|
63
|
+
| `Tier 0` | Küçük, açık işler | `planner -> executor -> coder` |
|
|
64
|
+
| `Tier 1` | Bounded işler | `planner -> executor -> coder/ui-coder/sec-coder` |
|
|
65
|
+
| `Tier 2` | Karmaşık çok modüllü işler | `planner -> auditor -> executor -> coders` |
|
|
66
|
+
| `Tier 3` | İnceleme | `planner` (inspeksiyon modu) |
|
|
67
|
+
|
|
68
|
+
Kullanıcı açısından pratik kural basittir: güçlü bir sebep yoksa görevi doğal şekilde tarif edin ve
|
|
69
|
+
`planner` ajanının route seçmesine izin verin.
|
|
70
|
+
|
|
71
|
+
## 5. Ortak Task Board
|
|
72
|
+
|
|
73
|
+
Plugin üç ortak task aracı sunar:
|
|
74
|
+
|
|
75
|
+
- `task_create`
|
|
76
|
+
- `task_update`
|
|
77
|
+
- `task_list`
|
|
78
|
+
|
|
79
|
+
Bu araçlar ajan sistemi tarafından dahili olarak kullanılır; ancak log ve `.opencode` çıktılarının
|
|
80
|
+
nasıl oluştuğunu anlamak için bilinmeleri faydalıdır.
|
|
81
|
+
|
|
82
|
+
### Task yaşam döngüsü
|
|
83
|
+
|
|
84
|
+
Olası task durumları:
|
|
85
|
+
|
|
86
|
+
- `pending`
|
|
87
|
+
- `claimed`
|
|
88
|
+
- `in_progress`
|
|
89
|
+
- `completed`
|
|
90
|
+
- `failed`
|
|
91
|
+
- `blocked`
|
|
92
|
+
|
|
93
|
+
### Kalıcılık
|
|
94
|
+
|
|
95
|
+
Bir proje kökü varsa task board şu dosyaya yazılır:
|
|
96
|
+
|
|
97
|
+
- `.opencode/tasks/taskboard.json`
|
|
98
|
+
|
|
99
|
+
Bu sayede çok adımlı yürütmeler oturum sonrasında da incelenebilir.
|
|
100
|
+
|
|
101
|
+
## 6. Profiller
|
|
102
|
+
|
|
103
|
+
Plugin üç runtime profili ile gelir:
|
|
104
|
+
|
|
105
|
+
| Profil | Ne zaman kullanılır |
|
|
106
|
+
| ---------- | ------------------------------------------------------------------------ |
|
|
107
|
+
| `minimal` | Daha düşük runtime yükü ve daha az log/reminder istediğinizde |
|
|
108
|
+
| `standard` | Normal varsayılan kullanım; çoğu kullanıcı için en iyi başlangıç noktası |
|
|
109
|
+
| `strict` | En güçlü runtime kontrolleri ve experimental transform'lar gerektiğinde |
|
|
110
|
+
|
|
111
|
+
Örnek kullanıcı override dosyası:
|
|
112
|
+
|
|
113
|
+
```json
|
|
114
|
+
{
|
|
115
|
+
"flags": {
|
|
116
|
+
"profile": "strict"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## 7. Agent Varsayılanlarını Override Etme
|
|
122
|
+
|
|
123
|
+
Merkezi plugin düzeyi override için `~/.config/opencode/plugins/opencode-multiagent.json`
|
|
124
|
+
kullanın.
|
|
125
|
+
|
|
126
|
+
Örnek:
|
|
127
|
+
|
|
128
|
+
```json
|
|
129
|
+
{
|
|
130
|
+
"agentSettings": {
|
|
131
|
+
"planner": {
|
|
132
|
+
"steps": 300
|
|
133
|
+
},
|
|
134
|
+
"reviewer": {
|
|
135
|
+
"model": "anthropic/claude-opus-4-6"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Belirli bir OpenCode alanını açıkça override etmek istediğinizde `opencode.json` kullanın.
|
|
142
|
+
|
|
143
|
+
Örnek:
|
|
144
|
+
|
|
145
|
+
```json
|
|
146
|
+
{
|
|
147
|
+
"$schema": "https://opencode.ai/config.json",
|
|
148
|
+
"plugin": ["opencode-multiagent"],
|
|
149
|
+
"agent": {
|
|
150
|
+
"planner": {
|
|
151
|
+
"steps": 300
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## 8. MCP Sunucuları
|
|
158
|
+
|
|
159
|
+
Paketle gelen MCP varsayılanları:
|
|
160
|
+
|
|
161
|
+
- `code_index`
|
|
162
|
+
- `repo`
|
|
163
|
+
- `context7`
|
|
164
|
+
- `exa`
|
|
165
|
+
- `gh_grep`
|
|
166
|
+
- `github`
|
|
167
|
+
|
|
168
|
+
Önemli davranışlar:
|
|
169
|
+
|
|
170
|
+
- host config zaten aynı isimli sunucuyu tanımlıyorsa plugin onun üstüne yazmaz
|
|
171
|
+
- `code_index` ve `repo` varsayılan olarak açıktır
|
|
172
|
+
- `context7`, `exa`, `gh_grep` ve `github` paket varsayılanlarında kapalı başlar
|
|
173
|
+
|
|
174
|
+
### GitHub MCP'yi etkinleştirme
|
|
175
|
+
|
|
176
|
+
Bunu açıkça etkinleştirmek için `opencode.json` kullanın:
|
|
177
|
+
|
|
178
|
+
```json
|
|
179
|
+
{
|
|
180
|
+
"$schema": "https://opencode.ai/config.json",
|
|
181
|
+
"plugin": ["opencode-multiagent"],
|
|
182
|
+
"mcp": {
|
|
183
|
+
"github": {
|
|
184
|
+
"type": "local",
|
|
185
|
+
"command": ["npx", "-y", "@modelcontextprotocol/server-github"],
|
|
186
|
+
"environment": {
|
|
187
|
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "{env:GITHUB_PAT_TOKEN}"
|
|
188
|
+
},
|
|
189
|
+
"enabled": true
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## 9. Loglar ve Üretilen Artifaktlar
|
|
196
|
+
|
|
197
|
+
Sık görülen dosya ve dizinler:
|
|
198
|
+
|
|
199
|
+
| Yol | Amaç |
|
|
200
|
+
| ----------------------------------------------------- | -------------------------------------------------------------- |
|
|
201
|
+
| `~/.config/opencode/logs/opencode-multiagent.jsonl` | Observation ve telemetry logu |
|
|
202
|
+
| `~/.config/opencode/plugins/opencode-multiagent.json` | Kullanıcı runtime override dosyası |
|
|
203
|
+
| `.opencode/tasks/taskboard.json` | Ortak task board verisi |
|
|
204
|
+
| `.opencode/plans/` | `planner` ve `docmaster` tarafından yazılan kalıcı planlar |
|
|
205
|
+
| `.opencode/exec/` | Büyük yürütmeler sırasında tutulan execution artifaktları |
|
|
206
|
+
|
|
207
|
+
## 10. Geliştirme Akışı
|
|
208
|
+
|
|
209
|
+
Plugin'in kendisini geliştiriyorsanız tipik akış şöyledir:
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
mise run setup
|
|
213
|
+
mise run test
|
|
214
|
+
mise run typecheck
|
|
215
|
+
mise run validate-config
|
|
216
|
+
mise run build
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
Yerel shell ortamınızda `mise` yoksa aynı doğrulamalar `bun`, `tsx` ve `tsc` tabanlı komutlarla da
|
|
220
|
+
çalıştırılabilir.
|
|
221
|
+
|
|
222
|
+
## İlgili Dokümanlar
|
|
223
|
+
|
|
224
|
+
- [Konfigürasyon Referansı](configuration.tr.md)
|
|
225
|
+
- [Ajan Referansı](agents.tr.md)
|