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.
Files changed (96) hide show
  1. package/AGENTS.md +21 -0
  2. package/CHANGELOG.md +25 -0
  3. package/README.md +4 -4
  4. package/README.tr.md +4 -4
  5. package/agents/AGENTS.md +95 -0
  6. package/agents/auditor.md +59 -17
  7. package/agents/brainstormer.md +113 -0
  8. package/agents/{worker.md → coder.md} +12 -10
  9. package/agents/{scribe.md → docmaster.md} +16 -8
  10. package/agents/executor.md +45 -62
  11. package/agents/planner.md +59 -47
  12. package/agents/reviewer.md +22 -9
  13. package/agents/scout.md +16 -12
  14. package/agents/sec-coder.md +83 -0
  15. package/agents/ui-coder.md +77 -0
  16. package/commands/board.md +17 -0
  17. package/commands/brainstorm-conclude.md +14 -0
  18. package/commands/brainstorm.md +14 -0
  19. package/commands/execute.md +8 -7
  20. package/commands/init-deep.md +6 -6
  21. package/commands/init.md +4 -5
  22. package/commands/inspect.md +5 -5
  23. package/commands/plan.md +7 -6
  24. package/commands/quality.md +3 -3
  25. package/commands/review.md +4 -3
  26. package/commands/status.md +4 -3
  27. package/defaults/AGENTS.md +48 -0
  28. package/defaults/opencode-multiagent.json +16 -150
  29. package/defaults/opencode-multiagent.schema.json +16 -190
  30. package/dist/index.js +471 -218
  31. package/dist/opencode-multiagent/compiler.d.ts +8 -2
  32. package/dist/opencode-multiagent/compiler.d.ts.map +1 -1
  33. package/dist/opencode-multiagent/constants.d.ts +3 -57
  34. package/dist/opencode-multiagent/constants.d.ts.map +1 -1
  35. package/dist/opencode-multiagent/correlation.d.ts +21 -0
  36. package/dist/opencode-multiagent/correlation.d.ts.map +1 -0
  37. package/dist/opencode-multiagent/defaults.d.ts +0 -2
  38. package/dist/opencode-multiagent/defaults.d.ts.map +1 -1
  39. package/dist/opencode-multiagent/hooks.d.ts.map +1 -1
  40. package/dist/opencode-multiagent/log.d.ts.map +1 -1
  41. package/dist/opencode-multiagent/markdown.d.ts.map +1 -1
  42. package/dist/opencode-multiagent/quality.d.ts +4 -0
  43. package/dist/opencode-multiagent/quality.d.ts.map +1 -1
  44. package/dist/opencode-multiagent/runtime.d.ts.map +1 -1
  45. package/dist/opencode-multiagent/supervision.d.ts +14 -0
  46. package/dist/opencode-multiagent/supervision.d.ts.map +1 -1
  47. package/dist/opencode-multiagent/task-manager.d.ts +8 -2
  48. package/dist/opencode-multiagent/task-manager.d.ts.map +1 -1
  49. package/dist/opencode-multiagent/telemetry.d.ts +2 -0
  50. package/dist/opencode-multiagent/telemetry.d.ts.map +1 -1
  51. package/dist/opencode-multiagent/tools.d.ts +32 -1
  52. package/dist/opencode-multiagent/tools.d.ts.map +1 -1
  53. package/docs/agents.md +77 -175
  54. package/docs/agents.tr.md +78 -175
  55. package/docs/configuration.md +17 -27
  56. package/docs/configuration.tr.md +17 -27
  57. package/docs/usage-guide.md +35 -34
  58. package/docs/usage-guide.tr.md +36 -35
  59. package/examples/opencode.with-overrides.json +2 -2
  60. package/package.json +1 -1
  61. package/skills/AGENTS.md +51 -0
  62. package/skills/advanced-evaluation/manifest.json +1 -1
  63. package/skills/cek-context-engineering/manifest.json +1 -1
  64. package/skills/cek-prompt-engineering/manifest.json +1 -1
  65. package/skills/cek-test-prompt/manifest.json +1 -1
  66. package/skills/cek-thought-based-reasoning/manifest.json +1 -1
  67. package/skills/context-degradation/manifest.json +1 -1
  68. package/skills/debate/manifest.json +1 -1
  69. package/skills/design-first/manifest.json +1 -1
  70. package/skills/dispatching-parallel-agents/manifest.json +1 -1
  71. package/skills/drift-analysis/manifest.json +1 -1
  72. package/skills/evaluation/manifest.json +1 -1
  73. package/skills/parallel-investigation/manifest.json +1 -1
  74. package/skills/reflexion-critique/manifest.json +1 -1
  75. package/skills/reflexion-reflect/manifest.json +1 -1
  76. package/skills/root-cause-analysis/manifest.json +1 -1
  77. package/skills/sadd-judge-with-debate/manifest.json +1 -1
  78. package/skills/structured-code-review/manifest.json +1 -1
  79. package/skills/task-decomposition/manifest.json +1 -1
  80. package/skills/verification-before-completion/manifest.json +1 -1
  81. package/skills/verification-gates/manifest.json +1 -1
  82. package/agents/advisor.md +0 -60
  83. package/agents/critic.md +0 -136
  84. package/agents/deep-worker.md +0 -69
  85. package/agents/devil.md +0 -38
  86. package/agents/heavy-worker.md +0 -72
  87. package/agents/lead.md +0 -147
  88. package/agents/librarian.md +0 -66
  89. package/agents/qa.md +0 -53
  90. package/agents/quick.md +0 -70
  91. package/agents/strategist.md +0 -66
  92. package/agents/ui-heavy-worker.md +0 -66
  93. package/agents/ui-worker.md +0 -74
  94. package/agents/validator.md +0 -50
  95. package/dist/opencode-multiagent/file-lock.d.ts +0 -15
  96. 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 20 bundled agents:
