@te-river/opencode-team-mode 1.4.2 → 1.4.3

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/README.md CHANGED
@@ -212,21 +212,36 @@ opencode-team-mode/
212
212
 
213
213
  ## 🗂️ Shared Blackboard (with automatic cleanup)
214
214
 
215
- Sub-agents cannot message each other live (platform limitation), so TeamMode coordinates them through a **file blackboard**:
215
+ Sub-agents cannot message each other live (platform limitation), so TeamMode coordinates them through a **file blackboard** with strict ownership:
216
216
 
217
217
  - Each multi-agent task gets its own directory under
218
218
  `<repo>/.git/opencode-team/<task-slug>/` — inside `.git/`, so your working
219
219
  tree and commits are **never polluted**. (Non-git workspaces fall back to
220
220
  the OS temp dir.)
221
- - Every agent writes its full deliverable to a designated artifact
222
- (`01-architect-design.md`, `03-review-findings.md`, …); the Team Lead
223
- relays *summary + file path* in each dispatch and keeps `MANIFEST.md` as
224
- the index. Full documents are shared verbatim no lossy telephone game,
225
- and fewer tokens.
221
+ - **File ownership:** every artifact is one topic-sized file written by
222
+ exactly one agent (`01-architect-auth-design.md`, `03-reviewer-auth-r1.md`).
223
+ ~100 lines max per file split topics instead of letting files balloon.
224
+ - **Writes are frozen:** a revision is a new round-suffixed file
225
+ (`…-r2.md`); nothing is ever appended to or later agents reading stale rounds.
226
+ - **The Team Lead is the router:** every dispatch carries a manifest —
227
+ `Task:` (self-contained brief), `Reads:` (only the files that work package
228
+ needs), `Write to:` (the one file the agent owns). Specialists read nothing
229
+ that isn't listed, so long tasks never drown sub-agents in unnecessary context.
230
+ - **`MANIFEST.md` is the lead's state board:** a file index plus a ≤50-line
231
+ `## Current state` section (phase, decisions still valid, next steps),
232
+ updated every converged round — the lead's compressed memory across long tasks.
226
233
  - The Team Lead also enforces a review/test **feedback loop**: Critical/Major
227
234
  findings and product bugs automatically become tracked fix tasks until the
228
235
  deliverable converges.
229
236
 
237
+ ### Triage — questions don't become code edits
238
+
239
+ The Team Lead classifies every incoming message before acting: a question or
240
+ consult gets an answer (zero file changes, fixes merely proposed and awaiting
241
+ your go-ahead); only explicit action requests enter the workflow. And whenever
242
+ you spell out what may or may not be touched, **those boundaries outrank
243
+ everything else** — the lead restates them in every single dispatch.
244
+
230
245
  ### Cleanup — two layers
231
246
 
232
247
  | Layer | Who | When |
package/README.zh-CN.md CHANGED
@@ -212,16 +212,29 @@ opencode-team-mode/
212
212
 
213
213
  ## 🗂️ 共享黑板(带自动清理)
214
214
 
215
- 子代理之间无法实时互发消息(平台限制),TeamMode 通过**文件黑板**让它们协作:
215
+ 子代理之间无法实时互发消息(平台限制),TeamMode 通过**严格所有权的文件黑板**让它们协作:
216
216
 
217
217
  - 每个多 Agent 任务在 `<repo>/.git/opencode-team/<task-slug>/` 下拥有独立目录 ——
218
218
  位于 `.git/` 内,**绝不污染**你的工作区和 commit(非 git 工作区自动回退到系统临时目录)。
219
- - 每个 Agent 把完整产出写入指定文件(`01-architect-design.md`、`03-review-findings.md`
220
- 等),Team Lead 在派发时传递*摘要 + 文件路径*,并维护 `MANIFEST.md` 索引。
221
- 全文档原文共享 —— 没有"传话失真",还省 token。
219
+ - **文件所有权**:每个制品是一个"一主题一文件",只由一个 Agent
220
+ (`01-architect-auth-design.md`、`03-reviewer-auth-r1.md`)。单文件约 ≤100 行,
221
+ 超长就拆主题文件而不是任其膨胀。
222
+ - **写入即冻结**:修订 = 新的轮次后缀文件(`…-r2.md`);绝不追加旧文件,
223
+ 后续 Agent 也永远读不到过时轮次。
224
+ - **Team Lead 是路由器**:每次 dispatch 携带清单——`Task:`(自包含任务书)、
225
+ `Reads:`(仅列出该工作包需要的文件)、`Write to:`(该 Agent 本次拥有的唯一文件)。
226
+ 子代理不读清单之外的任何东西,超长任务因此不会把无关上下文灌进子代理。
227
+ - **`MANIFEST.md` 是 lead 的状态板**:文件索引 + 顶部 ≤50 行的 `## Current state`
228
+ 节(阶段、仍然有效的决策、下一步),每轮闭环后更新——lead 跨长任务的压缩记忆。
222
229
  - Team Lead 同时强制执行审查/测试**反馈闭环**:Critical/Major 问题和产品 bug
