dsh-cohub 0.4.4 → 0.4.11

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,207 +0,0 @@
1
- # cohub-standard agent preset —— cohub 调度体系 + DSH 标准 preset 工具栈。
2
- #
3
- # 来源:以 DSH 官方 standard preset 为骨架(拷贝 node_modules/@deepseek-ai/dsh/config/
4
- # agent-presets/standard/agent.cordis.yml),修改 persona 段注入 cohub 中文身份与
5
- # 调度纪律;其余工具栈(fs / shell / web / subagent / planning / compaction 等)
6
- # 与 standard 完全一致。
7
- #
8
- # 与 co-orchestrator preset 的关键差异:
9
- # - 不设 tool-presentation: mode: code —— 模型直接调工具,无需 run_code 包
10
- # - persona 不再强制"纯调度者绝不亲自读文件""("——主代理可用 fs / shell / web 工具
11
- # - 保留 dsh-cohub bundle 注入的中文指令(cohub:language)、调度参数(cohub:schedule)、
12
- # 12 个 co-* 技能与 delegate 工具(host plane,与 preset 解耦)
13
- # - 保留 subagent / subagent_fork / tool-subagent-control / ralph / workflow 完整调度工具面
14
- #
15
- # 主代理工作模式:
16
- # - 可直接调 read / write / edit / bash / pwsh / web_search / web_fetch(std preset 工具栈)
17
- # - 可直接调 delegate({ skill: 'co-fixer' | 'co-explorer' | ... }) 委派 co-* 子代理
18
- # - 可直接调 subagent / subagent_fork spawn 任意子代理
19
- # - 调度纪律(并行批 ≤ schedule.maxParallelBatch、墙钟预算、job 跟踪)作为 persona 软约束生效
20
-
21
- # ── identity ────────────────────────────────────────────────────────────────
22
-
23
- # cohub 自己的 persona,遮蔽部署默认 persona。
24
- # 直接复用 co-orchestrator preset 的 persona,去掉"run_code""节("因本 preset 不走 Code 模式)。
25
- - id: persona
26
- name: '@deepseek-ai/dsh-persona'
27
- config:
28
- text: >-
29
- 你是 cohub 中文智能体编排体系的主调度者集群(Orchestrator)——思考时以集群方式协作,调用不同代理集群分工处理,而非以独立个体独自完成。
30
-
31
- 你的核心职责是分析需求 → 委派信息收集 → 委派 co-planner 制定方案 → 审核 → 委派执行 → 委派验证。可使用 delegate({ skill }) 工具把任务分发给专职子代理(co-explorer / co-fixer / co-librarian / co-oracle / co-designer / co-observer / co-council / co-planner / co-rule-user / co-rule-project / co-rule-app),也可直接调用工具栈(read/write/bash/websearch 等)处理简单查询。
32
-
33
- 会话开始时,用 skill 工具加载 co-orchestrator 技能并参考其工作流(co-orchestrator 是标准工作流定义;本 preset 不强制"纯调度者"硬约束,模型可自主决定何时亲自操作、何时委派)。
34
-
35
- 调度纪律(persona 层软约束):
36
- - 并行委派每批不超过 schedule.maxParallelBatch(部署可调,默认 3)
37
- - 接近墙钟预算 schedule.wallClockBudgetMs(默认 600_000ms)的大批量任务必须分批 + job 跟踪轮询
38
- - 无 job 跟踪工具时前台小批串行
39
- - 禁止在单次执行单元里并行启动超过批上限的 delegate
40
-
41
- 中文输出(与 dsh-cohub bundle 的 cohub:language section 一致):所有自然语言部分(分析、规划、解释、讨论)必须使用中文;代码、技术术语、文件名、命令可保留原样。
42
-
43
- - id: agent-instructions
44
- name: '@deepseek-ai/dsh-agent-instructions'
45
- config:
46
- maxBytes: 65536
47
-
48
- # ── shell ───────────────────────────────────────────────────────────────────
49
-
50
- - id: tool-bash
51
- name: '@deepseek-ai/dsh-tool-bash'
52
- disabled: !!js process.platform === 'win32'
53
-
54
- - id: tool-pwsh
55
- name: '@deepseek-ai/dsh-tool-pwsh'
56
- disabled: !!js process.platform !== 'win32'
57
-
58
- # ── filesystem ──────────────────────────────────────────────────────────────
59
-
60
- - id: tool-fs
61
- name: '@deepseek-ai/dsh-tool-fs'
62
-
63
- - id: tool-fs-search
64
- name: '@deepseek-ai/dsh-tool-fs-search'
65
- config:
66
- sampleOverCapGlobResults: false
67
-
68
- # ── background jobs ────────────────────────────────────────────────────────
69
-
70
- - id: tool-jobs
71
- name: '@deepseek-ai/dsh-tool-jobs'
72
-
73
- # ── skills ──────────────────────────────────────────────────────────────────
74
-
75
- - id: skill-filesystem
76
- name: '@deepseek-ai/dsh-skill-filesystem'
77
-
78
- - id: tool-skill
79
- name: '@deepseek-ai/dsh-tool-skill'
80
-
81
- # ── goals ───────────────────────────────────────────────────────────────────
82
-
83
- - id: tool-goal
84
- name: '@deepseek-ai/dsh-tool-goal'
85
-
86
- # ── plan mode ───────────────────────────────────────────────────────────────
87
-
88
- - id: planning
89
- name: cordis:group
90
- group: true
91
- isolate:
92
- planMode: true
93
- config:
94
- - id: plan-mode
95
- name: '@deepseek-ai/dsh-plan-mode'
96
- config:
97
- section: |
98
- 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.
99
-
100
- 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.
101
-
102
- 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.
103
-
104
- 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.
105
-
106
- 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.
107
-
108
- 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.
109
-
110
- # ── compaction ──────────────────────────────────────────────────────────────
111
-
112
- - id: compaction
113
- name: cordis:group
114
- group: true
115
- isolate:
116
- compaction: true
117
- toolResultPruner: true
118
- config:
119
- - id: compaction-basic
120
- name: '@deepseek-ai/dsh-compaction-basic'
121
-
122
- - id: command-compact
123
- name: '@deepseek-ai/dsh-command-compact'
124
-
125
- - id: tool-result-pruner
126
- name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
127
- config:
128
- thresholdChars: 8192
129
- headChars: 4096
130
- tailChars: 1024
131
-
132
- # ── delegation and workflows ────────────────────────────────────────────────
133
-
134
- - id: delegation
135
- name: cordis:group
136
- group: true
137
- isolate:
138
- workflowEngine: true
139
- config:
140
- - id: tool-subagent-control
141
- name: '@deepseek-ai/dsh-tool-subagent-control'
142
-
143
- - id: tool-subagent-list-agents
144
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
145
-
146
- - id: tool-subagent
147
- name: '@deepseek-ai/dsh-tool-subagent'
148
- config:
149
- provider: spawn
150
- toolName: subagent
151
- backgroundMode: continuable
152
-
153
- - id: tool-subagent-fork
154
- name: '@deepseek-ai/dsh-tool-subagent'
155
- config:
156
- provider: fork
157
- toolName: subagent_fork
158
- backgroundMode: continuable
159
-
160
- - id: tool-subagent-codex
161
- name: '@deepseek-ai/dsh-tool-subagent'
162
- disabled: true
163
- config:
164
- provider: codex
165
- toolName: subagent_codex
166
- enableRunInBackground: false
167
- maxDepth: provider-managed
168
-
169
- - id: tool-subagent-claude-code
170
- name: '@deepseek-ai/dsh-tool-subagent'
171
- disabled: true
172
- config:
173
- provider: claude-code
174
- toolName: subagent_claude_code
175
- enableRunInBackground: false
176
- maxDepth: provider-managed
177
-
178
- - id: workflow-worker-thread
179
- name: '@deepseek-ai/dsh-workflow-worker-thread'
180
- config:
181
- provider: spawn
182
-
183
- - id: tool-workflow
184
- name: '@deepseek-ai/dsh-tool-workflow'
185
-
186
- - id: tool-ralph
187
- name: '@deepseek-ai/dsh-tool-ralph'
188
- config:
189
- subagentProvider: spawn
190
- maxRounds: 64
191
-
192
- # ── remaining model-facing rows ─────────────────────────────────────────────
193
-
194
- - id: tool-ask-user
195
- name: '@deepseek-ai/dsh-tool-ask-user'
196
-
197
- - id: tool-todo
198
- name: '@deepseek-ai/dsh-tool-todo'
199
- config:
200
- allowParallelInProgress: true
201
-
202
- # ── 外网(cohub-standard 启用 web_search / web_fetch)────────────────────────
203
- - id: tool-web
204
- name: '@deepseek-ai/dsh-tool-web'
205
- config:
206
- fetch: false
207
- searchTimeoutMs: 60000
@@ -1,2 +0,0 @@
1
- name: CoHub 标准调度者(cohub-standard)
2
- description: DSH 标准 preset + 中文 cohub 人设/调度纪律;不使用 Code 模式,模型直接调工具。保留 co-* 技能与 delegate 委派,由 dsh-cohub bundle 注入。