7
+ `opencode-multiagent` ships 10 bundled agents:
8
8
 
9
- - 4 primary agents
10
- - 16 subagents
9
+ - 3 primary agents
10
+ - 7 subagents
11
11
 
12
- All bundled agents currently default to `temperature: 0`.
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
- - `lead` owns user-facing routing
19
- - `critic` challenges a route or inspects repo state
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
- user
28
- -> lead
29
- -> critic
30
- -> devil
31
- -> strategist
32
- -> planner
33
- -> strategist
34
- -> auditor
35
- -> devil
36
- -> scribe / librarian / reviewer / scout
37
- -> executor
38
- -> quick / worker / heavy-worker / deep-worker
39
- -> ui-worker / ui-heavy-worker
40
- -> reviewer
41
- -> validator
42
- -> qa
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
- ### `lead`
45
+ ### `brainstormer`
55
46
 
56
47
  - Mode: `primary`
57
48
  - Default model: `anthropic/claude-opus-4-6`
58
- - Steps: `500`
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: challenge agent and inspection agent
68
- - Best for: pressure-testing a route before work starts, or inspecting repo memory and plugin state without implementing changes
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: `100`
75
- - Purpose: writes durable, execution-ready plans without implementing code
76
- - Best for: larger, cross-cutting, risky, or multi-phase work that needs a stable plan in `.magent/plans/`
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: runs the approved plan by dispatching bounded worker tasks and enforcing validation tiers
84
- - Best for: orchestrating implementation, task board updates, reviewer passes, validator runs, and QA gates
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 Workers
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
- ### `worker`
72
+ ### `coder`
97
73
 
98
74
  - Mode: `subagent`
99
- - Default model: `openai/gpt-5.3-codex`
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: heavy coding worker for risky, cross-cutting, or security-sensitive implementation
110
- - Use when: the change touches multiple modules, high-risk runtime behavior, or sensitive logic
77
+ - Purpose: standard coding work
78
+ - Use when: the task is a bounded, non-UI, non-security-sensitive implementation slice
111
79
 
112
- ### `deep-worker`
80
+ ### `ui-coder`
113
81
 
114
82
  - Mode: `subagent`
115
- - Default model: `anthropic/claude-opus-4-6`
116
- - Steps: `60`
117
- - Purpose: long-horizon single-owner worker for ambiguous or reasoning-heavy coding tasks
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
- ### `ui-heavy-worker`
88
+ ### `sec-coder`
129
89
 
130
90
  - Mode: `subagent`
131
91
  - Default model: `anthropic/claude-opus-4-6`
132
- - Steps: `40`
133
- - Purpose: heavy UI and UX worker for broad or stateful interface changes
134
- - Use when: the work spans multiple screens, complex flows, or coordinated interaction behavior
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 and Review Agents
96
+ ## Quality Agents
137
97
 
138
98
  ### `reviewer`
139
99
 
140
100
  - Mode: `subagent`
141
- - Default model: `github-copilot/grok-code-fast-1`
142
- - Steps: `24`
143
- - Purpose: read-only local code reviewer for small bounded slices
144
- - Best for: reviewing 1-3 files or a focused diff slice before implementation is reported as done
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: `openai/gpt-5.4`
166
- - Steps: `24`
167
- - Purpose: aggressive read-only plan auditor
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
- ### `devil`
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: `24`
185
- - Purpose: fast read-only repository mapper
186
- - Best for: file discovery, symbol tracing, codebase structure questions, and git-aware local exploration
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
- ### `scribe`
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/**`, and `.magent/**` artifacts
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 | `lead`, `critic`, `planner`, `executor` |
227
- | Coding workers | `quick`, `worker`, `heavy-worker`, `deep-worker`, `ui-worker`, `ui-heavy-worker` |
228
- | Quality and review | `reviewer`, `validator`, `qa`, `auditor`, `devil` |
229
- | Research and advisory | `scout`, `librarian`, `advisor`, `strategist` |
230
- | Documentation | `scribe` |
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 | Category | Mode | Model | Steps | Primary use |
235
- | ----------------- | ------------- | ---------- | --------------------------------- | ----- | ------------------------------------------- |
236
- | `lead` | Primary | `primary` | `anthropic/claude-opus-4-6` | `500` | User-facing routing and lifecycle ownership |
237
- | `critic` | Primary | `primary` | `openai/gpt-5.4` | `200` | Challenge and inspection |
238
- | `planner` | Primary | `primary` | `anthropic/claude-opus-4-6` | `100` | Durable plan authoring |
239
- | `executor` | Primary | `primary` | `anthropic/claude-sonnet-4-6` | `200` | Execution orchestration and validation |
240
- | `quick` | Coding | `subagent` | `opencode-go/minimax-m2.5` | `16` | Tiny explicit edits |
241
- | `worker` | Coding | `subagent` | `openai/gpt-5.3-codex` | `30` | Default bounded coding work |
242
- | `heavy-worker` | Coding | `subagent` | `openai/gpt-5.4` | `40` | Risky cross-cutting implementation |
243
- | `deep-worker` | Coding | `subagent` | `anthropic/claude-opus-4-6` | `60` | Reasoning-heavy single-owner coding |
244
- | `ui-worker` | Coding | `subagent` | `anthropic/claude-opus-4-6` | `30` | Standard UI and UX work |
245
- | `ui-heavy-worker` | Coding | `subagent` | `anthropic/claude-opus-4-6` | `40` | Broad UI flows and advanced state |
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