223
230
  自动转化为跟踪的修复任务,直到交付物收敛。
224
231
 
232
+ ### Triage —— 提问不会变成代码修改
233
+
234
+ Team Lead 对每条消息先分类再行动:咨询/提问只得到回答(零文件改动,发现缺陷
235
+ 仅**提议**修复并等待你放行);只有明确的行动指令才进入工作流。并且一旦你写明
236
+ 了哪些能碰哪些不能碰,**这些边界高于一切规则**——lead 会在每次派发中原样重申。
237
+
225
238
  ### 清理 —— 两层防御
226
239
 
227
240
  | 层级 | 责任方 | 时机 |
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAka7C,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAO9C,CAAA"}
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAgc7C,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAO9C,CAAA"}
package/dist/agents.js CHANGED
@@ -17,21 +17,25 @@
17
17
  * - Research findings carry confidence tags and critical ones are verified.
18
18
  */
19
19
  /* ------------------------------------------------------------------ */
20
- /* Blackboard write guarantee (appended to every specialist prompt) */
20
+ /* Blackboard rules (appended to every specialist prompt) */
21
21
  /* ------------------------------------------------------------------ */
22
22
  const BLACKBOARD_GUARANTEE = `
23
23
 
24
- ## Blackboard write guarantee
25
- - Writing your designated blackboard artifact is ALWAYS within your role.
26
- Any read-only constraint applies to PROJECT SOURCES and the code under
27
- review NEVER to the blackboard directory. Your tools can write there;
28
- do it yourself, in the file the dispatch names.
24
+ ## Blackboard rules
25
+ - You own exactly ONE artifact file: the one named in your dispatch under
26
+ \`Write to:\`. Create/overwrite only that file never append to existing
27
+ artifacts, never edit files owned by other roles, never rewrite history.
28
+ - Read ONLY the files listed in your dispatch's \`Reads:\`. Do not browse
29
+ the task directory for "extra context" — the lead scoped your reading
30
+ deliberately, and unlisted rounds will only pollute your context. If you
31
+ believe a needed file is missing from the list, say so in your reply
32
+ instead of opening files nobody authorized.
33
+ - Writing your artifact is ALWAYS within your role: any read-only
34
+ constraint applies to PROJECT SOURCES and the code under review — NEVER
35
+ to the blackboard. Your tools can write there; do it yourself.
29
36
  - NEVER reply "append this verbatim for me" or hand the full deliverable
30
37
  back to the dispatcher to transcribe — that defeats the entire point of
31
- the blackboard. Reply with your summary + the file path, nothing else.
32
- - Read ONLY the blackboard files explicitly listed in your dispatch. Do
33
- not browse the task directory for "extra context" — the lead scoped the
34
- reading deliberately, and stale rounds will only pollute yours.
38
+ the blackboard. Summary + your file path is the only valid reply shape.
35
39
  - If a write genuinely fails (permissions, missing directory), start your
36
40
  reply with the line \`BLACKBOARD WRITE FAILED: <reason>\` and only then
37
41
  include the full content as fallback, so the lead can retry the write
@@ -52,6 +56,24 @@ const teamLead = {
52
56
  You orchestrate the team: decompose work, dispatch it to specialist agents
53
57
  via the Task tool, integrate their outputs, and enforce quality gates.
54
58
 
59
+ ## Triage — classify before acting (Step 0, always)
60
+ - Question ≠ work order. When the user asks, analyzes, or consults
61
+ ("why does X fail?", "how would we do Y?"), ANSWER it — read code if
62
+ useful, change nothing. If answering needs external knowledge, dispatch
63
+ \`researcher\`; don't grind through it yourself.
64
+ - Before any modification, ask explicitly: "does this request need file
65
+ changes?" Anything weaker than a clear yes → touch zero files.
66
+ - Spotted an obvious defect while answering? Propose the fix and WAIT for
67
+ the go-ahead — never fix-on-the-sly.
68
+ - Explicit action request ("fix X", "add Y", "refactor Z") → enter the
69
+ workflow below.
70
+ - Genuinely ambiguous → one targeted question, then act.
71
+ - USER-STATED BOUNDARIES ARE SUPREME: whenever the user details what may
72
+ be touched and what must not (files, modules, features), those limits
73
+ outrank every rule in this prompt. Enforce them in your own work AND
74
+ restate them inside every dispatch; if a task seems to require crossing
75
+ one, stop and ask — do not "balance" the conflict yourself.
76
+
55
77
  ## Hard rule — TodoList discipline (non-negotiable)
56
78
  Before you touch anything on a medium-or-larger task you MUST create a todo
57
79
  list. A task qualifies as medium-or-larger if ANY of these hold:
@@ -91,32 +113,40 @@ edits: config tweaks, typo/format fixes, doc updates, tiny glue code
91
113
  (≲ 10 lines). Anything substantive — feature logic, multi-file changes,
92
114
  API design — goes to \`implementer\`.
93
115
 
94
- ## Shared blackboard (sub-agent coordination)
95
- Sub-agents cannot message each other live, so the team coordinates through a
96
- file blackboard (root path is appended at the end of this prompt):
97
- - When a task involves 2+ agents, create ONE task directory under the board
98
- root: \`<root>/<task-slug>/\`.
99
- - Every dispatch must state: the task directory, the exact output file the
100
- agent should write (e.g. \`01-architect-design.md\`), and which prior files
101
- to read first.
102
- - Keep dispatches self-contained: include a 2–5 line summary of relevant
103
- prior work in the text AND point to the blackboard file holding the full
104
- content. Summary-in-prompt + file-path is the belt-and-braces protocol
105
- never rely on an agent "knowing" what another produced.
106
- - Scope the reading: list ONLY the blackboard files the work package
107
- actually needs (latest relevant round of each artifact) — never tell an
108
- agent to "read everything in the directory".
109
- - When an artifact is revised, write a new round-suffixed file
110
- (e.g. \`03-review-findings-r2.md\`) and reference only the latest round
111
- in dispatches, so stale iterations never enter a sub-agent's context.
116
+ ## Shared blackboard (file ownership + your dispatch manifest)
117
+ Sub-agents cannot message each other live; the blackboard is their shared
118
+ memory and YOU are the router you decide who writes what and who reads
119
+ what (root path is appended at the end of this prompt):
120
+ - One task directory per multi-agent task: \`<root>/<task-slug>/\`.
121
+ - FILE OWNERSHIP every artifact is one topic-sized file written by
122
+ exactly one agent: \`NN-<role>-<topic>.md\` (e.g.
123
+ \`01-architect-auth-design.md\`, \`03-reviewer-auth-r1.md\`). Keep files
124
+ ~100 lines or less; when an artifact grows past that, split it into
125
+ topic files instead of letting it bloat.
126
+ - WRITES ARE FROZEN — a revision is a NEW file with a round suffix
127
+ (\`02-implementer-auth-r2.md\`). Never append to an existing artifact,
128
+ and reference only the latest round in later dispatches, so stale
129
+ iterations never enter a sub-agent's context.
130
+ - Every dispatch must carry a manifest (all fields required):
131
+ Task: self-contained description, with a 2–5 line summary of the
132
+ prior work it builds on (summary-in-prompt + file paths is
133
+ the belt-and-braces protocol)
134
+ Reads: ONLY the files this work package needs — never "read
135
+ everything in the directory"
136
+ Write to: the one new file this agent owns for this package
137
+ If the user stated boundaries, restate them in the dispatch text too.
138
+ - MANIFEST.md is yours alone: a file index (one line per artifact — file,
139
+ owner, status, one-line summary) topped by a \`## Current state\` section
140
+ of ≤ 50 lines (phase, decisions still valid, next steps). Update it
141
+ after every converged round — it is your compressed memory across long
142
+ tasks. Do not put it on specialists' Reads lists unless one genuinely
143
+ needs the index.
112
144
  - Sub-agents reply with a summary plus their file path; read the file
113
145
  yourself when you need detail, then relay the relevant parts onward.
114
146
  - A specialist asking you to transcribe its output verbatim is a protocol
115
147
  violation — send it back to write the file itself. Only if its reply
116
148
  contains \`BLACKBOARD WRITE FAILED\` may you write the artifact as a
117
149
  fallback; note the failure in MANIFEST.md so it is not silently tolerated.
118
- - Maintain \`MANIFEST.md\` in the task directory: one line per artifact
119
- (file — role — status — one-line summary).
120
150
  - After you deliver the final report, DELETE the task directory (use the
121
151
  platform-appropriate command). The plugin also auto-sweeps directories
122
152
  idle beyond the TTL — your deletion is the fast path, the sweeper is the
@@ -214,7 +244,7 @@ When the team lead sends back a design flaw found in review or testing:
214
244
  `,
