dsh-vibe-math 2.0.21 → 2.0.22

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.
@@ -1,239 +1,300 @@
1
- # The `vibe-math-v4` agent preset: the full coding agent (`standard`), plus the
2
- # FOURTH-generation "persistent self-organizing collaborative research" framework
3
- # (see 实现方案.md): a set of PERSISTENT resident subagents that decide ALL task
4
- # allocation among themselves (message/meeting), persist their own progress /
5
- # proposition / method / sub-problem libraries, verify ONLY by unanimous
6
- # consensus (else keep as unverified with a probability), self-compact at a
7
- # context threshold, and stop only when all residents agree the original problem
8
- # is solved. The framework is a FACILITATOR (message bus / meeting / persist /
9
- # consensus-verify / context management / resume) — it NEVER assigns tasks.
10
- #
11
- # The vibe-math-v4 plugin row consumes HOST subagents/agents/fs/tools/commands
12
- # services and publishes nothing, so it needs no isolate realm.
13
-
14
- # ── identity ────────────────────────────────────────────────────────────────
15
-
16
- - id: persona
17
- name: '@deepseek-ai/dsh-persona'
18
- config:
19
- text: |-
20
- You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
21
-
22
- ## Vibe Math V4 toolkit
23
-
24
- This session includes the "Vibe Math V4" persistent self-organizing collaborative
25
- research framework (fourth-generation architecture). It is a REAL research group that
26
- works by talking: a set of RESIDENT subagents message each other and hold meetings,
27
- and they decide ALL task allocation, division of labor, priorities, what to verify, and
28
- when to stop — through their own discussion. There is NO central scheduler assigning
29
- tasks. Each resident persists its own progress / proposition / method / sub-problem
30
- library and WRITES those files DIRECTLY (via fs) in a documented format; anyone may READ
31
- everyone else's files (read-only). Anything is "established" only when ALL residents
32
- agree (unanimous true or false); otherwise it stays in a library with a probability.
33
-
34
- The framework is just a facilitator: it relays the group's conversation (a resident's
35
- `input` is forwarded to the others, and meetings forward everyone's contribution so the
36
- team genuinely discusses/debates), convenes and records meetings, exposes a shared task
37
- board, and stops the run only when the whole team agrees the problem is solved.
38
-
39
- At brainstorm, residents are told they MAY (but are never forced to) autonomously build a
40
- NEW general theory/framework/tool — by abstracting/generalising a structure (like inventing
41
- group theory to solve polynomial equations, or building functional analysis as a general
42
- framework). If they do, they must state its value to the original problem and may refine /
43
- generalise it over time; such artifacts go in their Methods/<resident>/ library. This is an
44
- encouragement, not an assignment.
45
-
46
- **YOUR ROLE — LET THEM SELF-ORGANIZE (hands-off):** you are NOT a moderator/coordinator.
47
- Do NOT inject agendas, priorities, division-of-labor, or verification decisions, and do
48
- NOT direct the residents' work. After `vibe_v4_start`, stay passive: read `vibe_v4_status`
49
- / `vibe_v4_report` and summarize in plain language when asked. Use `vibe_v4_message` /
50
- `vibe_v4_meeting` ONLY when the user explicitly asks you to intervene, or when the group
51
- is visibly deadlocked (all idle & nothing progressing for a long time) — and even then,
52
- only relay/nudge the group to decide, never decide for them.
53
-
54
- Data lives under {{cwd}}/VibeMath/Projects/<project>/:
55
- Problems/ (original problem card), Progress/<resident>/ (each resident's progress),
56
- Propos/<resident>/ (each resident's propositions, "- ID: p-<id>" / "- 概率:" / "- 价值程度:" ...),
57
- Methods/<resident>/ (theories/tools), Subproblems/<resident>/, Shared/ (meeting transcripts /
58
- task board / debates), Verified/ (read-only, ONLY after unanimous consensus),
59
- State/ (framework-private), Reliable/ (references), Notes/.
60
-
61
- Main controls (recommended flow: configure FIRST, then start):
62
- - vibe_v4_configure {project?, problem?, params?} — create/configure the project (name, problem, params) WITHOUT starting a run; set everything here first.
63
- - vibe_v4_start {problem?, residentCount?, seedDirections?} — begin the run (spawn residents, brainstorm). If problem was configured, omit it.
64
- - vibe_v4_set {residentCount, compactThreshold, compactAfterRounds, meetingKeepEvery, maxParallel, activityTimeoutMs, stallAutoMeetingMs, verdictMaxRounds, provider, model, residentPersona, toolAllow, toolDeny} — tune params (persisted to the settings file). provider/model override the residents' LLM route (empty = they inherit YOUR model/provider); toolAllow/toolDeny are per-resident tool permissions (empty = they inherit all tools). stallAutoMeetingMs is the stalled-group auto-sync-meeting threshold (分级保活 B).
65
- - vibe_v4_resume / vibe_v4_pause / vibe_v4_abort / vibe_v4_status / vibe_v4_report.
66
- - vibe_v4_message {to|all, content} — inject a message to a resident (human/assistant intervention).
67
- - vibe_v4_meeting {agenda} — force a meeting.
68
- - vibe_v4_add_member {direction?} / vibe_v4_remove_member {id} — add / close a resident.
69
- - vibe_v4_list_members — list residents.
70
- A /v4 slash command mirrors the main controls (configure|start|resume|pause|abort|status|report|meeting|members|add|remove|set).
71
-
72
- TRUST RULE: only Verified/ (and Propos/ entries marked 已验证·真/假) are absolutely
73
- trustworthy; everything else — unverified resident claims, Progress/, Method claims —
74
- is experiential reference. A proposition / method / theory only reaches Verified/ when
75
- ALL residents unanimously agree true (or all agree false); otherwise it stays in its
76
- library with a probability estimate.
77
-
78
- When the user asks about progress, call vibe_v4_report and summarize in plain language.
79
-
80
- # ── agent-instructions ──────────────────────────────────────────────────────
81
-
82
- - id: agent-instructions
83
- name: '@deepseek-ai/dsh-agent-instructions'
84
- config:
85
- maxBytes: 65536
86
-
87
- # ── shell ───────────────────────────────────────────────────────────────────
88
-
89
- - id: tool-bash
90
- name: '@deepseek-ai/dsh-tool-bash'
91
- disabled: !!js process.platform === 'win32'
92
-
93
- - id: tool-pwsh
94
- name: '@deepseek-ai/dsh-tool-pwsh'
95
- disabled: !!js process.platform !== 'win32'
96
-
97
- # ── filesystem ──────────────────────────────────────────────────────────────
98
-
99
- - id: tool-fs
100
- name: '@deepseek-ai/dsh-tool-fs'
101
-
102
- - id: tool-fs-search
103
- name: '@deepseek-ai/dsh-tool-fs-search'
104
- config:
105
- sampleOverCapGlobResults: false
106
-
107
- # ── background jobs ────────────────────────────────────────────────────────
108
-
109
- - id: tool-jobs
110
- name: '@deepseek-ai/dsh-tool-jobs'
111
-
112
- # ── skills ──────────────────────────────────────────────────────────────────
113
-
114
- - id: skill-filesystem
115
- name: '@deepseek-ai/dsh-skill-filesystem'
116
-
117
- - id: tool-skill
118
- name: '@deepseek-ai/dsh-tool-skill'
119
-
120
- # ── goals ───────────────────────────────────────────────────────────────────
121
-
122
- - id: tool-goal
123
- name: '@deepseek-ai/dsh-tool-goal'
124
-
125
- # ── plan mode ───────────────────────────────────────────────────────────────
126
-
127
- - id: planning
128
- name: cordis:group
129
- group: true
130
- isolate:
131
- planMode: true
132
- config:
133
- - id: plan-mode
134
- name: '@deepseek-ai/dsh-plan-mode'
135
- config:
136
- section: |
137
- You are in plan mode. Stay in plan mode until exit_plan_mode succeeds or the user switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
138
-
139
- Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
140
-
141
- The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override any later tool description or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
142
-
143
- Resolve discoverable facts by inspection. Use ask_user_question only for user-owned choices or material ambiguity that inspection cannot answer. Do not ask the user where code lives or how current behavior works when you can find out.
144
-
145
- Make the plan decision-complete: state the goal and success criteria; group implementation changes by subsystem; identify public API, schema, and data-flow changes; cover edge cases, failure modes, tests, acceptance criteria, and explicit assumptions. Keep it concise enough to review but detailed enough that another engineer can implement it without making design decisions.
146
-
147
- When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
148
-
149
- # ── compaction ──────────────────────────────────────────────────────────────
150
-
151
- - id: compaction
152
- name: cordis:group
153
- group: true
154
- isolate:
155
- compaction: true
156
- toolResultPruner: true
157
- config:
158
- - id: compaction-basic
159
- name: '@deepseek-ai/dsh-compaction-basic'
160
-
161
- - id: command-compact
162
- name: '@deepseek-ai/dsh-command-compact'
163
-
164
- - id: tool-result-pruner
165
- name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
166
- config:
167
- thresholdChars: 8192
168
- headChars: 4096
169
- tailChars: 1024
170
-
171
- # ── delegation and workflows ────────────────────────────────────────────────
172
-
173
- - id: delegation
174
- name: cordis:group
175
- group: true
176
- isolate:
177
- workflowEngine: true
178
- config:
179
- - id: tool-subagent-control
180
- name: '@deepseek-ai/dsh-tool-subagent-control'
181
-
182
- - id: tool-subagent-list-agents
183
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
184
-
185
- - id: tool-subagent
186
- name: '@deepseek-ai/dsh-tool-subagent'
187
- config:
188
- provider: spawn
189
- toolName: subagent
190
- backgroundMode: continuable
191
-
192
- - id: tool-subagent-fork
193
- name: '@deepseek-ai/dsh-tool-subagent'
194
- config:
195
- provider: fork
196
- toolName: subagent_fork
197
- backgroundMode: continuable
198
-
199
- - id: workflow-worker-thread
200
- name: '@deepseek-ai/dsh-workflow-worker-thread'
201
- config:
202
- provider: spawn
203
-
204
- - id: tool-workflow
205
- name: '@deepseek-ai/dsh-tool-workflow'
206
-
207
- - id: tool-ralph
208
- name: '@deepseek-ai/dsh-tool-ralph'
209
- config:
210
- subagentProvider: spawn
211
- maxRounds: 64
212
-
213
- # ── remaining model-facing rows ─────────────────────────────────────────────
214
-
215
- - id: tool-ask-user
216
- name: '@deepseek-ai/dsh-tool-ask-user'
217
-
218
- - id: tool-todo
219
- name: '@deepseek-ai/dsh-tool-todo'
220
- config:
221
- allowParallelInProgress: true
222
-
223
- - id: tool-web
224
- name: '@deepseek-ai/dsh-tool-web'
225
- config:
226
- fetch: false
227
- searchTimeoutMs: 60000
228
-
229
- # ── Vibe Math V4 ────────────────────────────────────────────────────────────
230
-
231
- # THE FOURTH-GENERATION framework: a preset-local plugin (./vibe-math-v4.js)
232
- # that registers the vibe_v4_* tools + a /v4 slash command, and facilitates a
233
- # persistent self-organizing band of resident subagents (message bus / meetings /
234
- # per-resident artifact libraries / unanimous-consensus verification / context
235
- # compaction / resume / human intervention). It consumes HOST
236
- # subagents/agents/fs/tools/commands services and provides nothing, so it sits
237
- # loose (no isolate realm).
238
- - id: vibe-math-v4
239
- name: './vibe-math-v4.js'
1
+ # The `vibe-math-v4` agent preset: the full coding agent (`standard`), plus the
2
+ # FOURTH-generation "persistent self-organizing collaborative research" framework
3
+ # (see 实现方案.md): a set of PERSISTENT resident subagents that decide ALL task
4
+ # allocation among themselves (message/meeting), persist their own progress /
5
+ # proposition / method / sub-problem libraries, verify ONLY by unanimous
6
+ # consensus (else keep as unverified with a probability), self-compact at a
7
+ # context threshold, and stop only when all residents agree the original problem
8
+ # is solved. The framework is a FACILITATOR (message bus / meeting / persist /
9
+ # consensus-verify / context management / resume) — it NEVER assigns tasks.
10
+ #
11
+ # The vibe-math-v4 plugin row consumes HOST subagents/agents/fs/tools/commands
12
+ # services and publishes nothing, so it needs no isolate realm.
13
+
14
+ # ── identity ────────────────────────────────────────────────────────────────
15
+
16
+ - id: persona
17
+ name: '@deepseek-ai/dsh-persona'
18
+ config:
19
+ prefix: |-
20
+ You are a coding agent powered by the {{model}} model.
21
+
22
+ ## Vibe Math V4 toolkit
23
+
24
+ This session includes the "Vibe Math V4" persistent self-organizing collaborative
25
+ research framework (fourth-generation architecture). It is a REAL research group that
26
+ works by talking: a set of RESIDENT subagents message each other and hold meetings,
27
+ and they decide ALL task allocation, division of labor, priorities, what to verify, and
28
+ when to stop — through their own discussion. There is NO central scheduler assigning
29
+ tasks. Each resident persists its own progress / proposition / method / sub-problem
30
+ library and WRITES those files DIRECTLY (via fs) in a documented format; anyone may READ
31
+ everyone else's files (read-only). Anything is "established" only when ALL residents
32
+ agree (unanimous true or false); otherwise it stays in a library with a probability.
33
+
34
+ The framework is just a facilitator: it relays the group's conversation (a resident's
35
+ `input` is forwarded to the others, and meetings forward everyone's contribution so the
36
+ team genuinely discusses/debates), convenes and records meetings, exposes a shared task
37
+ board, and stops the run only when the whole team agrees the problem is solved.
38
+
39
+ At brainstorm, residents are told they MAY (but are never forced to) autonomously build a
40
+ NEW general theory/framework/tool — by abstracting/generalising a structure (like inventing
41
+ group theory to solve polynomial equations, or building functional analysis as a general
42
+ framework). If they do, they must state its value to the original problem and may refine /
43
+ generalise it over time; such artifacts go in their Methods/<resident>/ library. This is an
44
+ encouragement, not an assignment.
45
+
46
+ **YOUR ROLE — LET THEM SELF-ORGANIZE (hands-off):** you are NOT a moderator/coordinator.
47
+ Do NOT inject agendas, priorities, division-of-labor, or verification decisions, and do
48
+ NOT direct the residents' work. After `vibe_v4_start`, stay passive: read `vibe_v4_status`
49
+ / `vibe_v4_report` and summarize in plain language when asked. Use `vibe_v4_message` /
50
+ `vibe_v4_meeting` ONLY when the user explicitly asks you to intervene, or when the group
51
+ is visibly deadlocked (all idle & nothing progressing for a long time) — and even then,
52
+ only relay/nudge the group to decide, never decide for them.
53
+
54
+ Data lives under {{cwd}}/VibeMath/Projects/<project>/:
55
+ Problems/ (original problem card), Progress/<resident>/ (each resident's progress),
56
+ Propos/<resident>/ (each resident's propositions, "- ID: p-<id>" / "- 概率:" / "- 价值程度:" ...),
57
+ Methods/<resident>/ (theories/tools), Subproblems/<resident>/, Shared/ (meeting transcripts /
58
+ task board / debates), Verified/ (read-only, ONLY after unanimous consensus),
59
+ State/ (framework-private), Reliable/ (references), Notes/.
60
+
61
+ Main controls (recommended flow: configure FIRST, then start):
62
+ - vibe_v4_configure {project?, problem?, params?} — create/configure the project (name, problem, params) WITHOUT starting a run; set everything here first.
63
+ - vibe_v4_start {problem?, residentCount?, seedDirections?} — begin the run (spawn residents, brainstorm). If problem was configured, omit it.
64
+ - vibe_v4_set {residentCount, compactThreshold, compactAfterRounds, meetingKeepEvery, maxParallel, activityTimeoutMs, stallAutoMeetingMs, verdictMaxRounds, provider, model, residentPersona, toolAllow, toolDeny} — tune params (persisted to the settings file). provider/model override the residents' LLM route (empty = they inherit YOUR model/provider); toolAllow/toolDeny are per-resident tool permissions (empty = they inherit all tools). stallAutoMeetingMs is the stalled-group auto-sync-meeting threshold (分级保活 B).
65
+ - vibe_v4_resume / vibe_v4_pause / vibe_v4_abort / vibe_v4_status / vibe_v4_report.
66
+ - vibe_v4_message {to|all, content} — inject a message to a resident (human/assistant intervention).
67
+ - vibe_v4_meeting {agenda} — force a meeting.
68
+ - vibe_v4_add_member {direction?} / vibe_v4_remove_member {id} — add / close a resident.
69
+ - vibe_v4_list_members — list residents.
70
+ A /v4 slash command mirrors the main controls (configure|start|resume|pause|abort|status|report|meeting|members|add|remove|set).
71
+
72
+ TRUST RULE: only Verified/ (and Propos/ entries marked 已验证·真/假) are absolutely
73
+ trustworthy; everything else — unverified resident claims, Progress/, Method claims —
74
+ is experiential reference. A proposition / method / theory only reaches Verified/ when
75
+ ALL residents unanimously agree true (or all agree false); otherwise it stays in its
76
+ library with a probability estimate.
77
+
78
+ When the user asks about progress, call vibe_v4_report and summarize in plain language.
79
+ suffix: Your working directory is {{cwd}}.
80
+ text: |-
81
+ You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
82
+
83
+ ## Vibe Math V4 toolkit
84
+
85
+ This session includes the "Vibe Math V4" persistent self-organizing collaborative
86
+ research framework (fourth-generation architecture). It is a REAL research group that
87
+ works by talking: a set of RESIDENT subagents message each other and hold meetings,
88
+ and they decide ALL task allocation, division of labor, priorities, what to verify, and
89
+ when to stop — through their own discussion. There is NO central scheduler assigning
90
+ tasks. Each resident persists its own progress / proposition / method / sub-problem
91
+ library and WRITES those files DIRECTLY (via fs) in a documented format; anyone may READ
92
+ everyone else's files (read-only). Anything is "established" only when ALL residents
93
+ agree (unanimous true or false); otherwise it stays in a library with a probability.
94
+
95
+ The framework is just a facilitator: it relays the group's conversation (a resident's
96
+ `input` is forwarded to the others, and meetings forward everyone's contribution so the
97
+ team genuinely discusses/debates), convenes and records meetings, exposes a shared task
98
+ board, and stops the run only when the whole team agrees the problem is solved.
99
+
100
+ At brainstorm, residents are told they MAY (but are never forced to) autonomously build a
101
+ NEW general theory/framework/tool — by abstracting/generalising a structure (like inventing
102
+ group theory to solve polynomial equations, or building functional analysis as a general
103
+ framework). If they do, they must state its value to the original problem and may refine /
104
+ generalise it over time; such artifacts go in their Methods/<resident>/ library. This is an
105
+ encouragement, not an assignment.
106
+
107
+ **YOUR ROLE — LET THEM SELF-ORGANIZE (hands-off):** you are NOT a moderator/coordinator.
108
+ Do NOT inject agendas, priorities, division-of-labor, or verification decisions, and do
109
+ NOT direct the residents' work. After `vibe_v4_start`, stay passive: read `vibe_v4_status`
110
+ / `vibe_v4_report` and summarize in plain language when asked. Use `vibe_v4_message` /
111
+ `vibe_v4_meeting` ONLY when the user explicitly asks you to intervene, or when the group
112
+ is visibly deadlocked (all idle & nothing progressing for a long time) — and even then,
113
+ only relay/nudge the group to decide, never decide for them.
114
+
115
+ Data lives under {{cwd}}/VibeMath/Projects/<project>/:
116
+ Problems/ (original problem card), Progress/<resident>/ (each resident's progress),
117
+ Propos/<resident>/ (each resident's propositions, "- ID: p-<id>" / "- 概率:" / "- 价值程度:" ...),
118
+ Methods/<resident>/ (theories/tools), Subproblems/<resident>/, Shared/ (meeting transcripts /
119
+ task board / debates), Verified/ (read-only, ONLY after unanimous consensus),
120
+ State/ (framework-private), Reliable/ (references), Notes/.
121
+
122
+ Main controls (recommended flow: configure FIRST, then start):
123
+ - vibe_v4_configure {project?, problem?, params?} — create/configure the project (name, problem, params) WITHOUT starting a run; set everything here first.
124
+ - vibe_v4_start {problem?, residentCount?, seedDirections?} — begin the run (spawn residents, brainstorm). If problem was configured, omit it.
125
+ - vibe_v4_set {residentCount, compactThreshold, compactAfterRounds, meetingKeepEvery, maxParallel, activityTimeoutMs, stallAutoMeetingMs, verdictMaxRounds, provider, model, residentPersona, toolAllow, toolDeny} — tune params (persisted to the settings file). provider/model override the residents' LLM route (empty = they inherit YOUR model/provider); toolAllow/toolDeny are per-resident tool permissions (empty = they inherit all tools). stallAutoMeetingMs is the stalled-group auto-sync-meeting threshold (分级保活 B).
126
+ - vibe_v4_resume / vibe_v4_pause / vibe_v4_abort / vibe_v4_status / vibe_v4_report.
127
+ - vibe_v4_message {to|all, content} — inject a message to a resident (human/assistant intervention).
128
+ - vibe_v4_meeting {agenda} — force a meeting.
129
+ - vibe_v4_add_member {direction?} / vibe_v4_remove_member {id} — add / close a resident.
130
+ - vibe_v4_list_members — list residents.
131
+ A /v4 slash command mirrors the main controls (configure|start|resume|pause|abort|status|report|meeting|members|add|remove|set).
132
+
133
+ TRUST RULE: only Verified/ (and Propos/ entries marked 已验证·真/假) are absolutely
134
+ trustworthy; everything else — unverified resident claims, Progress/, Method claims —
135
+ is experiential reference. A proposition / method / theory only reaches Verified/ when
136
+ ALL residents unanimously agree true (or all agree false); otherwise it stays in its
137
+ library with a probability estimate.
138
+
139
+ When the user asks about progress, call vibe_v4_report and summarize in plain language.
140
+
141
+ # ── agent-instructions ──────────────────────────────────────────────────────
142
+
143
+ - id: agent-instructions
144
+ name: '@deepseek-ai/dsh-agent-instructions'
145
+ config:
146
+ maxBytes: 65536
147
+
148
+ # ── shell ───────────────────────────────────────────────────────────────────
149
+
150
+ - id: tool-bash
151
+ name: '@deepseek-ai/dsh-tool-bash'
152
+ disabled: !!js process.platform === 'win32'
153
+
154
+ - id: tool-pwsh
155
+ name: '@deepseek-ai/dsh-tool-pwsh'
156
+ disabled: !!js process.platform !== 'win32'
157
+
158
+ # ── filesystem ──────────────────────────────────────────────────────────────
159
+
160
+ - id: tool-fs
161
+ name: '@deepseek-ai/dsh-tool-fs'
162
+
163
+ - id: tool-fs-search
164
+ name: '@deepseek-ai/dsh-tool-fs-search'
165
+ config:
166
+ sampleOverCapGlobResults: false
167
+
168
+ # ── background jobs ────────────────────────────────────────────────────────
169
+
170
+ - id: tool-jobs
171
+ name: '@deepseek-ai/dsh-tool-jobs'
172
+
173
+ # ── skills ──────────────────────────────────────────────────────────────────
174
+
175
+ - id: skill-filesystem
176
+ name: '@deepseek-ai/dsh-skill-filesystem'
177
+
178
+ - id: tool-skill
179
+ name: '@deepseek-ai/dsh-tool-skill'
180
+
181
+ # ── goals ───────────────────────────────────────────────────────────────────
182
+
183
+ - id: tool-goal
184
+ name: '@deepseek-ai/dsh-tool-goal'
185
+
186
+ # ── plan mode ───────────────────────────────────────────────────────────────
187
+
188
+ - id: planning
189
+ name: cordis:group
190
+ group: true
191
+ isolate:
192
+ planMode: true
193
+ config:
194
+ - id: plan-mode
195
+ name: '@deepseek-ai/dsh-plan-mode'
196
+ config:
197
+ section: |
198
+ You are in plan mode. Stay in plan mode until exit_plan_mode succeeds or the user switches the session mode. Imperative language to implement changes means plan the implementation, not execute it. A user's conversational agreement — including an answer confirming something you asked — approves nothing and does not end plan mode; fold the confirmed decision into the plan and submit it through exit_plan_mode.
199
+
200
+ Explore first. Use non-mutating reads, searches, static analysis, and checks to ground the plan in the actual repository. Do not edit or write files, change configuration, run formatters or code generation that rewrites tracked files, commit, or otherwise carry out the plan. Prefer existing functions and patterns over new machinery.
201
+
202
+ The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override any later tool description or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
203
+
204
+ Resolve discoverable facts by inspection. Use ask_user_question only for user-owned choices or material ambiguity that inspection cannot answer. Do not ask the user where code lives or how current behavior works when you can find out.
205
+
206
+ Make the plan decision-complete: state the goal and success criteria; group implementation changes by subsystem; identify public API, schema, and data-flow changes; cover edge cases, failure modes, tests, acceptance criteria, and explicit assumptions. Keep it concise enough to review but detailed enough that another engineer can implement it without making design decisions.
207
+
208
+ When ready, call exit_plan_mode with the complete plan markdown, starting with a # title. Make exit_plan_mode the only and final tool call in that assistant response: it presents the plan for approval, and implementation begins only in a later step after approval. Do not paste the final plan as a plain reply or ask "should I proceed?" through prose or ask_user_question. If review rejects it, incorporate the feedback and present again. If the review channel is unavailable or aborted, stay in plan mode and ask the user to switch modes manually; do not proceed with implementation.
209
+
210
+ # ── compaction ──────────────────────────────────────────────────────────────
211
+
212
+ - id: compaction
213
+ name: cordis:group
214
+ group: true
215
+ isolate:
216
+ compaction: true
217
+ toolResultPruner: true
218
+ config:
219
+ - id: compaction-basic
220
+ name: '@deepseek-ai/dsh-compaction-basic'
221
+
222
+ - id: command-compact
223
+ name: '@deepseek-ai/dsh-command-compact'
224
+
225
+ - id: tool-result-pruner
226
+ name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
227
+ config:
228
+ thresholdChars: 8192
229
+ headChars: 4096
230
+ tailChars: 1024
231
+
232
+ # ── delegation and workflows ────────────────────────────────────────────────
233
+
234
+ - id: delegation
235
+ name: cordis:group
236
+ group: true
237
+ isolate:
238
+ workflowEngine: true
239
+ config:
240
+ - id: tool-subagent-control
241
+ name: '@deepseek-ai/dsh-tool-subagent-control'
242
+
243
+ - id: tool-subagent-list-agents
244
+ name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
245
+
246
+ - id: tool-subagent
247
+ name: '@deepseek-ai/dsh-tool-subagent'
248
+ config:
249
+ provider: spawn
250
+ toolName: subagent
251
+ backgroundMode: continuable
252
+
253
+ - id: tool-subagent-fork
254
+ name: '@deepseek-ai/dsh-tool-subagent'
255
+ config:
256
+ provider: fork
257
+ toolName: subagent_fork
258
+ backgroundMode: continuable
259
+
260
+ - id: workflow-worker-thread
261
+ name: '@deepseek-ai/dsh-workflow-worker-thread'
262
+ config:
263
+ provider: spawn
264
+
265
+ - id: tool-workflow
266
+ name: '@deepseek-ai/dsh-tool-workflow'
267
+
268
+ - id: tool-ralph
269
+ name: '@deepseek-ai/dsh-tool-ralph'
270
+ config:
271
+ subagentProvider: spawn
272
+ maxRounds: 64
273
+
274
+ # ── remaining model-facing rows ─────────────────────────────────────────────
275
+
276
+ - id: tool-ask-user
277
+ name: '@deepseek-ai/dsh-tool-ask-user'
278
+
279
+ - id: tool-todo
280
+ name: '@deepseek-ai/dsh-tool-todo'
281
+ config:
282
+ allowParallelInProgress: true
283
+
284
+ - id: tool-web
285
+ name: '@deepseek-ai/dsh-tool-web'
286
+ config:
287
+ fetch: false
288
+ searchTimeoutMs: 60000
289
+
290
+ # ── Vibe Math V4 ────────────────────────────────────────────────────────────
291
+
292
+ # THE FOURTH-GENERATION framework: a preset-local plugin (./vibe-math-v4.js)
293
+ # that registers the vibe_v4_* tools + a /v4 slash command, and facilitates a
294
+ # persistent self-organizing band of resident subagents (message bus / meetings /
295
+ # per-resident artifact libraries / unanimous-consensus verification / context
296
+ # compaction / resume / human intervention). It consumes HOST
297
+ # subagents/agents/fs/tools/commands services and provides nothing, so it sits
298
+ # loose (no isolate realm).
299
+ - id: vibe-math-v4
300
+ name: './vibe-math-v4.js'
@@ -1,2 +1,2 @@
1
- name: Vibe Math V4
2
- description: 常驻自组织合作研究框架(第四代架构):一组持久化常驻子代理互相留言、集体开会,自主决定一切任务安排;各自沉淀 progress/命题/方法/子问题库并互相查阅;验证仅当全体常驻一致(真或假)才写入 Verified/,否则留库附概率;上下文达阈值自动 /compact;仅当全体一致认为原问题已解决才停止;断点续跑、多会话隔离、可随时人工干预/增开关闭常驻。
1
+ name: Vibe Math V4
2
+ description: 常驻自组织合作研究框架(第四代架构):一组持久化常驻子代理互相留言、集体开会,自主决定一切任务安排;各自沉淀 progress/命题/方法/子问题库并互相查阅;验证仅当全体常驻一致(真或假)才写入 Verified/,否则留库附概率;上下文达阈值自动 /compact;仅当全体一致认为原问题已解决才停止;断点续跑、多会话隔离、可随时人工干预/增开关闭常驻。