dsh-cohub 0.13.2 → 0.13.4
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 +20 -12
- package/cordis.patch.yml +16 -0
- package/lib/client.js +511 -15
- package/lib/index.js +824 -100
- package/package.json +1 -1
- package/presets/cohub-subagent-readonly-net/agent.cordis.yml +87 -0
- package/presets/cohub-subagent-readonly-net/preset.yml +2 -0
- package/presets/cohub-subagent-write-shell/agent.cordis.yml +99 -0
- package/presets/cohub-subagent-write-shell/preset.yml +2 -0
- package/presets/profile-patch-presets.yml +179 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-cohub",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"description": "DeepSeek Harness 版 CoHub:中文智能体编排——用户可选 2 种工作模式(co-orchestrator 纯调度 / cohub-cordis 创造模式)+ 13 个专职代理技能 + 多模型共识;另由 cohub-subagent-readonly / cohub-subagent-write 两个支撑 preset 实现子代理读写硬隔离(共 4 个 preset)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# cohub-subagent-readonly-net —— cohub 编排体系的**只读 + 联网**子代理专用 agent preset。
|
|
2
|
+
#
|
|
3
|
+
# 定位:与 cohub-subagent-readonly 同构,唯一实质差别是 **tool-web 的 fetch 开关**。
|
|
4
|
+
# - readonly :`tool-web { fetch: false }` → 工具表里有 web 行,但页面抓取被关掉;
|
|
5
|
+
# - readonly-net :`tool-web { fetch: true }` → 真正能联网抓取/检索(co-librarian、
|
|
6
|
+
# co-observer 的研究型任务必需),仍然无写盘、无 Shell。
|
|
7
|
+
#
|
|
8
|
+
# 隔离边界(与 readonly 完全一致,请勿放开):
|
|
9
|
+
# · tool-fs 显式 `write: false` / `edit: false` —— @deepseek-ai/dsh-tool-fs 的 apply()
|
|
10
|
+
# 在两者皆 false 时根本不注册 write / edit 工具(连 FsSandboxController 都不构造);
|
|
11
|
+
# · Shell 工具行(tool-pwsh / tool-bash)整行不挂 —— 联网能力不等于能执行命令;
|
|
12
|
+
# · delegation / delegation-subagents / tool-subagent* / tool-workflow / tool-goal /
|
|
13
|
+
# tool-ask-user / tool-jobs / tool-cordis / mcp-github 一律不挂,断掉「子代理再套娃」。
|
|
14
|
+
#
|
|
15
|
+
# 工具行集合严格抄自 presets/cohub-subagent-readonly/agent.cordis.yml,未引入任何新插件名。
|
|
16
|
+
|
|
17
|
+
# ── 身份(精简:子代理不需要调度纪律,技能指令已由任务书 brief 注入)──────────
|
|
18
|
+
- id: persona
|
|
19
|
+
name: '@deepseek-ai/dsh-persona'
|
|
20
|
+
config:
|
|
21
|
+
# 字段名必须是 prefix(required)/ suffix;旧版 text 字段会让整行挂载失败。
|
|
22
|
+
prefix: |-
|
|
23
|
+
你是 cohub 编排体系的专职子代理——只负责完成当前这一件具体任务。
|
|
24
|
+
不要试图调度、委派或拆分给其他代理;你的技能指令已由任务书注入,不要调用 skill 工具加载 co-orchestrator。
|
|
25
|
+
事实与证据优先:结论前置,证据用 path:line 形式。
|
|
26
|
+
|
|
27
|
+
# ── 技能 ────────────────────────────────────────────────────────────────
|
|
28
|
+
# 保留 tool-skill:子代理偶尔需要读自己的技能正文(成本 1 个工具)。
|
|
29
|
+
- id: tool-skill
|
|
30
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
31
|
+
|
|
32
|
+
# ── 任务面板 ────────────────────────────────────────────────────────────
|
|
33
|
+
- id: tool-todo
|
|
34
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
35
|
+
config:
|
|
36
|
+
allowParallelInProgress: true
|
|
37
|
+
|
|
38
|
+
# ── 文件(只读)/ 搜索 / 外网(联网)──────────────────────────────────────
|
|
39
|
+
# write / edit 显式关掉 —— 与 readonly 版一致,这是只读保证的硬边界。
|
|
40
|
+
- id: tool-fs
|
|
41
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
42
|
+
config:
|
|
43
|
+
write: false
|
|
44
|
+
edit: false
|
|
45
|
+
|
|
46
|
+
- id: tool-fs-search
|
|
47
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
48
|
+
config:
|
|
49
|
+
sampleOverCapGlobResults: false
|
|
50
|
+
|
|
51
|
+
# ★ 与 readonly 的唯一差异:fetch 打开(readonly 为 false)。
|
|
52
|
+
- id: tool-web
|
|
53
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
54
|
+
config:
|
|
55
|
+
fetch: true
|
|
56
|
+
|
|
57
|
+
- id: skill-filesystem
|
|
58
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
59
|
+
|
|
60
|
+
# 不挂(与 readonly / write 版一致):delegation / delegation-subagents / tool-subagent* /
|
|
61
|
+
# tool-workflow / tool-goal / tool-ask-user / tool-jobs / tool-cordis / mcp-github。
|
|
62
|
+
# 不挂 shell:联网代理不需要执行命令(真正的只读保证)。
|
|
63
|
+
|
|
64
|
+
# ── 上下文压缩(参数照 co-orchestrator 现有值)─────────────────────────────
|
|
65
|
+
# 注意:不要在 preset 里再挂 spill-local / spill-policy —— host bundle 已挂且已生效,
|
|
66
|
+
# 双层裁剪会让落盘的原文不可恢复(详见 co-orchestrator/agent.cordis.yml 注释)。
|
|
67
|
+
- id: compaction
|
|
68
|
+
name: cordis:group
|
|
69
|
+
group: true
|
|
70
|
+
isolate:
|
|
71
|
+
compaction: true
|
|
72
|
+
toolResultPruner: true
|
|
73
|
+
config:
|
|
74
|
+
- id: compaction-basic
|
|
75
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
76
|
+
config:
|
|
77
|
+
thresholdRatio: 0.5
|
|
78
|
+
|
|
79
|
+
- id: command-compact
|
|
80
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
81
|
+
|
|
82
|
+
- id: tool-result-pruner
|
|
83
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
84
|
+
config:
|
|
85
|
+
thresholdChars: 8192
|
|
86
|
+
headChars: 4096
|
|
87
|
+
tailChars: 1024
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# cohub-subagent-write-shell —— cohub 编排体系的**读写 + Shell** 子代理专用 agent preset。
|
|
2
|
+
#
|
|
3
|
+
# 定位(事实核对后再落地,勿凭印象改):既有的 cohub-subagent-write **已经挂了**
|
|
4
|
+
# tool-bash / tool-pwsh 两行(见 presets/cohub-subagent-write/agent.cordis.yml 第 55-61 行),
|
|
5
|
+
# 所以「多挂 shell」在它身上无从再挂一遍。本 preset 因此取 write 的**上限能力**:
|
|
6
|
+
# · tool-fs 全开(read / readImage / write / edit,默认即全开,故不写 config);
|
|
7
|
+
# · Shell 两行保留写 co-orchestrator 相同的平台互斥门控(win32 → pwsh,其余 → bash);
|
|
8
|
+
# · ★ 相对 write 的唯一增量:tool-web 的 `fetch: true`(write 版为 `fetch: false`),
|
|
9
|
+
# 让实施类代理在需要时可抓取外部文档/报错页,而不必借道父会话。
|
|
10
|
+
#
|
|
11
|
+
# 与 cohub-subagent-write 的差异矩阵:
|
|
12
|
+
# tool-fs write=true / edit=true (相同)
|
|
13
|
+
# tool-web fetch=true (write 为 false)★
|
|
14
|
+
# tool-bash disabled: platform === 'win32' (相同)
|
|
15
|
+
# tool-pwsh disabled: platform !== 'win32' (相同)
|
|
16
|
+
#
|
|
17
|
+
# 隔离边界(与 readonly / write 完全一致,请勿放开):delegation /
|
|
18
|
+
# delegation-subagents / tool-subagent / tool-subagent-fork / tool-workflow /
|
|
19
|
+
# tool-goal / tool-ask-user / tool-jobs / tool-cordis / mcp-github 一律不挂 ——
|
|
20
|
+
# 从工具表层面断掉「子代理再往下套娃」的可能。
|
|
21
|
+
#
|
|
22
|
+
# 机制依据:DSH 0.2.1 SubagentStartRequest.agentPreset 是一等字段,child 创建时
|
|
23
|
+
# presets.mount(childCtx, id) 硬切换组合,不再继承父 preset 的 persona 与工具表。
|
|
24
|
+
# 工具行集合严格抄自 presets/cohub-subagent-write/agent.cordis.yml,未引入新插件名。
|
|
25
|
+
|
|
26
|
+
# ── 身份(精简)─────────────────────────────────────────────────────────
|
|
27
|
+
- id: persona
|
|
28
|
+
name: '@deepseek-ai/dsh-persona'
|
|
29
|
+
config:
|
|
30
|
+
# 字段名必须是 prefix(required)/ suffix;旧版 text 字段会让整行挂载失败。
|
|
31
|
+
prefix: |-
|
|
32
|
+
你是 cohub 编排体系的专职子代理——只负责完成当前这一件具体任务。
|
|
33
|
+
不要试图调度、委派或拆分给其他代理;你的技能指令已由任务书注入,不要调用 skill 工具加载 co-orchestrator。
|
|
34
|
+
事实与证据优先:结论前置,证据用 path:line 形式。
|
|
35
|
+
|
|
36
|
+
# ── 技能 ────────────────────────────────────────────────────────────────
|
|
37
|
+
- id: tool-skill
|
|
38
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
39
|
+
|
|
40
|
+
# ── 任务面板 ────────────────────────────────────────────────────────────
|
|
41
|
+
- id: tool-todo
|
|
42
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
43
|
+
config:
|
|
44
|
+
allowParallelInProgress: true
|
|
45
|
+
|
|
46
|
+
# ── 文件(读写)/ 搜索 / 外网(联网)──────────────────────────────────────
|
|
47
|
+
- id: tool-fs
|
|
48
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
49
|
+
|
|
50
|
+
- id: tool-fs-search
|
|
51
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
52
|
+
config:
|
|
53
|
+
sampleOverCapGlobResults: false
|
|
54
|
+
|
|
55
|
+
# ★ 相对 cohub-subagent-write 的唯一差异:fetch 打开(write 为 false)。
|
|
56
|
+
- id: tool-web
|
|
57
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
58
|
+
config:
|
|
59
|
+
fetch: true
|
|
60
|
+
|
|
61
|
+
- id: skill-filesystem
|
|
62
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
63
|
+
|
|
64
|
+
# ── Shell(平台互斥,写法照 co-orchestrator)──────────────────────────────
|
|
65
|
+
- id: tool-bash
|
|
66
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
67
|
+
disabled: !!js process.platform === 'win32'
|
|
68
|
+
|
|
69
|
+
- id: tool-pwsh
|
|
70
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
71
|
+
disabled: !!js process.platform !== 'win32'
|
|
72
|
+
|
|
73
|
+
# 不挂(见文件头):delegation / delegation-subagents / tool-subagent* /
|
|
74
|
+
# tool-workflow / tool-goal / tool-ask-user / tool-jobs / tool-cordis / mcp-github。
|
|
75
|
+
|
|
76
|
+
# ── 上下文压缩(参数照 co-orchestrator 现有值)─────────────────────────────
|
|
77
|
+
# 注意:不要在 preset 里再挂 spill-local / spill-policy —— host bundle 已挂且已生效,
|
|
78
|
+
# 双层裁剪会让落盘的原文不可恢复(详见 co-orchestrator/agent.cordis.yml 注释)。
|
|
79
|
+
- id: compaction
|
|
80
|
+
name: cordis:group
|
|
81
|
+
group: true
|
|
82
|
+
isolate:
|
|
83
|
+
compaction: true
|
|
84
|
+
toolResultPruner: true
|
|
85
|
+
config:
|
|
86
|
+
- id: compaction-basic
|
|
87
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
88
|
+
config:
|
|
89
|
+
thresholdRatio: 0.5
|
|
90
|
+
|
|
91
|
+
- id: command-compact
|
|
92
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
93
|
+
|
|
94
|
+
- id: tool-result-pruner
|
|
95
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
96
|
+
config:
|
|
97
|
+
thresholdChars: 8192
|
|
98
|
+
headChars: 4096
|
|
99
|
+
tailChars: 1024
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# cohub 子代理 preset 的 **profile patch 声明片段**(供 profile 的 cordis.patch.yml 使用)
|
|
2
|
+
#
|
|
3
|
+
# 为什么需要这个文件:新版宿主(0.2.1-rc.5 实测)对 profile 里的 agent preset 采用
|
|
4
|
+
# `@deepseek-ai/dsh-agent-preset` **声明行**注册,而不是扫描 ~/.dsh/.agent-presets/ 目录。
|
|
5
|
+
# 因此只把 presets/<id>/ 复制进用户目录不够 —— 还必须在 profile 的 cordis.patch.yml
|
|
6
|
+
# 里以 `- insert: { id: preset-<id>, ... }` 的形式声明,否则 delegate 传
|
|
7
|
+
# agentPreset: '<id>' 时 presets.mount 找不到,cohub 会 fail-soft 降级为继承父 preset。
|
|
8
|
+
#
|
|
9
|
+
# 用法:把下面的 `- insert:` 段原样追加到目标 profile 的 cordis.patch.yml 顶层
|
|
10
|
+
# (与既有的 preset-co-orchestrator / preset-cohub-cordis /
|
|
11
|
+
# preset-cohub-subagent-readonly / preset-cohub-subagent-write 同级)。
|
|
12
|
+
# 本文件本身不被 installShippedPresets 安装(它只复制 presets/ 下的**目录**)。
|
|
13
|
+
#
|
|
14
|
+
# 源文件(plugins 段与之一一对应,改一处必须同时改另一处):
|
|
15
|
+
# packages/dsh-cohub/presets/cohub-subagent-readonly-net/agent.cordis.yml
|
|
16
|
+
# packages/dsh-cohub/presets/cohub-subagent-write-shell/agent.cordis.yml
|
|
17
|
+
# 与既有两条声明的差异仅在 tool-web 的 fetch 开关,其余工具行逐行照抄。
|
|
18
|
+
- insert:
|
|
19
|
+
- id: preset-cohub-subagent-readonly-net
|
|
20
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
21
|
+
config:
|
|
22
|
+
id: cohub-subagent-readonly-net
|
|
23
|
+
name: "CoHub 子代理·只读+联网(cohub-subagent-readonly-net)"
|
|
24
|
+
description: "cohub 编排体系的联网只读子代理专用 preset:co-librarian / co-observer
|
|
25
|
+
/ co-planner / co-council 使用;在 readonly 基础上接通外网抓取(web 检索类工具可用),
|
|
26
|
+
仍无写盘、无 Shell、无委派类工具。"
|
|
27
|
+
order: 12
|
|
28
|
+
plugins:
|
|
29
|
+
# ── 身份(精简:子代理不需要调度纪律,技能指令已由任务书 brief 注入)──
|
|
30
|
+
- id: persona
|
|
31
|
+
name: '@deepseek-ai/dsh-persona'
|
|
32
|
+
config:
|
|
33
|
+
# 字段名必须是 prefix(required)/ suffix;旧版 text 字段会让整行挂载失败。
|
|
34
|
+
prefix: |-
|
|
35
|
+
你是 cohub 编排体系的专职子代理——只负责完成当前这一件具体任务。
|
|
36
|
+
不要试图调度、委派或拆分给其他代理;你的技能指令已由任务书注入,不要调用 skill 工具加载 co-orchestrator。
|
|
37
|
+
事实与证据优先:结论前置,证据用 path:line 形式。
|
|
38
|
+
|
|
39
|
+
# ── 技能 ────────────────────────────────────────────────────────────
|
|
40
|
+
- id: tool-skill
|
|
41
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
42
|
+
|
|
43
|
+
# ── 任务面板 ────────────────────────────────────────────────────────
|
|
44
|
+
- id: tool-todo
|
|
45
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
46
|
+
config:
|
|
47
|
+
allowParallelInProgress: true
|
|
48
|
+
|
|
49
|
+
# ── 文件(只读)/ 搜索 / 外网(联网)────────────────────────────────
|
|
50
|
+
# write / edit 显式关掉 —— 与 readonly 版一致,只读保证的硬边界。
|
|
51
|
+
- id: tool-fs
|
|
52
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
53
|
+
config:
|
|
54
|
+
write: false
|
|
55
|
+
edit: false
|
|
56
|
+
|
|
57
|
+
- id: tool-fs-search
|
|
58
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
59
|
+
config:
|
|
60
|
+
sampleOverCapGlobResults: false
|
|
61
|
+
|
|
62
|
+
# ★ 与 readonly 的唯一差异:fetch 打开(readonly 为 false)。
|
|
63
|
+
- id: tool-web
|
|
64
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
65
|
+
config:
|
|
66
|
+
fetch: true
|
|
67
|
+
|
|
68
|
+
- id: skill-filesystem
|
|
69
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
70
|
+
|
|
71
|
+
# 不挂:delegation / delegation-subagents / tool-subagent* / tool-workflow /
|
|
72
|
+
# tool-goal / tool-ask-user / tool-jobs / tool-cordis / mcp-github。
|
|
73
|
+
# 不挂 shell:联网代理不需要执行命令(真正的只读保证)。
|
|
74
|
+
|
|
75
|
+
# ── 上下文压缩(参数照 co-orchestrator 现有值)─────────────────────
|
|
76
|
+
- id: compaction
|
|
77
|
+
name: cordis:group
|
|
78
|
+
group: true
|
|
79
|
+
isolate:
|
|
80
|
+
compaction: true
|
|
81
|
+
toolResultPruner: true
|
|
82
|
+
config:
|
|
83
|
+
- id: compaction-basic
|
|
84
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
85
|
+
config:
|
|
86
|
+
thresholdRatio: 0.5
|
|
87
|
+
|
|
88
|
+
- id: command-compact
|
|
89
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
90
|
+
|
|
91
|
+
- id: tool-result-pruner
|
|
92
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
93
|
+
config:
|
|
94
|
+
thresholdChars: 8192
|
|
95
|
+
headChars: 4096
|
|
96
|
+
tailChars: 1024
|
|
97
|
+
|
|
98
|
+
- insert:
|
|
99
|
+
- id: preset-cohub-subagent-write-shell
|
|
100
|
+
name: '@deepseek-ai/dsh-agent-preset'
|
|
101
|
+
config:
|
|
102
|
+
id: cohub-subagent-write-shell
|
|
103
|
+
name: "CoHub 子代理·读写+Shell(cohub-subagent-write-shell)"
|
|
104
|
+
description: "cohub 编排体系的全能实施类子代理专用 preset:co-fixer / co-designer
|
|
105
|
+
/ co-cordis 使用;文件读写 + Shell + 外网抓取,但不含任何委派类工具。"
|
|
106
|
+
order: 13
|
|
107
|
+
plugins:
|
|
108
|
+
# ── 身份(精简)─────────────────────────────────────────────────────
|
|
109
|
+
- id: persona
|
|
110
|
+
name: '@deepseek-ai/dsh-persona'
|
|
111
|
+
config:
|
|
112
|
+
# 字段名必须是 prefix(required)/ suffix;旧版 text 字段会让整行挂载失败。
|
|
113
|
+
prefix: |-
|
|
114
|
+
你是 cohub 编排体系的专职子代理——只负责完成当前这一件具体任务。
|
|
115
|
+
不要试图调度、委派或拆分给其他代理;你的技能指令已由任务书注入,不要调用 skill 工具加载 co-orchestrator。
|
|
116
|
+
事实与证据优先:结论前置,证据用 path:line 形式。
|
|
117
|
+
|
|
118
|
+
# ── 技能 ────────────────────────────────────────────────────────────
|
|
119
|
+
- id: tool-skill
|
|
120
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
121
|
+
|
|
122
|
+
# ── 任务面板 ────────────────────────────────────────────────────────
|
|
123
|
+
- id: tool-todo
|
|
124
|
+
name: '@deepseek-ai/dsh-tool-todo'
|
|
125
|
+
config:
|
|
126
|
+
allowParallelInProgress: true
|
|
127
|
+
|
|
128
|
+
# ── 文件(读写)/ 搜索 / 外网(联网)────────────────────────────────
|
|
129
|
+
- id: tool-fs
|
|
130
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
131
|
+
|
|
132
|
+
- id: tool-fs-search
|
|
133
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
134
|
+
config:
|
|
135
|
+
sampleOverCapGlobResults: false
|
|
136
|
+
|
|
137
|
+
# ★ 相对 cohub-subagent-write 的唯一差异:fetch 打开(write 为 false)。
|
|
138
|
+
- id: tool-web
|
|
139
|
+
name: '@deepseek-ai/dsh-tool-web'
|
|
140
|
+
config:
|
|
141
|
+
fetch: true
|
|
142
|
+
|
|
143
|
+
- id: skill-filesystem
|
|
144
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
145
|
+
|
|
146
|
+
# ── Shell(平台互斥,写法照 co-orchestrator)────────────────────────
|
|
147
|
+
- id: tool-bash
|
|
148
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
149
|
+
disabled: !!js process.platform === 'win32'
|
|
150
|
+
|
|
151
|
+
- id: tool-pwsh
|
|
152
|
+
name: '@deepseek-ai/dsh-tool-pwsh'
|
|
153
|
+
disabled: !!js process.platform !== 'win32'
|
|
154
|
+
|
|
155
|
+
# 不挂(见文件头):delegation / delegation-subagents / tool-subagent* /
|
|
156
|
+
# tool-workflow / tool-goal / tool-ask-user / tool-jobs / tool-cordis / mcp-github。
|
|
157
|
+
|
|
158
|
+
# ── 上下文压缩(参数照 co-orchestrator 现有值)─────────────────────
|
|
159
|
+
- id: compaction
|
|
160
|
+
name: cordis:group
|
|
161
|
+
group: true
|
|
162
|
+
isolate:
|
|
163
|
+
compaction: true
|
|
164
|
+
toolResultPruner: true
|
|
165
|
+
config:
|
|
166
|
+
- id: compaction-basic
|
|
167
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
168
|
+
config:
|
|
169
|
+
thresholdRatio: 0.5
|
|
170
|
+
|
|
171
|
+
- id: command-compact
|
|
172
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
173
|
+
|
|
174
|
+
- id: tool-result-pruner
|
|
175
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
176
|
+
config:
|
|
177
|
+
thresholdChars: 8192
|
|
178
|
+
headChars: 4096
|
|
179
|
+
tailChars: 1024
|