215
245
  color: "#38BDF8", // sky blue
216
246
  // Read-only on PROJECT sources; the blackboard artifact is explicitly
217
- // writable (see Blackboard write guarantee).
247
+ // writable (see Blackboard rules).
218
248
  permission: { edit: "allow", bash: "deny", webfetch: "allow" },
219
249
  };
220
250
  /* ------------------------------------------------------------------ */
@@ -310,7 +340,7 @@ by item (fixed / not fixed / partial).
310
340
  `,
311
341
  color: "#FB923C", // orange
312
342
  // May edit ONLY the blackboard artifact; never the reviewed code
313
- // (see Blackboard write guarantee + role rules).
343
+ // (see Blackboard rules + role rules).
314
344
  permission: { edit: "allow", bash: "allow", webfetch: "allow" },
315
345
  };
316
346
  /* ------------------------------------------------------------------ */
@@ -410,7 +440,7 @@ by the team — flag prominently if that is the case.
410
440
  color: "#A78BFA", // violet
411
441
  permission: { edit: "allow", bash: "allow", webfetch: "allow", websearch: "allow" },
412
442
  };
413
- /* Append the blackboard write guarantee to every specialist prompt. */
443
+ /* Append the blackboard rules to every specialist prompt. */
414
444
  for (const a of [architect, implementer, reviewer, tester, researcher]) {
415
445
  a.prompt = (a.prompt ?? "") + BLACKBOARD_GUARANTEE;
416
446
  }
@@ -1 +1 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,wEAAwE;AACxE,yEAAyE;AACzE,wEAAwE;AACxE,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;oCAgBO,CAAA;AAEpC,wEAAwE;AACxE,wEAAwE;AACxE,wEAAwE;AACxE,MAAM,QAAQ,GAAgB;IAC5B,IAAI,EAAE,SAAS;IACf,WAAW,EACT,2EAA2E;QAC3E,qEAAqE;QACrE,2EAA2E;QAC3E,2EAA2E;QAC3E,4BAA4B;IAC9B,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHT;IACC,KAAK,EAAE,SAAS,EAAE,SAAS;IAC3B,UAAU,EAAE;QACV,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,OAAO;KACd;CACF,CAAA;AAED,wEAAwE;AACxE,wEAAwE;AACx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AE;CACpF,CAAA;AAED,6DAA6D;AAC7D,KAAK,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,CAAC;IACvE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,IAAI,EAAE,CAAC,GAAG,oBAAoB,CAAA;AACpD,CAAC;AAED,wEAAwE;AACxE,wEAAwE;AACxE,wEAAwE;AAExE,MAAM,CAAC,MAAM,MAAM,GAAgC;IACjD,MAAM,EAAE,QAAQ;IAChB,SAAS;IACT,WAAW;IACX,QAAQ;IACR,MAAM;IACN,UAAU;CACX,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAwI/C,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAOlD,CAAA"}
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AA2I/C,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAOlD,CAAA"}
package/dist/commands.js CHANGED
@@ -101,26 +101,29 @@ const teamRun = {
101
101
  $ARGUMENTS
102
102
 
103
103
  ## Workflow
104
- 1. Understand the goal and acceptance criteria.
105
- 2. **Create a todo list FIRST** one item per work package, with checkable
104
+ 1. Triage first: if this is a question/consult rather than an action
105
+ request, answer it without touching files (propose fixes, wait for a
106
+ go-ahead). Honor and restate any user-stated boundaries everywhere.
107
+ 2. Understand the goal and acceptance criteria.
108
+ 3. **Create a todo list FIRST** — one item per work package, with checkable
106
109
  done-conditions. Update statuses live (exactly one in_progress).
107
- 3. Dispatch sub-tasks to the appropriate agents:
110
+ 4. Dispatch sub-tasks to the appropriate agents:
108
111
  - Design / architecture → architect
109
112
  - Implementation → implementer
110
113
  - Code review → reviewer
111
114
  - Testing → tester
112
115
  - Research → researcher
113
- Each dispatch must be self-contained (embed relevant prior outputs).
114
- 4. For multi-agent work, coordinate through the shared blackboard: create
115
- one task directory, have each agent write its full deliverable there,
116
- and relay summary + file path in every dispatch. Run independent
117
- sub-tasks in parallel.
118
- 5. Enforce the feedback loop: reviewer Critical/Major findings and tester
116
+ 5. Coordinate through the shared blackboard: one task directory; every
117
+ dispatch carries a manifest (Task / Reads: only the files needed /
118
+ Write to: one owned artifact file); artifacts are frozen revisions are
119
+ new round-suffixed files; keep MANIFEST.md's \`## Current state\` header
120
+ updated each converged round. Run independent sub-tasks in parallel.
121
+ 6. Enforce the feedback loop: reviewer Critical/Major findings and tester
119
122
  product-bugs become fix tasks on the list → implementer fixes → re-review
120
123
  affected scope → re-run tests. Repeat until clean (max 2 loops, then
121
124
  escalate).
122
- 6. Collect all outputs, resolve conflicts, synthesize a final result.
123
- 7. Present a structured summary: changes, review/test verdict, remaining
125
+ 7. Collect all outputs, resolve conflicts, synthesize a final result.
126
+ 8. Present a structured summary: changes, review/test verdict, remaining
124
127
  assumptions and risks. Then delete the task blackboard directory.`,
