opencode-multiagent 0.3.0-next.1 → 0.5.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 +21 -0
- package/CHANGELOG.md +25 -0
- package/README.md +4 -4
- package/README.tr.md +4 -4
- package/agents/AGENTS.md +95 -0
- package/agents/auditor.md +59 -17
- package/agents/brainstormer.md +113 -0
- package/agents/{worker.md → coder.md} +12 -10
- package/agents/{scribe.md → docmaster.md} +16 -8
- package/agents/executor.md +45 -62
- package/agents/planner.md +59 -47
- package/agents/reviewer.md +22 -9
- package/agents/scout.md +16 -12
- package/agents/sec-coder.md +83 -0
- package/agents/ui-coder.md +77 -0
- package/commands/board.md +17 -0
- package/commands/brainstorm-conclude.md +14 -0
- package/commands/brainstorm.md +14 -0
- package/commands/execute.md +8 -7
- package/commands/init-deep.md +6 -6
- package/commands/init.md +4 -5
- package/commands/inspect.md +5 -5
- package/commands/plan.md +7 -6
- package/commands/quality.md +3 -3
- package/commands/review.md +4 -3
- package/commands/status.md +4 -3
- package/defaults/AGENTS.md +48 -0
- package/defaults/opencode-multiagent.json +16 -150
- package/defaults/opencode-multiagent.schema.json +16 -190
- package/dist/index.js +471 -218
- package/dist/opencode-multiagent/compiler.d.ts +8 -2
- package/dist/opencode-multiagent/compiler.d.ts.map +1 -1
- package/dist/opencode-multiagent/constants.d.ts +3 -57
- package/dist/opencode-multiagent/constants.d.ts.map +1 -1
- 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 +0 -2
- package/dist/opencode-multiagent/defaults.d.ts.map +1 -1
- package/dist/opencode-multiagent/hooks.d.ts.map +1 -1
- package/dist/opencode-multiagent/log.d.ts.map +1 -1
- package/dist/opencode-multiagent/markdown.d.ts.map +1 -1
- package/dist/opencode-multiagent/quality.d.ts +4 -0
- package/dist/opencode-multiagent/quality.d.ts.map +1 -1
- package/dist/opencode-multiagent/runtime.d.ts.map +1 -1
- package/dist/opencode-multiagent/supervision.d.ts +14 -0
- package/dist/opencode-multiagent/supervision.d.ts.map +1 -1
- package/dist/opencode-multiagent/task-manager.d.ts +8 -2
- package/dist/opencode-multiagent/task-manager.d.ts.map +1 -1
- package/dist/opencode-multiagent/telemetry.d.ts +2 -0
- package/dist/opencode-multiagent/telemetry.d.ts.map +1 -1
- package/dist/opencode-multiagent/tools.d.ts +32 -1
- package/dist/opencode-multiagent/tools.d.ts.map +1 -1
- package/docs/agents.md +77 -175
- package/docs/agents.tr.md +78 -175
- package/docs/configuration.md +17 -27
- package/docs/configuration.tr.md +17 -27
- package/docs/usage-guide.md +35 -34
- package/docs/usage-guide.tr.md +36 -35
- package/examples/opencode.with-overrides.json +2 -2
- package/package.json +1 -1
- package/skills/AGENTS.md +51 -0
- package/skills/advanced-evaluation/manifest.json +1 -1
- package/skills/cek-context-engineering/manifest.json +1 -1
- package/skills/cek-prompt-engineering/manifest.json +1 -1
- package/skills/cek-test-prompt/manifest.json +1 -1
- package/skills/cek-thought-based-reasoning/manifest.json +1 -1
- package/skills/context-degradation/manifest.json +1 -1
- package/skills/debate/manifest.json +1 -1
- package/skills/design-first/manifest.json +1 -1
- package/skills/dispatching-parallel-agents/manifest.json +1 -1
- package/skills/drift-analysis/manifest.json +1 -1
- package/skills/evaluation/manifest.json +1 -1
- package/skills/parallel-investigation/manifest.json +1 -1
- package/skills/reflexion-critique/manifest.json +1 -1
- package/skills/reflexion-reflect/manifest.json +1 -1
- package/skills/root-cause-analysis/manifest.json +1 -1
- package/skills/sadd-judge-with-debate/manifest.json +1 -1
- package/skills/structured-code-review/manifest.json +1 -1
- package/skills/task-decomposition/manifest.json +1 -1
- package/skills/verification-before-completion/manifest.json +1 -1
- package/skills/verification-gates/manifest.json +1 -1
- package/agents/advisor.md +0 -60
- package/agents/critic.md +0 -136
- package/agents/deep-worker.md +0 -69
- package/agents/devil.md +0 -38
- package/agents/heavy-worker.md +0 -72
- package/agents/lead.md +0 -147
- package/agents/librarian.md +0 -66
- package/agents/qa.md +0 -53
- package/agents/quick.md +0 -70
- package/agents/strategist.md +0 -66
- package/agents/ui-heavy-worker.md +0 -66
- package/agents/ui-worker.md +0 -74
- package/agents/validator.md +0 -50
- package/dist/opencode-multiagent/file-lock.d.ts +0 -15
- package/dist/opencode-multiagent/file-lock.d.ts.map +0 -1
package/docs/agents.md
CHANGED
|
@@ -4,255 +4,157 @@
|
|
|
4
4
|
|
|
5
5
|
# Agent Reference
|
|
6
6
|
|
|
7
|
-
`opencode-multiagent` ships
|
|
7
|
+
`opencode-multiagent` ships 10 bundled agents:
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
9
|
+
- 3 primary agents
|
|
10
|
+
- 7 subagents
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Most bundled agents default to `temperature: 0`. The exception is `brainstormer` which uses `temperature: 0.3` for more creative exploration.
|
|
13
13
|
|
|
14
14
|
## System Shape
|
|
15
15
|
|
|
16
16
|
The system is intentionally layered:
|
|
17
17
|
|
|
18
|
-
- `
|
|
19
|
-
- `
|
|
20
|
-
- `planner` creates durable plans for larger work
|
|
21
|
-
- `executor` turns a plan into bounded worker execution
|
|
18
|
+
- `planner` owns user-facing triage, planning, challenge, and inspection
|
|
19
|
+
- `executor` turns an approved plan into bounded subagent execution
|
|
22
20
|
- specialized subagents handle coding, review, research, and documentation slices
|
|
23
21
|
|
|
24
22
|
## High-Level Hierarchy
|
|
25
23
|
|
|
26
24
|
```text
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-> advisor
|
|
44
|
-
-> scout
|
|
45
|
-
-> scribe
|
|
46
|
-
-> planner (escalation after repeated QA failures)
|
|
47
|
-
-> librarian
|
|
48
|
-
-> scout
|
|
49
|
-
-> scribe
|
|
25
|
+
brainstormer (pre-planning exploration + idea refinement)
|
|
26
|
+
├── scout (research)
|
|
27
|
+
└── auditor (stress-test ideas)
|
|
28
|
+
|
|
29
|
+
planner (triage + planning + inspection)
|
|
30
|
+
├── executor (execution coordination)
|
|
31
|
+
│ ├── coder (standard coding) -> reviewer, scout
|
|
32
|
+
│ ├── ui-coder (UI/UX coding) -> reviewer, scout
|
|
33
|
+
│ ├── sec-coder (security coding) -> reviewer, scout
|
|
34
|
+
│ ├── reviewer (quality gate)
|
|
35
|
+
│ ├── scout (research)
|
|
36
|
+
│ └── docmaster (.magent + docs + GitHub)
|
|
37
|
+
├── auditor (plan gap finder)
|
|
38
|
+
├── scout (research)
|
|
39
|
+
├── reviewer (evidence)
|
|
40
|
+
└── docmaster (plan persistence)
|
|
50
41
|
```
|
|
51
42
|
|
|
52
43
|
## Primary Agents
|
|
53
44
|
|
|
54
|
-
### `
|
|
45
|
+
### `brainstormer`
|
|
55
46
|
|
|
56
47
|
- Mode: `primary`
|
|
57
48
|
- Default model: `anthropic/claude-opus-4-6`
|
|
58
|
-
-
|
|
59
|
-
- Purpose: single user-facing entry point that owns the full request lifecycle
|
|
60
|
-
- Best for: deciding the lightest safe route, delegating work, integrating results, and responding to the user
|
|
61
|
-
|
|
62
|
-
### `critic`
|
|
63
|
-
|
|
64
|
-
- Mode: `primary`
|
|
65
|
-
- Default model: `openai/gpt-5.4`
|
|
49
|
+
- Temperature: `0.3`
|
|
66
50
|
- Steps: `200`
|
|
67
|
-
- Purpose:
|
|
68
|
-
- Best for:
|
|
51
|
+
- Purpose: pre-planning exploration and idea refinement
|
|
52
|
+
- Best for: exploring ideas with the user before planning begins, surfacing gaps and alternatives, challenging assumptions, and producing a planner-ready brief when the discussion concludes
|
|
69
53
|
|
|
70
54
|
### `planner`
|
|
71
55
|
|
|
72
56
|
- Mode: `primary`
|
|
73
57
|
- Default model: `anthropic/claude-opus-4-6`
|
|
74
|
-
- Steps: `
|
|
75
|
-
- Purpose:
|
|
76
|
-
- Best for:
|
|
58
|
+
- Steps: `200`
|
|
59
|
+
- Purpose: triage, planning, challenge, and inspection
|
|
60
|
+
- Best for: deciding the lightest safe route, writing durable execution plans, challenging assumptions, inspecting repository state without implementing changes, and integrating results for the user
|
|
77
61
|
|
|
78
62
|
### `executor`
|
|
79
63
|
|
|
80
64
|
- Mode: `primary`
|
|
81
65
|
- Default model: `anthropic/claude-sonnet-4-6`
|
|
82
66
|
- Steps: `200`
|
|
83
|
-
- Purpose:
|
|
84
|
-
- Best for:
|
|
67
|
+
- Purpose: execution orchestration
|
|
68
|
+
- Best for: running an approved plan by dispatching bounded coding tasks, coordinating reviewer and scout passes, and enforcing quality gates
|
|
85
69
|
|
|
86
|
-
## Coding
|
|
87
|
-
|
|
88
|
-
### `quick`
|
|
89
|
-
|
|
90
|
-
- Mode: `subagent`
|
|
91
|
-
- Default model: `opencode-go/minimax-m2.5`
|
|
92
|
-
- Steps: `16`
|
|
93
|
-
- Purpose: very fast worker for tiny, explicit, low-risk edits
|
|
94
|
-
- Use when: the task is literal, local, and clearly bounded
|
|
70
|
+
## Coding Agents
|
|
95
71
|
|
|
96
|
-
### `
|
|
72
|
+
### `coder`
|
|
97
73
|
|
|
98
74
|
- Mode: `subagent`
|
|
99
|
-
- Default model: `
|
|
100
|
-
- Steps: `30`
|
|
101
|
-
- Purpose: standard worker for normal bounded implementation work
|
|
102
|
-
- Use when: you need the default coding path for non-UI work without the highest risk level
|
|
103
|
-
|
|
104
|
-
### `heavy-worker`
|
|
105
|
-
|
|
106
|
-
- Mode: `subagent`
|
|
107
|
-
- Default model: `openai/gpt-5.4`
|
|
75
|
+
- Default model: `anthropic/claude-sonnet-4-6`
|
|
108
76
|
- Steps: `40`
|
|
109
|
-
- Purpose:
|
|
110
|
-
- Use when: the
|
|
77
|
+
- Purpose: standard coding work
|
|
78
|
+
- Use when: the task is a bounded, non-UI, non-security-sensitive implementation slice
|
|
111
79
|
|
|
112
|
-
### `
|
|
80
|
+
### `ui-coder`
|
|
113
81
|
|
|
114
82
|
- Mode: `subagent`
|
|
115
|
-
- Default model: `anthropic/claude-
|
|
116
|
-
- Steps: `
|
|
117
|
-
- Purpose:
|
|
118
|
-
- Use when: a task needs more local analysis, flow tracing, or careful multi-step implementation inside one bounded slice
|
|
119
|
-
|
|
120
|
-
### `ui-worker`
|
|
121
|
-
|
|
122
|
-
- Mode: `subagent`
|
|
123
|
-
- Default model: `anthropic/claude-opus-4-6`
|
|
124
|
-
- Steps: `30`
|
|
125
|
-
- Purpose: normal-complexity UI and UX worker
|
|
83
|
+
- Default model: `anthropic/claude-sonnet-4-6`
|
|
84
|
+
- Steps: `40`
|
|
85
|
+
- Purpose: UI and UX work
|
|
126
86
|
- Use when: the work is mainly components, view-local state, layout, accessibility, or responsive behavior
|
|
127
87
|
|
|
128
|
-
### `
|
|
88
|
+
### `sec-coder`
|
|
129
89
|
|
|
130
90
|
- Mode: `subagent`
|
|
131
91
|
- Default model: `anthropic/claude-opus-4-6`
|
|
132
|
-
- Steps: `
|
|
133
|
-
- Purpose:
|
|
134
|
-
- Use when: the
|
|
92
|
+
- Steps: `60`
|
|
93
|
+
- Purpose: security-sensitive work
|
|
94
|
+
- Use when: the change touches authentication, authorization, cryptography, secrets handling, or other high-risk runtime behavior
|
|
135
95
|
|
|
136
|
-
## Quality
|
|
96
|
+
## Quality Agents
|
|
137
97
|
|
|
138
98
|
### `reviewer`
|
|
139
99
|
|
|
140
100
|
- Mode: `subagent`
|
|
141
|
-
- Default model: `
|
|
142
|
-
- Steps: `
|
|
143
|
-
- Purpose:
|
|
144
|
-
- Best for: reviewing
|
|
145
|
-
|
|
146
|
-
### `validator`
|
|
147
|
-
|
|
148
|
-
- Mode: `subagent`
|
|
149
|
-
- Default model: `openai/gpt-5.3-codex`
|
|
150
|
-
- Steps: `24`
|
|
151
|
-
- Purpose: bounded verification worker that runs the smallest meaningful commands
|
|
152
|
-
- Best for: tests, builds, lint, and type checks that provide runtime evidence for a claimed change
|
|
153
|
-
|
|
154
|
-
### `qa`
|
|
155
|
-
|
|
156
|
-
- Mode: `subagent`
|
|
157
|
-
- Default model: `openai/gpt-5.4`
|
|
158
|
-
- Steps: `24`
|
|
159
|
-
- Purpose: read-only quality gate that returns a final acceptance decision
|
|
160
|
-
- Best for: higher-risk work where the system needs an explicit OKAY or REJECT verdict after validation
|
|
101
|
+
- Default model: `anthropic/claude-sonnet-4-6`
|
|
102
|
+
- Steps: `30`
|
|
103
|
+
- Purpose: code review, QA, and validation
|
|
104
|
+
- Best for: reviewing code changes, running build and test evidence, and issuing an acceptance verdict before work is reported as done
|
|
161
105
|
|
|
162
106
|
### `auditor`
|
|
163
107
|
|
|
164
108
|
- Mode: `subagent`
|
|
165
|
-
- Default model: `
|
|
166
|
-
- Steps: `
|
|
167
|
-
- Purpose:
|
|
109
|
+
- Default model: `anthropic/claude-opus-4-6`
|
|
110
|
+
- Steps: `40`
|
|
111
|
+
- Purpose: stubborn plan gap finder
|
|
168
112
|
- Best for: finding missing steps, weak acceptance criteria, sequencing failures, and verification gaps before execution starts
|
|
169
113
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
- Mode: `subagent`
|
|
173
|
-
- Default model: `anthropic/claude-sonnet-4-6`
|
|
174
|
-
- Steps: `8`
|
|
175
|
-
- Purpose: pure devil's-advocate reasoning agent with no tools
|
|
176
|
-
- Best for: attacking assumptions, pointing out blind spots, and generating counter-arguments quickly
|
|
177
|
-
|
|
178
|
-
## Research and Advisory Agents
|
|
114
|
+
## Research Agent
|
|
179
115
|
|
|
180
116
|
### `scout`
|
|
181
117
|
|
|
182
118
|
- Mode: `subagent`
|
|
183
119
|
- Default model: `anthropic/claude-sonnet-4-6`
|
|
184
|
-
- Steps: `
|
|
185
|
-
- Purpose:
|
|
186
|
-
- Best for:
|
|
187
|
-
|
|
188
|
-
### `librarian`
|
|
189
|
-
|
|
190
|
-
- Mode: `subagent`
|
|
191
|
-
- Default model: `anthropic/claude-sonnet-4-6`
|
|
192
|
-
- Steps: `24`
|
|
193
|
-
- Purpose: external research and documentation agent
|
|
194
|
-
- Best for: live documentation lookup, external comparisons, API research, and evidence gathering outside the repo
|
|
195
|
-
|
|
196
|
-
### `advisor`
|
|
197
|
-
|
|
198
|
-
- Mode: `subagent`
|
|
199
|
-
- Default model: `openai/gpt-5.4`
|
|
200
|
-
- Steps: `20`
|
|
201
|
-
- Purpose: read-only coding advisor for blocked or low-confidence implementation work
|
|
202
|
-
- Best for: unblocking a worker, choosing between local implementation paths, or clarifying a risky decision without editing code
|
|
203
|
-
|
|
204
|
-
### `strategist`
|
|
205
|
-
|
|
206
|
-
- Mode: `subagent`
|
|
207
|
-
- Default model: `anthropic/claude-opus-4-6`
|
|
208
|
-
- Steps: `20`
|
|
209
|
-
- Purpose: judgment-first plan and architecture advisor
|
|
210
|
-
- Best for: validating direction, comparing approaches, surfacing architectural risks, and deciding whether a plan should proceed or change
|
|
120
|
+
- Steps: `30`
|
|
121
|
+
- Purpose: file discovery and external research
|
|
122
|
+
- Best for: repository mapping, symbol tracing, codebase structure questions, git-aware local exploration, and live documentation or API lookup
|
|
211
123
|
|
|
212
124
|
## Documentation Agent
|
|
213
125
|
|
|
214
|
-
### `
|
|
126
|
+
### `docmaster`
|
|
215
127
|
|
|
216
128
|
- Mode: `subagent`
|
|
217
129
|
- Default model: `anthropic/claude-sonnet-4-6`
|
|
218
130
|
- Steps: `30`
|
|
219
131
|
- Purpose: documentation writer and `.magent` artifact manager
|
|
220
|
-
- Best for: writing or updating `README.md`, `AGENTS.md`, `CHANGELOG.md`, `CONTRIBUTING.md`, `docs/**`,
|
|
132
|
+
- Best for: writing or updating `README.md`, `AGENTS.md`, `CHANGELOG.md`, `CONTRIBUTING.md`, `docs/**`, `.magent/**` artifacts, and GitHub workflow files
|
|
221
133
|
|
|
222
134
|
## Agent Categories at a Glance
|
|
223
135
|
|
|
224
|
-
| Category | Agents
|
|
225
|
-
| --------------------- |
|
|
226
|
-
| Primary orchestration | `
|
|
227
|
-
| Coding
|
|
228
|
-
| Quality
|
|
229
|
-
| Research
|
|
230
|
-
| Documentation | `
|
|
136
|
+
| Category | Agents |
|
|
137
|
+
| --------------------- | ------------------------------------------ |
|
|
138
|
+
| Primary orchestration | `brainstormer`, `planner`, `executor` |
|
|
139
|
+
| Coding | `coder`, `ui-coder`, `sec-coder` |
|
|
140
|
+
| Quality | `reviewer`, `auditor` |
|
|
141
|
+
| Research | `scout` |
|
|
142
|
+
| Documentation | `docmaster` |
|
|
231
143
|
|
|
232
144
|
## Summary Table
|
|
233
145
|
|
|
234
|
-
| Agent
|
|
235
|
-
|
|
|
236
|
-
| `
|
|
237
|
-
| `
|
|
238
|
-
| `
|
|
239
|
-
| `
|
|
240
|
-
| `
|
|
241
|
-
| `
|
|
242
|
-
| `
|
|
243
|
-
| `
|
|
244
|
-
| `
|
|
245
|
-
| `
|
|
246
|
-
| `reviewer` | Quality | `subagent` | `github-copilot/grok-code-fast-1` | `24` | Read-only code review |
|
|
247
|
-
| `validator` | Quality | `subagent` | `openai/gpt-5.3-codex` | `24` | Verification command execution |
|
|
248
|
-
| `qa` | Quality | `subagent` | `openai/gpt-5.4` | `24` | Final quality gate |
|
|
249
|
-
| `auditor` | Quality | `subagent` | `openai/gpt-5.4` | `24` | Plan auditing |
|
|
250
|
-
| `devil` | Quality | `subagent` | `anthropic/claude-sonnet-4-6` | `8` | Counter-arguments and blind spots |
|
|
251
|
-
| `scout` | Research | `subagent` | `anthropic/claude-sonnet-4-6` | `24` | Local repo exploration |
|
|
252
|
-
| `librarian` | Research | `subagent` | `anthropic/claude-sonnet-4-6` | `24` | External research |
|
|
253
|
-
| `advisor` | Advisory | `subagent` | `openai/gpt-5.4` | `20` | Local implementation advice |
|
|
254
|
-
| `strategist` | Advisory | `subagent` | `anthropic/claude-opus-4-6` | `20` | Architecture and direction advice |
|
|
255
|
-
| `scribe` | Documentation | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | Docs and `.magent` writing |
|
|
146
|
+
| Agent | Category | Mode | Model | Steps | Primary use |
|
|
147
|
+
| -------------- | ------------- | ---------- | ----------------------------- | ----- | ---------------------------------------- |
|
|
148
|
+
| `brainstormer` | Primary | `primary` | `anthropic/claude-opus-4-6` | `200` | Pre-planning exploration and ideation |
|
|
149
|
+
| `planner` | Primary | `primary` | `anthropic/claude-opus-4-6` | `200` | Triage, planning, challenge, inspection |
|
|
150
|
+
| `executor` | Primary | `primary` | `anthropic/claude-sonnet-4-6` | `200` | Execution orchestration |
|
|
151
|
+
| `coder` | Coding | `subagent` | `anthropic/claude-sonnet-4-6` | `40` | Standard bounded coding work |
|
|
152
|
+
| `ui-coder` | Coding | `subagent` | `anthropic/claude-sonnet-4-6` | `40` | UI and UX work |
|
|
153
|
+
| `sec-coder` | Coding | `subagent` | `anthropic/claude-opus-4-6` | `60` | Security-sensitive implementation |
|
|
154
|
+
| `reviewer` | Quality | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | Code review, QA, and validation |
|
|
155
|
+
| `auditor` | Quality | `subagent` | `anthropic/claude-opus-4-6` | `40` | Plan gap finding before execution |
|
|
156
|
+
| `scout` | Research | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | File discovery and external research |
|
|
157
|
+
| `docmaster` | Documentation | `subagent` | `anthropic/claude-sonnet-4-6` | `30` | Docs and `.magent` writing |
|
|
256
158
|
|
|
257
159
|
## Related Docs
|
|
258
160
|
|