dsh-agent-team-playbook 1.33.2 → 1.33.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.
Files changed (3) hide show
  1. package/README.en.md +143 -0
  2. package/README.md +6 -0
  3. package/package.json +2 -1
package/README.en.md ADDED
@@ -0,0 +1,143 @@
1
+ # Agent Team Playbook · Multi-Agent Collaboration Workflow
2
+
3
+ [中文](README.md) | English
4
+
5
+ > [![npm version](https://img.shields.io/npm/v/dsh-agent-team-playbook)](https://www.npmjs.com/package/dsh-agent-team-playbook)
6
+ > [![license](https://img.shields.io/npm/l/dsh-agent-team-playbook)](LICENSE)
7
+ > ![DSH](https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1%20%3C0.3.0-2f6f4f)
8
+
9
+ A complete collaboration protocol for teams of one Lead plus several AI teammates: how to size a task, split the work, write a brief, audit, accept, and retro.
10
+
11
+ Not a prompt collection — **executable process and gates**: every rule maps to a checkable action and a file where its result lands.
12
+
13
+ ```
14
+ dsh plugin --profile web add dsh-agent-team-playbook # command + web panel (writes nothing)
15
+ npx dsh-agent-team-playbook init # or install as resident context (writes AGENTS.md + docs/)
16
+ ```
17
+
18
+ ## What it fixes
19
+
20
+ Multi-agent work rarely fails because the model is not smart enough. It fails because:
21
+
22
+ - no completion criteria were set, so the work is discovered to be wrong only at the end
23
+ - no write-scope exclusivity, so two teammates overwrite each other's file
24
+ - auditing is skipped and the debugging cost is pushed onto real hardware
25
+ - conclusions live only in the chat and are gone by the next round
26
+ - the same pit is stepped in three times because nobody did a root-cause pass
27
+
28
+ This repository turns those lessons into clauses, templates and checklists.
29
+
30
+ ## Structure
31
+
32
+ ```
33
+ AGENTS.md resident core (<=8k chars): charter, iron rules, tier table, hard clauses, index
34
+ docs/workflow/rules/ detail volumes, read on demand (9 of them)
35
+ docs/workflow/practices/ experience library, organised by problem type
36
+ ```
37
+
38
+ Design rule: **the core file only does three things — state principles, give quick reference, point the way**. Low-frequency detail moves down into volumes, the core keeps a trigger line.
39
+
40
+ ### Volumes
41
+
42
+ | # | Contents |
43
+ |---|---|
44
+ | 01 | Charter in detail |
45
+ | 02 | Efficiency and tiering |
46
+ | 03 | Pipeline S0–S6 (incl. S1 investigation, S4 severity and reflow), audit checklist, incident aftermath |
47
+ | 04 | Task brief template |
48
+ | 05 | Task board |
49
+ | 06 | Collaboration rules (Lead/teammate duties, communication) |
50
+ | 07 | User interaction and metrics |
51
+ | 08 | Anti-patterns and quick reference |
52
+ | 09 | Environment adaptation and change log |
53
+
54
+ ## Core mechanics
55
+
56
+ 1. **Charter: feedback-driven** — keep collecting feedback while working, then remove or weaken obstacles, adjust and improve according to it; the object includes both *the project* and *the workflow itself*; plan first, then execute.
57
+ 2. **Flow tiers** — Quick (single point, reversible, 15–30 min) / Standard (regular features and fixes, half a day) / Strict (data, payments, security, irreversible, 1–2 days). Escalate on: touching data, changing an external contract, touching shared files, failing twice in the same place, adding a dependency, unexplained real-device failure.
58
+ 3. **Three kinds of feedback** — negative: find the root cause and remove it; positive: distil and amplify (into templates, checklist items, tests); direction: weigh value against cost.
59
+ 4. **Six-stage pipeline** — S0 goal and acceptance → S1 investigation and planning → S2 review (four questions) → S3 implementation → S4 audit (systematic + root cause, issues graded high/medium/low) → S5 CI gate and real-device verification (parallel, AND-joined) → S6 retro and codification.
60
+ 5. **Experience must land** — route by frequency into core clauses / volumes / experience library; every entry must name *where it was codified*.
61
+
62
+ Details live in [`AGENTS.md`](AGENTS.md) and its §8 index.
63
+
64
+ ## Architecture
65
+
66
+ ![Architecture](docs/assets/architecture.svg)
67
+
68
+ One picture: the **self-feedback evolution loop** (top, the highest principle) → **three-layer structure and artefacts** (middle) → **six-stage pipeline S0–S6** (bottom) → **issue reflow and failure loops** (dashed).
69
+
70
+ ## When it fits, when it does not
71
+
72
+ **Fits**: multi-file changes, parallel teammates, data or release risk, work handed across rounds.
73
+
74
+ **Does not fit**: one-off scripts and exploratory spikes — use the Quick tier and do not add process for its own sake.
75
+
76
+ ## Install
77
+
78
+ ### Option A: DSH plugin (command + panel, writes nothing)
79
+
80
+ ```bash
81
+ dsh plugin --profile web add dsh-agent-team-playbook
82
+ ```
83
+
84
+ Adds an `/atp` command; on web and desktop there is also a panel.
85
+
86
+ | Command | Purpose |
87
+ |---|---|
88
+ | `/atp` | Protocol summary (tiers, four review questions, three retro questions) plus install options |
89
+ | `/atp core` | Print the full core text and follow it for the current turn |
90
+ | `/atp paths` | Absolute paths of the volumes, to read on demand |
91
+ | `/atp install` | Install the playbook into the current workspace, atomically |
92
+ | `/atp install force` | Overwrite same-name content and install |
93
+ | `/atp apply 1=overwrite 2=backup 3=rename:x` | Decide conflicts item by item |
94
+ | `/atp help` | Usage |
95
+
96
+ **Panel** (web / desktop): a “Playbook” chip on the home row (with a count when conflicts exist) and Settings → Playbook.
97
+
98
+ Existing files are never overwritten silently: you get a conflict list and choose **overwrite / back up / rename** per item, and the run is applied after you finish.
99
+ (The dsh-go native mobile UI does not load browser halves; use the command there.)
100
+
101
+ ### Option B: install as resident context (writes files, the real payoff)
102
+
103
+ ```bash
104
+ npx dsh-agent-team-playbook init --dry-run # see the plan first
105
+ npx dsh-agent-team-playbook init # install into the current project
106
+ npx dsh-agent-team-playbook init --global # user-global: managed block (pointer)
107
+ npx dsh-agent-team-playbook init --global --inline-core # user-global: inlined core (truly resident)
108
+ ```
109
+
110
+ | Mode | Effect | Resident cost |
111
+ |---|---|---|
112
+ | `init` (project) | Writes `<project>/AGENTS.md` + `docs/`, injected by DSH every turn | ~5.3k chars/turn |
113
+ | `init --global` | Copies to `$DSH_HOME/agent-team-playbook/`, maintains a managed block in `$DSH_HOME/AGENTS.md` (pointer) | ~300 chars/turn |
114
+ | `init --global --inline-core` | Same, but the block inlines the core text | ~6.3k chars/turn |
115
+
116
+ When a same-name file exists you are asked **item by item** (overwrite / rename / skip / all overwrite / abort); nothing is overwritten silently, and non-interactive contexts abort by default. Choosing rename rewrites references inside the documents, so no links break.
117
+
118
+ ### Which option to use
119
+
120
+ | You want | Use |
121
+ |---|---|
122
+ | Look up the protocol now and then, without paying context | Option A (zero context cost) |
123
+ | The agent to **follow it every turn** | Option B (truly resident) |
124
+ | It applied globally, not per project | `init --global` |
125
+
126
+ ## Quick start
127
+
128
+ 1. Install (Option A or B)
129
+ 2. Adjust environment-specific parts per `docs/workflow/rules/09-环境适配与变更记录.md`
130
+ 3. Start the first task on the Standard tier; after one round, trim or tighten based on the retro
131
+ 4. Read volumes on demand through the `AGENTS.md` §8 index — full reading is not required
132
+
133
+ ## More
134
+
135
+ | | |
136
+ |---|---|
137
+ | Version history | [CHANGELOG](CHANGELOG.md) · [Releases](https://github.com/ChongCyrus/agent-team-playbook/releases) |
138
+ | Development | [CONTRIBUTING](CONTRIBUTING.md) (self-check, compatibility range, release flow) |
139
+ | Full protocol | [`AGENTS.md`](AGENTS.md) · [`docs/workflow/`](docs/workflow/) |
140
+
141
+ ## License
142
+
143
+ MIT, see [LICENSE](LICENSE).
package/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Agent Team Playbook · 多智能体协作工作流
2
2
 
3
+ 中文 | [English](README.en.md)
4
+
5
+ > [![npm version](https://img.shields.io/npm/v/dsh-agent-team-playbook)](https://www.npmjs.com/package/dsh-agent-team-playbook)
6
+ > [![license](https://img.shields.io/npm/l/dsh-agent-team-playbook)](LICENSE)
7
+ > ![DSH](https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1%20%3C0.3.0-2f6f4f)
8
+
3
9
  给「Lead + 多名 AI 队友」用的一整套协作规程:怎么定档、怎么分工、怎么写任务书、怎么审计、怎么验收、怎么复盘。
4
10
 
5
11
  不是提示词合集,而是**可执行的流程与门禁**——每条规则都对应一个可判真假的动作和落点文件。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-agent-team-playbook",
3
- "version": "1.33.2",
3
+ "version": "1.33.3",
4
4
  "description": "DeepSeek Harness plugin that brings an executable multi-agent collaboration workflow (charter, triage tiers, six-stage pipeline, audit gates, experience library): a read-only /agent-team command plus a collision-aware installer for the documents.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,6 +23,7 @@
23
23
  "assets",
24
24
  "playbook",
25
25
  "README.md",
26
+ "README.en.md",
26
27
  "CONTRIBUTING.md",
27
28
  "CHANGELOG.md",
28
29
  "LICENSE"