125
128
  };
126
129
  /* ------------------------------------------------------------------ */
@@ -1 +1 @@
1
- {"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,wEAAwE;AACxE,MAAM,QAAQ,GAAkB;IAC9B,WAAW,EACT,+FAA+F;IACjG,KAAK,EAAE,WAAW;IAClB,QAAQ,EAAE;;;;;;;;;;;;;kDAasC;CACjD,CAAA;AAED,wEAAwE;AACxE,MAAM,aAAa,GAAkB;IACnC,WAAW,EACT,0FAA0F;IAC5F,KAAK,EAAE,aAAa;IACpB,QAAQ,EAAE;;;;;;;;4DAQgD;CAC3D,CAAA;AAED,wEAAwE;AACx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EACT,0EAA0E;IAC5E,KAAK,EAAE,UAAU;IACjB,QAAQ,EAAE;;;;;;;;;;;;;gEAaoD;CAC/D,CAAA;AAED,wEAAwE;AACxE,MAAM,QAAQ,GAAkB;IAC9B,WAAW,EACT,2EAA2E;IAC7E,KAAK,EAAE,QAAQ;IACf,QAAQ,EAAE;;;;;;;;;;;8BAWkB;CAC7B,CAAA;AAED,wEAAwE;AACxE,MAAM,YAAY,GAAkB;IAClC,WAAW,EACT,uEAAuE;IACzE,KAAK,EAAE,YAAY;IACnB,QAAQ,EAAE;;;;;;;;;;;0DAW8C;CACzD,CAAA;AAED,wEAAwE;AACxE,MAAM,OAAO,GAAkB;IAC7B,WAAW,EACT,mGAAmG;IACrG,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sEA6B0D;CACrE,CAAA;AAED,wEAAwE;AACxE,wEAAwE;AACxE,wEAAwE;AAExE,MAAM,CAAC,MAAM,QAAQ,GAAkC;IACrD,WAAW,EAAE,QAAQ;IACrB,gBAAgB,EAAE,aAAa;IAC/B,aAAa,EAAE,UAAU;IACzB,WAAW,EAAE,QAAQ;IACrB,eAAe,EAAE,YAAY;IAC7B,UAAU,EAAE,OAAO;CACpB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@te-river/opencode-team-mode",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Team collaboration mode plugin for OpenCode Desktop — injects specialized agents (architect, reviewer, implementer, tester, researcher) and team workflow commands into your OpenCode workspace.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",