dsh-vibe-math 1.0.2 → 1.2.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/README.md +156 -52
- package/installer.js +26 -9
- package/package.json +9 -5
- package/vibe-math-v3/agent.cordis.yml +226 -0
- package/vibe-math-v3/preset.yml +2 -0
- package/vibe-math-v3/vibe-math-v3.js +2480 -0
- package/vibe-math-v3//345/256/236/347/216/260/346/226/271/346/241/210.md +540 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# The `vibe-math-v3` agent preset: the full coding agent (`standard`), plus the
|
|
2
|
+
# THIRD-generation multi-agent mathematical problem-solving & verification
|
|
3
|
+
# framework (see 实现方案.md): paper-style Markdown knowledge base
|
|
4
|
+
# (Problems/ Progress/ Propos/ Methods/ Verified/), planner-agent scheduling
|
|
5
|
+
# (one planner call decides the next N actions), and a universal theory/method
|
|
6
|
+
# invention library (Method Keeper distills reusable theories/tools/methods).
|
|
7
|
+
#
|
|
8
|
+
# The vibe-math-v3 plugin row consumes the HOST subagents/agents/fs/tools/commands
|
|
9
|
+
# services and publishes nothing, so it needs no isolate realm.
|
|
10
|
+
|
|
11
|
+
# ── identity ────────────────────────────────────────────────────────────────
|
|
12
|
+
|
|
13
|
+
- id: persona
|
|
14
|
+
name: '@deepseek-ai/dsh-persona'
|
|
15
|
+
config:
|
|
16
|
+
text: |-
|
|
17
|
+
You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
|
|
18
|
+
|
|
19
|
+
## Vibe Math V3 toolkit
|
|
20
|
+
|
|
21
|
+
This session includes the "Vibe Math V3" multi-agent mathematical research and
|
|
22
|
+
verification framework (third-generation architecture). It is driven by a background
|
|
23
|
+
scheduler (code) + a PLANNER AGENT: the code builds a state brief and a planner agent
|
|
24
|
+
autonomously decides the next up-to-N actions (spawn solver/verifier/explorer/method-keeper,
|
|
25
|
+
interrupt, promote, wait), then the code validates and executes them. You do NOT schedule
|
|
26
|
+
manually — you only issue the control tools below and read status.
|
|
27
|
+
|
|
28
|
+
Data is a PAPER-STYLE MARKDOWN knowledge base under {{cwd}}/VibeMath/Projects/<project>/:
|
|
29
|
+
Problems/ (问题清单, one md per problem: 陈述/状态/依赖/被依赖/来源与动机/计划/解法候选),
|
|
30
|
+
Progress/ (研究日志, per-direction round narratives), Propos/ (结论/命题库, one md per
|
|
31
|
+
proposition), Methods/ (通用理论发明库: 理论体系/框架/工具/方法/思想 invented during
|
|
32
|
+
solving, distilled by the Method Keeper), Verified/ (绝对可信, scheduler-generated read-only),
|
|
33
|
+
Reliable/ (user references), Notes/, Logs/, State/ (scheduler-private).
|
|
34
|
+
TRUST RULE: only Verified/ (and Propos/ entries marked 已验证·真/假) are absolutely
|
|
35
|
+
trustworthy; everything else — unverified propositions, Progress/ journals, Method claims —
|
|
36
|
+
is experiential reference.
|
|
37
|
+
|
|
38
|
+
- vibe_math_add_problem {id, description, priority, dependencies?} — add a problem (creates Problems/<id>.md).
|
|
39
|
+
- vibe_math_add_proposition {id, 概述, 概率, 优先级, 价值/关键性, 分类} — add a proposition (Propos/<分类>/<id>.md).
|
|
40
|
+
- vibe_math_list_propositions — list the proposition knowledge base.
|
|
41
|
+
- vibe_math_start / vibe_math_resume — start / resume the scheduler (resume = continue after checkpoint/restart).
|
|
42
|
+
- vibe_math_status / vibe_math_report — read status / full progress report (report writes Progress_Logs/report.json + Logs/报告.md).
|
|
43
|
+
- vibe_math_pause / vibe_math_abort — pause / abort.
|
|
44
|
+
- vibe_math_set_mode {mode: manual|auto} — switch manual / auto (manual gates: 计划审批 / 裁决 / 方法晋升).
|
|
45
|
+
- vibe_math_set_params {...} — tune any parameter (see vibe_math_setup; V3 additions: planningHorizon,
|
|
46
|
+
plannerEnabled/plannerProvider/plannerModel/plannerPersona, planMinIntervalMs, plannerMaxFails,
|
|
47
|
+
methodKeepIntervalMs/methodKeepEvery, methodAutoPromote, indexAutoRebuild, projectLockTimeoutMs).
|
|
48
|
+
- vibe_math_plan {force?} — show queued plan / last plan, or force a planning round.
|
|
49
|
+
- vibe_math_index — rebuild State/index.json from the Markdown knowledge base.
|
|
50
|
+
- vibe_math_method_add / vibe_math_method_list — manually add / list method cards (Methods/ + global).
|
|
51
|
+
- vibe_math_lock_status — project lock occupancy.
|
|
52
|
+
- vibe_math_new_project / vibe_math_set_project / vibe_math_list_projects — per-project folders.
|
|
53
|
+
- vibe_math_list_decisions / vibe_math_decide {id, action: approve|reject|override, verdict?} — resolve manual decisions.
|
|
54
|
+
- vibe_math_list_agents / vibe_math_message_agent / vibe_math_interrupt_agent — inspect / steer / interrupt subagents.
|
|
55
|
+
|
|
56
|
+
A /vibe slash command mirrors the main controls (/vibe start|resume|pause|abort|status|report|mode
|
|
57
|
+
<auto|manual>|setup|save|add <id> <desc>|add-proposition <id> <概述>|list-propositions|methods|index|plan|lock|...).
|
|
58
|
+
Data survives restarts via vibe_math_resume.
|
|
59
|
+
|
|
60
|
+
Key rules when reporting: a problem is "solved" when one of its 解法候选 entries reaches 概率 = 1
|
|
61
|
+
(the scheduler writes Verified/问题/<id>.md); a proposition reaches 已验证·真/假 when a 证明/证伪
|
|
62
|
+
entry reaches 概率 = 1 (Verified/命题/<id>.md); Propos propositions with 价值/关键性 ≥
|
|
63
|
+
promoteValueThreshold auto-promote into Problems/ as "判断下述命题是否成立:<命题>" (verification
|
|
64
|
+
results sync back to the source proposition); a solver-reported sub-question q_sub registers THREE
|
|
65
|
+
objects (q_sub problem + judge problem + p-tmp temporary-assumption proposition) with full 来源与动机.
|
|
66
|
+
When the user asks about progress, call vibe_math_report and summarize in plain language.
|
|
67
|
+
|
|
68
|
+
# ── agent-instructions ──────────────────────────────────────────────────────
|
|
69
|
+
|
|
70
|
+
- id: agent-instructions
|
|
71
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
72
|
+
config:
|
|
73
|
+
maxBytes: 65536
|
|
74
|
+
|
|
75
|
+
# ── shell ───────────────────────────────────────────────────────────────────
|
|
76
|
+
|
|
77
|
+
- id: tool-bash
|
|
78
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
79
|
+
disabled: !!js process.platform === 'win32'
|
|
80
|
+
|
|
81
|
+
- id: tool-pwsh
|
|
82
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
83
|
+
disabled: !!js process.platform !== 'win32'
|
|
84
|
+
|
|
85
|
+
# ── filesystem ──────────────────────────────────────────────────────────────
|
|
86
|
+
|
|
87
|
+
- id: tool-fs
|
|
88
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
89
|
+
|
|
90
|
+
- id: tool-fs-search
|
|
91
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
92
|
+
config:
|
|
93
|
+
sampleOverCapGlobResults: false
|
|
94
|
+
|
|
95
|
+
# ── background jobs ────────────────────────────────────────────────────────
|
|
96
|
+
|
|
97
|
+
- id: tool-jobs
|
|
98
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
99
|
+
|
|
100
|
+
# ── skills ──────────────────────────────────────────────────────────────────
|
|
101
|
+
|
|
102
|
+
- id: skill-filesystem
|
|
103
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
104
|
+
|
|
105
|
+
- id: tool-skill
|
|
106
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
107
|
+
|
|
108
|
+
# ── goals ───────────────────────────────────────────────────────────────────
|
|
109
|
+
|
|
110
|
+
- id: tool-goal
|
|
111
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
112
|
+
|
|
113
|
+
# ── plan mode ───────────────────────────────────────────────────────────────
|
|
114
|
+
|
|
115
|
+
- id: planning
|
|
116
|
+
name: cordis:group
|
|
117
|
+
group: true
|
|
118
|
+
isolate:
|
|
119
|
+
planMode: true
|
|
120
|
+
config:
|
|
121
|
+
- id: plan-mode
|
|
122
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
123
|
+
config:
|
|
124
|
+
section: |
|
|
125
|
+
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.
|
|
126
|
+
|
|
127
|
+
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.
|
|
128
|
+
|
|
129
|
+
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.
|
|
130
|
+
|
|
131
|
+
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.
|
|
132
|
+
|
|
133
|
+
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.
|
|
134
|
+
|
|
135
|
+
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.
|
|
136
|
+
|
|
137
|
+
# ── compaction ──────────────────────────────────────────────────────────────
|
|
138
|
+
|
|
139
|
+
- id: compaction
|
|
140
|
+
name: cordis:group
|
|
141
|
+
group: true
|
|
142
|
+
isolate:
|
|
143
|
+
compaction: true
|
|
144
|
+
toolResultPruner: true
|
|
145
|
+
config:
|
|
146
|
+
- id: compaction-basic
|
|
147
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
148
|
+
|
|
149
|
+
- id: command-compact
|
|
150
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
151
|
+
|
|
152
|
+
- id: tool-result-pruner
|
|
153
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
154
|
+
config:
|
|
155
|
+
thresholdChars: 8192
|
|
156
|
+
headChars: 4096
|
|
157
|
+
tailChars: 1024
|
|
158
|
+
|
|
159
|
+
# ── delegation and workflows ────────────────────────────────────────────────
|
|
160
|
+
|
|
161
|
+
- id: delegation
|
|
162
|
+
name: cordis:group
|
|
163
|
+
group: true
|
|
164
|
+
isolate:
|
|
165
|
+
workflowEngine: true
|
|
166
|
+
config:
|
|
167
|
+
- id: tool-subagent-control
|
|
168
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
169
|
+
|
|
170
|
+
- id: tool-subagent-list-agents
|
|
171
|
+
name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
|
|
172
|
+
|
|
173
|
+
- id: tool-subagent
|
|
174
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
175
|
+
config:
|
|
176
|
+
provider: spawn
|
|
177
|
+
toolName: subagent
|
|
178
|
+
backgroundMode: continuable
|
|
179
|
+
|
|
180
|
+
- id: tool-subagent-fork
|
|
181
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
182
|
+
config:
|
|
183
|
+
provider: fork
|
|
184
|
+
toolName: subagent_fork
|
|
185
|
+
backgroundMode: continuable
|
|
186
|
+
|
|
187
|
+
- id: workflow-worker-thread
|
|
188
|
+
name: '@deepseek-ai/dsh-workflow-worker-thread'
|
|
189
|
+
config:
|
|
190
|
+
provider: spawn
|
|
191
|
+
|
|
192
|
+
- id: tool-workflow
|
|
193
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
194
|
+
|
|
195
|
+
- id: tool-ralph
|
|
196
|
+
name: '@deepseek-ai/dsh-tool-ralph'
|
|
197
|
+
config:
|
|
198
|
+
subagentProvider: spawn
|
|
199
|
+
maxRounds: 64
|
|
200
|
+
|
|
201
|
+
# ── remaining model-facing rows ─────────────────────────────────────────────
|
|
202
|
+
|
|
203
|
+
- id: tool-ask-user
|
|
204
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
205
|
+
|
|
206
|
+
- id: tool-todo
|
|
207
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
208
|
+
config:
|
|
209
|
+
allowParallelInProgress: true
|
|
210
|
+
|
|
211
|
+
- id: tool-web
|
|
212
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
213
|
+
config:
|
|
214
|
+
fetch: false
|
|
215
|
+
searchTimeoutMs: 60000
|
|
216
|
+
|
|
217
|
+
# ── Vibe Math V3 ────────────────────────────────────────────────────────────
|
|
218
|
+
|
|
219
|
+
# The THIRD-generation framework: a preset-local plugin (./vibe-math-v3.js)
|
|
220
|
+
# that registers the vibe_math_* tools, a /vibe slash command, and a background
|
|
221
|
+
# scheduler (planner-agent scheduling → explorer → per-direction solvers →
|
|
222
|
+
# multi-reviewer verification; method library + Method Keeper; paper-style
|
|
223
|
+
# Markdown knowledge base). It consumes the HOST subagents/agents/fs/tools/commands
|
|
224
|
+
# services and provides nothing, so it sits loose (no isolate realm).
|
|
225
|
+
- id: vibe-math-v3
|
|
226
|
+
name: './vibe-math-v3.js'
|