dsh-plugin-prompt-tool 0.4.2 → 0.6.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 +131 -222
- package/engine/anchor-match.mjs +117 -0
- package/engine/compaction-epoch.mjs +139 -0
- package/engine/compositions/library/bootstrap-filesystem.yml +19 -0
- package/engine/compositions/library/compaction.yml +52 -0
- package/engine/compositions/library/context-gate.yml +40 -0
- package/engine/compositions/library/custom-bash.yml +14 -0
- package/engine/compositions/library/delegation.yml +85 -0
- package/engine/compositions/library/official-agent-instructions.yml +17 -0
- package/engine/compositions/library/official-persistent-shell.yml +56 -0
- package/engine/compositions/library/official-skill-filesystem-cordis.yml +10 -0
- package/engine/compositions/library/official-tool-bash.yml +6 -0
- package/engine/compositions/library/official-tool-cordis.yml +13 -0
- package/engine/compositions/library/official-tool-presentation.yml +7 -0
- package/engine/compositions/library/official-tool-skill.yml +14 -0
- package/engine/compositions/library/persistent-shell.yml +36 -0
- package/engine/compositions/library/persona.yml +9 -0
- package/engine/compositions/library/planning.yml +41 -0
- package/engine/compositions/library/prompt-config-engine.yml +16 -0
- package/engine/compositions/library/run-code-env.yml +15 -0
- package/engine/compositions/library/skill-filesystem.yml +13 -0
- package/engine/compositions/library/skill-search.yml +14 -0
- package/engine/compositions/library/str-replace-editor.yml +10 -0
- package/engine/compositions/library/tool-ask-user.yml +8 -0
- package/engine/compositions/library/tool-bash.yml +16 -0
- package/engine/compositions/library/tool-bootstrap.yml +16 -0
- package/engine/compositions/library/tool-filter.yml +12 -0
- package/engine/compositions/library/tool-fs-search.yml +18 -0
- package/engine/compositions/library/tool-fs.yml +10 -0
- package/engine/compositions/library/tool-goal.yml +19 -0
- package/engine/compositions/library/tool-jobs.yml +23 -0
- package/engine/compositions/library/tool-pwsh.yml +12 -0
- package/engine/compositions/library/tool-todo.yml +11 -0
- package/engine/compositions/library/tool-web.yml +9 -0
- package/engine/compositions/source/local/context-gate.yml +37 -0
- package/engine/compositions/source/local/custom-bash.yml +11 -0
- package/engine/compositions/source/local/prompt-config-engine.yml +13 -0
- package/engine/compositions/source/local/run-code-env.yml +12 -0
- package/engine/compositions/source/local/skill-search.yml +11 -0
- package/engine/compositions/source/local/tool-bootstrap.yml +13 -0
- package/engine/context-gate.mjs +305 -0
- package/{preset → engine}/custom-bash.mjs +243 -243
- package/engine/executor.mjs +278 -0
- package/engine/fillers.mjs +273 -0
- package/engine/interpolate.mjs +66 -0
- package/engine/layers.mjs +224 -0
- package/engine/prompt-config-engine.mjs +49 -0
- package/engine/run-code-env.mjs +208 -0
- package/engine/schema.mjs +312 -0
- package/engine/session-vars.mjs +52 -0
- package/{preset → engine}/shared.mjs +35 -0
- package/engine/strategies.mjs +213 -0
- package/{preset → engine}/tool-bootstrap.mjs +350 -282
- package/engine/tool-filter.mjs +80 -0
- package/engine/vendor/yaml/LICENSE +13 -0
- package/engine/vendor/yaml/dist/compose/compose-collection.js +88 -0
- package/engine/vendor/yaml/dist/compose/compose-doc.js +43 -0
- package/engine/vendor/yaml/dist/compose/compose-node.js +109 -0
- package/engine/vendor/yaml/dist/compose/compose-scalar.js +86 -0
- package/engine/vendor/yaml/dist/compose/composer.js +219 -0
- package/engine/vendor/yaml/dist/compose/resolve-block-map.js +115 -0
- package/engine/vendor/yaml/dist/compose/resolve-block-scalar.js +198 -0
- package/engine/vendor/yaml/dist/compose/resolve-block-seq.js +49 -0
- package/engine/vendor/yaml/dist/compose/resolve-end.js +37 -0
- package/engine/vendor/yaml/dist/compose/resolve-flow-collection.js +207 -0
- package/engine/vendor/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/engine/vendor/yaml/dist/compose/resolve-props.js +146 -0
- package/engine/vendor/yaml/dist/compose/util-contains-newline.js +34 -0
- package/engine/vendor/yaml/dist/compose/util-empty-scalar-position.js +26 -0
- package/engine/vendor/yaml/dist/compose/util-flow-indent-check.js +15 -0
- package/engine/vendor/yaml/dist/compose/util-map-includes.js +13 -0
- package/engine/vendor/yaml/dist/doc/Document.js +335 -0
- package/engine/vendor/yaml/dist/doc/anchors.js +71 -0
- package/engine/vendor/yaml/dist/doc/applyReviver.js +55 -0
- package/engine/vendor/yaml/dist/doc/createNode.js +88 -0
- package/engine/vendor/yaml/dist/doc/directives.js +176 -0
- package/engine/vendor/yaml/dist/errors.js +57 -0
- package/engine/vendor/yaml/dist/index.js +17 -0
- package/engine/vendor/yaml/dist/log.js +11 -0
- package/engine/vendor/yaml/dist/nodes/Alias.js +116 -0
- package/engine/vendor/yaml/dist/nodes/Collection.js +147 -0
- package/engine/vendor/yaml/dist/nodes/Node.js +38 -0
- package/engine/vendor/yaml/dist/nodes/Pair.js +36 -0
- package/engine/vendor/yaml/dist/nodes/Scalar.js +24 -0
- package/engine/vendor/yaml/dist/nodes/YAMLMap.js +144 -0
- package/engine/vendor/yaml/dist/nodes/YAMLSeq.js +113 -0
- package/engine/vendor/yaml/dist/nodes/addPairToJSMap.js +63 -0
- package/engine/vendor/yaml/dist/nodes/identity.js +36 -0
- package/engine/vendor/yaml/dist/nodes/toJS.js +37 -0
- package/engine/vendor/yaml/dist/parse/cst-scalar.js +214 -0
- package/engine/vendor/yaml/dist/parse/cst-stringify.js +61 -0
- package/engine/vendor/yaml/dist/parse/cst-visit.js +97 -0
- package/engine/vendor/yaml/dist/parse/cst.js +98 -0
- package/engine/vendor/yaml/dist/parse/lexer.js +721 -0
- package/engine/vendor/yaml/dist/parse/line-counter.js +39 -0
- package/engine/vendor/yaml/dist/parse/parser.js +975 -0
- package/engine/vendor/yaml/dist/public-api.js +102 -0
- package/engine/vendor/yaml/dist/schema/Schema.js +37 -0
- package/engine/vendor/yaml/dist/schema/common/map.js +17 -0
- package/engine/vendor/yaml/dist/schema/common/null.js +15 -0
- package/engine/vendor/yaml/dist/schema/common/seq.js +17 -0
- package/engine/vendor/yaml/dist/schema/common/string.js +14 -0
- package/engine/vendor/yaml/dist/schema/core/bool.js +19 -0
- package/engine/vendor/yaml/dist/schema/core/float.js +43 -0
- package/engine/vendor/yaml/dist/schema/core/int.js +38 -0
- package/engine/vendor/yaml/dist/schema/core/schema.js +23 -0
- package/engine/vendor/yaml/dist/schema/json/schema.js +62 -0
- package/engine/vendor/yaml/dist/schema/tags.js +96 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/binary.js +58 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/bool.js +26 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/float.js +46 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/int.js +71 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/merge.js +67 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/omap.js +74 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/pairs.js +78 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/schema.js +39 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/set.js +93 -0
- package/engine/vendor/yaml/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/engine/vendor/yaml/dist/stringify/foldFlowLines.js +146 -0
- package/engine/vendor/yaml/dist/stringify/stringify.js +129 -0
- package/engine/vendor/yaml/dist/stringify/stringifyCollection.js +153 -0
- package/engine/vendor/yaml/dist/stringify/stringifyComment.js +20 -0
- package/engine/vendor/yaml/dist/stringify/stringifyDocument.js +85 -0
- package/engine/vendor/yaml/dist/stringify/stringifyNumber.js +25 -0
- package/engine/vendor/yaml/dist/stringify/stringifyPair.js +150 -0
- package/engine/vendor/yaml/dist/stringify/stringifyString.js +336 -0
- package/engine/vendor/yaml/dist/util.js +11 -0
- package/engine/vendor/yaml/dist/visit.js +233 -0
- package/engine/vendor/yaml/index.js +5 -0
- package/engine/vendor/yaml/package.json +11 -0
- package/lib/client.js +4724 -775
- package/lib/client.js.map +1 -1
- package/lib/index.d.mts +530 -51
- package/lib/index.mjs +4164 -740
- package/lib/preset-core.d.mts +7 -37
- package/lib/preset-core.mjs +43 -285
- package/lib/prompt-configs-B4vH09wx.d.mts +100 -0
- package/lib/prompt-configs-ThS4iXPg.mjs +771 -0
- package/package.json +36 -29
- package/preset/anchored/preset.yml +342 -0
- package/preset/creative/preset.yml +65 -0
- package/preset/creative/skills/cordis-plugin-development/SKILL.md +420 -0
- package/preset/creative/skills/editing-cordis-compositions/SKILL.md +165 -0
- package/preset/custom/preset.yml +13 -0
- package/preset/liangshen/preset.yml +72 -0
- package/preset/minimal/preset.yml +44 -0
- package/preset/ptc/preset.yml +56 -0
- package/preset/standard/preset.yml +55 -0
- package/skills/manifest.json +7 -0
- package/skills/sandboxmod/SKILL.md +49 -49
- package/skills/web ui/SKILL.md +42 -0
- package/templates/10-pre-step.yml +28 -0
- package/templates/11-merged-a.yml +11 -0
- package/templates/13-anchor.yml +19 -0
- package/templates/14-first-turn-anchor.yml +27 -0
- package/templates/15-guide-auto.yml +25 -0
- package/templates/16-custom-fallback.yml +21 -0
- package/templates/17-instruction-hint.yml +23 -0
- package/templates/18-placeholder-env-facts.yml +11 -0
- package/templates/19-placeholder-skill-catalog.yml +19 -0
- package/templates/20-system-section.yml +19 -0
- package/templates/30-runtime-context.yml +10 -0
- package/templates/31-runtime-context-placeholder.yml +18 -0
- package/templates/40-agent-request.yml +11 -0
- package/templates/50-llm-stream.yml +9 -0
- package/templates/60-tool-pipeline.yml +12 -0
- package/AGENTS.md +0 -4
- package/plan.md +0 -312
- package/preset/agent.cordis.yml +0 -443
- package/preset/compaction-epoch.mjs +0 -81
- package/preset/context-gate.mjs +0 -165
- package/preset/instruction-hint.mjs +0 -217
- package/preset/near-anchor.mjs +0 -101
- package/preset/preset.yml +0 -3
- package/preset/prompt-injector.mjs +0 -112
- package/preset/router-first-turn.mjs +0 -73
- package/preset/router-guide.mjs +0 -79
- package/preset.md +0 -115
- package/upstream/dsh-anchored-standard/LICENSE +0 -22
- package/upstream/dsh-anchored-standard/NOTICE +0 -19
- package/upstream/dsh-anchored-standard/REVISION +0 -1
- package/upstream/dsh-anchored-standard/preset/agent.cordis.yml +0 -440
- package/upstream/dsh-anchored-standard/preset/compaction-epoch.mjs +0 -81
- package/upstream/dsh-anchored-standard/preset/context-gate.mjs +0 -202
- package/upstream/dsh-anchored-standard/preset/custom-bash.mjs +0 -219
- package/upstream/dsh-anchored-standard/preset/dev-tool-search.mjs +0 -131
- package/upstream/dsh-anchored-standard/preset/instruction-hint.mjs +0 -231
- package/upstream/dsh-anchored-standard/preset/preset.yml +0 -3
- package/upstream/dsh-anchored-standard/preset/skill-search.mjs +0 -142
- package/upstream/dsh-anchored-standard/preset/tool-bootstrap.mjs +0 -301
- /package/{preset → engine}/skill-search.mjs +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# module: compaction
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 0
|
|
4
|
+
|
|
5
|
+
# ── compaction ──────────────────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
# `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
|
|
8
|
+
# share this realm rather than sit outside it.
|
|
9
|
+
#
|
|
10
|
+
# `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
|
|
11
|
+
# plane, and the rows here resolve that one instance. It takes no configuration,
|
|
12
|
+
# keys every fold by Session, and owns the context-meter projection units the
|
|
13
|
+
# browser reads for every session — behind a realm those units would come and go
|
|
14
|
+
# with whichever presets happen to be mounted. What a preset chooses is whether
|
|
15
|
+
# its agent compacts at all, which is `compaction-basic` below.
|
|
16
|
+
- id: compaction
|
|
17
|
+
name: cordis:group
|
|
18
|
+
group: true
|
|
19
|
+
isolate:
|
|
20
|
+
compaction: true
|
|
21
|
+
toolResultPruner: true
|
|
22
|
+
config:
|
|
23
|
+
- id: compaction-basic
|
|
24
|
+
name: '@deepseek-ai/dsh-compaction-basic'
|
|
25
|
+
|
|
26
|
+
- id: command-compact
|
|
27
|
+
name: '@deepseek-ai/dsh-command-compact'
|
|
28
|
+
|
|
29
|
+
- id: tool-result-pruner
|
|
30
|
+
name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
|
|
31
|
+
config:
|
|
32
|
+
thresholdChars: 8192
|
|
33
|
+
headChars: 4096
|
|
34
|
+
tailChars: 1024
|
|
35
|
+
|
|
36
|
+
# ── delegation and workflows ────────────────────────────────────────────────
|
|
37
|
+
|
|
38
|
+
# The `subagents` registry and its spawn/fork backends live in the HOST
|
|
39
|
+
# composition: the registry is a process singleton whose cross-session queries
|
|
40
|
+
# the api-proxy serves to the browser, and a provider name may only be
|
|
41
|
+
# registered once. This preset contributes the delegation TOOLS, which resolve
|
|
42
|
+
# that host registry.
|
|
43
|
+
#
|
|
44
|
+
# `workflows` is different — nothing outside an agent reads it — so every row
|
|
45
|
+
# that reaches it shares one entry-local realm here, and a consumer left
|
|
46
|
+
# outside would resolve a host registry this preset does not populate.
|
|
47
|
+
#
|
|
48
|
+
# `tool-subagent-report` is host-plane for the same reason as the registry,
|
|
49
|
+
# not because a preset may not want it: it registers a CONTINUABLE SETUP on
|
|
50
|
+
# that singleton rather than a tool this agent calls, and the setup list is
|
|
51
|
+
# not scope-aware — one copy per mounted preset means every child gets
|
|
52
|
+
# `report` registered once per live session, which throws on the second.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# module: context-gate
|
|
2
|
+
# source: preset/engine/compositions/source/local/context-gate.yml (本地附加,非官方模块)
|
|
3
|
+
|
|
4
|
+
- id: context-gate
|
|
5
|
+
name: ./engine/context-gate.mjs
|
|
6
|
+
config:
|
|
7
|
+
promoteOn: either
|
|
8
|
+
includeSubagents: false
|
|
9
|
+
allowKinds: __allowKinds__
|
|
10
|
+
|
|
11
|
+
# ── bootstrap ───────────────────────────────────────────────────────────────
|
|
12
|
+
|
|
13
|
+
# Tool catalog control (mode-owned tool-bootstrap.mjs). V4 Pro conditions
|
|
14
|
+
# strongly on the API tool catalog AND the first request output budget:
|
|
15
|
+
# request #1 exposes the OFFICIAL Minimal preset's real tool pair —
|
|
16
|
+
# persistent `bash` + `str_replace_editor` — which anchors at the
|
|
17
|
+
# adapter-default maxTokens (256000) with no output cap needed (issue #11:
|
|
18
|
+
# 5/5 anchored vs 11/11 standard-like for every standard-family schema);
|
|
19
|
+
# after the session records its first durable promotion signal (a tool call OR
|
|
20
|
+
# the first assistant message, default `promoteOn: either`), later steps keep
|
|
21
|
+
# the assembled catalog and usePtcMode optionally switches the wire to Code
|
|
22
|
+
# Mode (PTC). `bootstrapMaxTokens` is
|
|
23
|
+
# opt-in for standard-schema bootstraps; unset, the adapter default flows. See
|
|
24
|
+
# tool-bootstrap.mjs for the other triggers. Context stripping is NOT here —
|
|
25
|
+
# the context-gate row above owns it.
|
|
26
|
+
#
|
|
27
|
+
# POST-PROMOTION (prompt-tool local addition): both modes keep the assembled
|
|
28
|
+
# catalog after promotion. `usePtcMode` switches the wire presentation to Code
|
|
29
|
+
# Mode (PTC, a single run_code backed by the full registry SDK) instead of
|
|
30
|
+
# narrowing the resident set; the pre-promotion and post-compaction controlled
|
|
31
|
+
# phase below still stays on the bootstrap pair + `compactionTools`.
|
|
32
|
+
#
|
|
33
|
+
# COMPACTION (local addition): after `compaction/end` the session falls back
|
|
34
|
+
# to the controlled phase — bootstrap pair + `compactionTools` — until a NEW
|
|
35
|
+
# durable promotion signal exists past the boundary (epoch-aware, see
|
|
36
|
+
# compaction-epoch.mjs).
|
|
37
|
+
#
|
|
38
|
+
# `includeSubagents: true` keeps the subagent phase in sync with the
|
|
39
|
+
# context-gate row: a subagent's first request sees the bootstrap pair, then
|
|
40
|
+
# its own first reply or tool call promotes it to the assembled catalog.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# module: custom-bash
|
|
2
|
+
# source: preset/engine/compositions/source/local/custom-bash.yml (本地附加,非官方模块)
|
|
3
|
+
|
|
4
|
+
- id: custom-bash
|
|
5
|
+
name: ./engine/custom-bash.mjs
|
|
6
|
+
disabled: !!js process.platform !== 'win32'
|
|
7
|
+
config:
|
|
8
|
+
timeoutMs: 120000
|
|
9
|
+
maxOutputBytes: 64000
|
|
10
|
+
|
|
11
|
+
# ── filesystem ──────────────────────────────────────────────────────────────
|
|
12
|
+
|
|
13
|
+
# Both register into the host `tools` registry and provide nothing, so
|
|
14
|
+
# they need no realm. The `fs` service and its policy stay in the host.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# module: delegation
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 2(SUBAGENT-CONFIG token ×2:子代理完整配置(模型/人设/工具集/深度),随预设参数渲染)
|
|
4
|
+
|
|
5
|
+
# ── delegation and workflows ────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
# The `subagents` registry and its spawn/fork backends live in the HOST
|
|
8
|
+
# composition: the registry is a process singleton whose cross-session queries
|
|
9
|
+
# the api-proxy serves to the browser, and a provider name may only be
|
|
10
|
+
# registered once. This preset contributes the delegation TOOLS, which resolve
|
|
11
|
+
# that host registry.
|
|
12
|
+
#
|
|
13
|
+
# `workflows` is different — nothing outside an agent reads it — so every row
|
|
14
|
+
# that reaches it shares one entry-local realm here, and a consumer left
|
|
15
|
+
# outside would resolve a host registry this preset does not populate.
|
|
16
|
+
#
|
|
17
|
+
# `tool-subagent-report` is host-plane for the same reason as the registry,
|
|
18
|
+
# not because a preset may not want it: it registers a CONTINUABLE SETUP on
|
|
19
|
+
# that singleton rather than a tool this agent calls, and the setup list is
|
|
20
|
+
# not scope-aware — one copy per mounted preset means every child gets
|
|
21
|
+
# `report` registered once per live session, which throws on the second.
|
|
22
|
+
- id: delegation
|
|
23
|
+
name: cordis:group
|
|
24
|
+
group: true
|
|
25
|
+
isolate:
|
|
26
|
+
workflowEngine: true
|
|
27
|
+
config:
|
|
28
|
+
- id: tool-subagent-control
|
|
29
|
+
name: '@deepseek-ai/dsh-tool-subagent-control'
|
|
30
|
+
|
|
31
|
+
- id: tool-subagent-list-agents
|
|
32
|
+
name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
|
|
33
|
+
|
|
34
|
+
- id: tool-subagent
|
|
35
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
36
|
+
config:
|
|
37
|
+
provider: spawn
|
|
38
|
+
toolName: subagent
|
|
39
|
+
backgroundMode: continuable
|
|
40
|
+
__subagentConfig__
|
|
41
|
+
|
|
42
|
+
- id: tool-subagent-fork
|
|
43
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
44
|
+
config:
|
|
45
|
+
provider: fork
|
|
46
|
+
toolName: subagent_fork
|
|
47
|
+
backgroundMode: continuable
|
|
48
|
+
__subagentConfig__
|
|
49
|
+
|
|
50
|
+
# Production dsh does not install these optional providers. An opting-in
|
|
51
|
+
# Profile mounts each provider once on the host plane; copy this preset,
|
|
52
|
+
# then remove `disabled` from the matching tool row.
|
|
53
|
+
- id: tool-subagent-codex
|
|
54
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
55
|
+
disabled: true
|
|
56
|
+
config:
|
|
57
|
+
provider: codex
|
|
58
|
+
toolName: subagent_codex
|
|
59
|
+
backgroundMode: one-shot
|
|
60
|
+
maxDepth: provider-managed
|
|
61
|
+
|
|
62
|
+
- id: tool-subagent-claude-code
|
|
63
|
+
name: '@deepseek-ai/dsh-tool-subagent'
|
|
64
|
+
disabled: true
|
|
65
|
+
config:
|
|
66
|
+
provider: claude-code
|
|
67
|
+
toolName: subagent_claude_code
|
|
68
|
+
backgroundMode: one-shot
|
|
69
|
+
maxDepth: provider-managed
|
|
70
|
+
|
|
71
|
+
- id: workflow-worker-thread
|
|
72
|
+
name: '@deepseek-ai/dsh-workflow-worker-thread'
|
|
73
|
+
config:
|
|
74
|
+
provider: spawn
|
|
75
|
+
|
|
76
|
+
- id: tool-workflow
|
|
77
|
+
name: '@deepseek-ai/dsh-tool-workflow'
|
|
78
|
+
|
|
79
|
+
- id: tool-ralph
|
|
80
|
+
name: '@deepseek-ai/dsh-tool-ralph'
|
|
81
|
+
config:
|
|
82
|
+
subagentProvider: spawn
|
|
83
|
+
maxRounds: 64
|
|
84
|
+
|
|
85
|
+
# ── remaining model-facing rows ─────────────────────────────────────────────
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# module: official-agent-instructions
|
|
2
|
+
# source: deepseek-harness official standard agent preset (agent-instructions)
|
|
3
|
+
|
|
4
|
+
- id: agent-instructions
|
|
5
|
+
name: '@deepseek-ai/dsh-agent-instructions'
|
|
6
|
+
config:
|
|
7
|
+
maxBytes: 65536
|
|
8
|
+
|
|
9
|
+
# ── shell ───────────────────────────────────────────────────────────────────
|
|
10
|
+
|
|
11
|
+
# `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
|
|
12
|
+
# publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
|
|
13
|
+
# the criterion for host-plane ownership — injection resolves before any session
|
|
14
|
+
# exists, so there is no agent to key by. Behind a preset realm those variables
|
|
15
|
+
# never reached the model's shell at all. Both shell tools consume the host
|
|
16
|
+
# registry from here; their executors (`bash-sandbox`/`pwsh-sandbox`) are
|
|
17
|
+
# host-plane too.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# module: official-persistent-shell
|
|
2
|
+
# source: deepseek-harness official minimal agent preset (persistent-shell)
|
|
3
|
+
|
|
4
|
+
- id: persistent-shell
|
|
5
|
+
name: cordis:group
|
|
6
|
+
group: true
|
|
7
|
+
isolate:
|
|
8
|
+
terminals: true
|
|
9
|
+
config:
|
|
10
|
+
- id: pty
|
|
11
|
+
name: '@deepseek-ai/dsh-terminal'
|
|
12
|
+
|
|
13
|
+
- id: terminal-bash
|
|
14
|
+
name: '@deepseek-ai/dsh-terminal-bash'
|
|
15
|
+
disabled: !!js process.platform === 'win32'
|
|
16
|
+
config:
|
|
17
|
+
timeoutMs: 300000
|
|
18
|
+
|
|
19
|
+
- id: persistent-bash
|
|
20
|
+
name: '@deepseek-ai/dsh-tool-bash-persistent'
|
|
21
|
+
disabled: !!js process.platform === 'win32'
|
|
22
|
+
config:
|
|
23
|
+
timeoutMs: 300000
|
|
24
|
+
description: |-
|
|
25
|
+
Run commands in a bash shell
|
|
26
|
+
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
|
|
27
|
+
* You don't have access to the internet via this tool.
|
|
28
|
+
* You do have access to a mirror of common linux and python packages via apt and pip.
|
|
29
|
+
* State is persistent across command calls and discussions with the user.
|
|
30
|
+
* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.
|
|
31
|
+
* Please avoid commands that may produce a very large amount of output.
|
|
32
|
+
* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.
|
|
33
|
+
|
|
34
|
+
- id: terminal-pwsh
|
|
35
|
+
name: '@deepseek-ai/dsh-terminal-bash'
|
|
36
|
+
disabled: !!js process.platform !== 'win32'
|
|
37
|
+
config:
|
|
38
|
+
shellDialect: pwsh
|
|
39
|
+
timeoutMs: 300000
|
|
40
|
+
|
|
41
|
+
- id: persistent-pwsh
|
|
42
|
+
name: '@deepseek-ai/dsh-tool-pwsh-persistent'
|
|
43
|
+
disabled: !!js process.platform !== 'win32'
|
|
44
|
+
config:
|
|
45
|
+
timeoutMs: 300000
|
|
46
|
+
description: |-
|
|
47
|
+
Run commands in a PowerShell shell
|
|
48
|
+
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
|
|
49
|
+
* You don't have access to the internet via this tool.
|
|
50
|
+
* State is persistent across command calls and discussions with the user.
|
|
51
|
+
* Use native Windows paths (C:\...) and $env:NAME variables; this is PowerShell, not bash.
|
|
52
|
+
* Please avoid commands that may produce a very large amount of output.
|
|
53
|
+
* Please run long lived commands in the background, e.g. 'Start-Job' or start a server with Start-Process.
|
|
54
|
+
|
|
55
|
+
# The bare local filesystem shadows the host's sandboxed provider only for this
|
|
56
|
+
# preset. The editor shares that realm and requires absolute paths.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# module: official-skill-filesystem-cordis
|
|
2
|
+
# source: deepseek-harness official cordis agent preset (skill-filesystem)
|
|
3
|
+
# 差异含 !!js 表达式(代码类),无法经 moduleConfigs 参数化(YAML tag 不保真),保留独立文件。
|
|
4
|
+
|
|
5
|
+
- id: skill-filesystem
|
|
6
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
7
|
+
config:
|
|
8
|
+
customSkillDirs:
|
|
9
|
+
- !!js "process.getBuiltinModule('node:url').fileURLToPath(new URL('skills/', baseUrl))"
|
|
10
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# module: official-tool-cordis
|
|
2
|
+
# source: deepseek-harness official cordis agent preset (tool-cordis)
|
|
3
|
+
|
|
4
|
+
- id: tool-cordis
|
|
5
|
+
name: '@deepseek-ai/dsh-tool-cordis'
|
|
6
|
+
|
|
7
|
+
# The composition-authoring skill travels with this preset rather than living
|
|
8
|
+
# in the user's skill root: it documents THIS deployment's two planes, and a
|
|
9
|
+
# preset is the unit that gets copied and edited. `baseUrl` is the preset's
|
|
10
|
+
# own directory, so the root resolves wherever the preset is installed.
|
|
11
|
+
# Both rows register into THIS preset's layer of the host skill registry, so
|
|
12
|
+
# they need no realm; the agent's merged catalog also carries whatever the
|
|
13
|
+
# deployment registered globally (repository plugins).
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# module: official-tool-skill
|
|
2
|
+
# source: deepseek-harness official standard agent preset (tool-skill)
|
|
3
|
+
|
|
4
|
+
- id: tool-skill
|
|
5
|
+
name: '@deepseek-ai/dsh-tool-skill'
|
|
6
|
+
|
|
7
|
+
# ── goals ───────────────────────────────────────────────────────────────────
|
|
8
|
+
|
|
9
|
+
# Only the model-facing tool. The goal SERVICE, its session driver, and the
|
|
10
|
+
# `/goal` command stay on the host plane: the Gateway serves the goal domain as
|
|
11
|
+
# Remote endpoints whose receiver comes from a generated descriptor, so it
|
|
12
|
+
# resolves `goals` on the host and an entry-local realm here would hide it. The
|
|
13
|
+
# registry is keyed by session anyway, so one host instance serves every
|
|
14
|
+
# session. What a preset chooses is whether its agent can call the goal tool.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# module: persistent-shell
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/minimal/agent.cordis.yml
|
|
3
|
+
# local patches: 2
|
|
4
|
+
|
|
5
|
+
- id: persistent-shell
|
|
6
|
+
name: cordis:group
|
|
7
|
+
group: true
|
|
8
|
+
disabled: !!js process.platform === 'win32'
|
|
9
|
+
isolate:
|
|
10
|
+
terminals: true
|
|
11
|
+
config:
|
|
12
|
+
- id: pty
|
|
13
|
+
name: '@deepseek-ai/dsh-terminal'
|
|
14
|
+
|
|
15
|
+
- id: terminal-bash
|
|
16
|
+
name: '@deepseek-ai/dsh-terminal-bash'
|
|
17
|
+
config:
|
|
18
|
+
shellPath: !!js "process.getBuiltinModule?.('node:fs')?.existsSync('/bin/bash') ? '/bin/bash' : 'bash'"
|
|
19
|
+
timeoutMs: 300000
|
|
20
|
+
|
|
21
|
+
- id: persistent-bash
|
|
22
|
+
name: '@deepseek-ai/dsh-tool-bash-persistent'
|
|
23
|
+
config:
|
|
24
|
+
timeoutMs: 300000
|
|
25
|
+
description: |-
|
|
26
|
+
Run commands in a bash shell
|
|
27
|
+
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
|
|
28
|
+
* You don't have access to the internet via this tool.
|
|
29
|
+
* You do have access to a mirror of common linux and python packages via apt and pip.
|
|
30
|
+
* State is persistent across command calls and discussions with the user.
|
|
31
|
+
* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.
|
|
32
|
+
* Please avoid commands that may produce a very large amount of output.
|
|
33
|
+
* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.
|
|
34
|
+
|
|
35
|
+
# The bare local filesystem shadows the host's sandboxed provider only for this
|
|
36
|
+
# preset. The editor shares that realm and requires absolute paths.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# module: persona
|
|
2
|
+
# source: deepseek-harness official standard agent preset (persona)
|
|
3
|
+
# persona 差异(creative/minimal/anchored)由 preset.yml moduleConfigs 参数传递。
|
|
4
|
+
|
|
5
|
+
- id: persona
|
|
6
|
+
name: '@deepseek-ai/dsh-persona'
|
|
7
|
+
config:
|
|
8
|
+
text: >-
|
|
9
|
+
You are a coding agent powered by the {{model}} model. Your working directory is {{cwd}}.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# module: planning
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 0
|
|
4
|
+
|
|
5
|
+
# ── plan mode ───────────────────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
# Plan state is per-agent by nature, so an entry-local realm is not a
|
|
8
|
+
# workaround here — it is the correct lifetime.
|
|
9
|
+
- id: planning
|
|
10
|
+
name: cordis:group
|
|
11
|
+
group: true
|
|
12
|
+
isolate:
|
|
13
|
+
planMode: true
|
|
14
|
+
config:
|
|
15
|
+
- id: plan-mode
|
|
16
|
+
name: '@deepseek-ai/dsh-plan-mode'
|
|
17
|
+
config:
|
|
18
|
+
section: |
|
|
19
|
+
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.
|
|
20
|
+
|
|
21
|
+
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.
|
|
22
|
+
|
|
23
|
+
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.
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
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.
|
|
28
|
+
|
|
29
|
+
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.
|
|
30
|
+
|
|
31
|
+
# ── compaction ──────────────────────────────────────────────────────────────
|
|
32
|
+
|
|
33
|
+
# `compaction-basic` reads `toolResultPrune` through `ctx.get`, so the pruner must
|
|
34
|
+
# share this realm rather than sit outside it.
|
|
35
|
+
#
|
|
36
|
+
# `tokenMeter` is deliberately NOT in this realm: the meter stays on the HOST
|
|
37
|
+
# plane, and the rows here resolve that one instance. It takes no configuration,
|
|
38
|
+
# keys every fold by Session, and owns the context-meter projection units the
|
|
39
|
+
# browser reads for every session — behind a realm those units would come and go
|
|
40
|
+
# with whichever presets happen to be mounted. What a preset chooses is whether
|
|
41
|
+
# its agent compacts at all, which is `compaction-basic` below.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# module: prompt-config-engine
|
|
2
|
+
# source: preset/engine/compositions/source/local/prompt-config-engine.yml (本地附加,非官方模块)
|
|
3
|
+
|
|
4
|
+
- id: prompt-config-engine
|
|
5
|
+
name: ./engine/prompt-config-engine.mjs
|
|
6
|
+
config:
|
|
7
|
+
configsDir: ../prompt-configs
|
|
8
|
+
|
|
9
|
+
# ── PTC run_code environment (prompt-tool local addition) ──────────────────
|
|
10
|
+
#
|
|
11
|
+
# Official Code Mode runs the model program in a worker with env={}; the
|
|
12
|
+
# program cannot read system environment. This row patches the reserved
|
|
13
|
+
# run_code transport so every program gets a frozen `env` global containing
|
|
14
|
+
# the whitelisted non-secret host variables below plus managed DSH_* facts
|
|
15
|
+
# and DSH_WORKSPACE. Add deployment-specific names to envKeys as needed.
|
|
16
|
+
# Credential-shaped names (KEY/PASSWORD/SECRET/TOKEN) are always rejected.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# module: run-code-env
|
|
2
|
+
# source: preset/engine/compositions/source/local/run-code-env.yml (本地附加,非官方模块)
|
|
3
|
+
|
|
4
|
+
- id: run-code-env
|
|
5
|
+
name: ./engine/run-code-env.mjs
|
|
6
|
+
config:
|
|
7
|
+
enabled: true
|
|
8
|
+
envKeys: [PATH, PATHEXT, HOME, USERPROFILE, USERNAME, COMPUTERNAME, OS, TEMP, TMP, SystemRoot, ProgramFiles, ProgramFiles(x86), LOCALAPPDATA, APPDATA]
|
|
9
|
+
|
|
10
|
+
# ── identity ────────────────────────────────────────────────────────────────
|
|
11
|
+
|
|
12
|
+
# Keep this text byte-identical to the Minimal preset. `complete` prevents the
|
|
13
|
+
# Harness identity and per-tool guidance from changing the system prompt, while
|
|
14
|
+
# runtime-context suppression leaves task and repository rules to user messages
|
|
15
|
+
# and explicit file reads. Tool schemas and their runtime enforcement remain.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# module: skill-filesystem
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 0
|
|
4
|
+
|
|
5
|
+
# ── skills ──────────────────────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
# The skill REGISTRY lives in the host composition and is layered per scope:
|
|
8
|
+
# these rows register into THIS preset's layer of it, so they need no realm.
|
|
9
|
+
# `skill-filesystem` contributes local-root discovery for agents on this preset, and
|
|
10
|
+
# `tool-skill` gives them the catalog and loader; the merged catalog also
|
|
11
|
+
# carries whatever the deployment registered globally (repository plugins).
|
|
12
|
+
- id: skill-filesystem
|
|
13
|
+
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# module: skill-search
|
|
2
|
+
# source: preset/engine/compositions/source/local/skill-search.yml (本地附加,非官方模块)
|
|
3
|
+
|
|
4
|
+
- id: skill-search
|
|
5
|
+
name: ./engine/skill-search.mjs
|
|
6
|
+
|
|
7
|
+
# ── goals ───────────────────────────────────────────────────────────────────
|
|
8
|
+
|
|
9
|
+
# Only the model-facing tool. The goal SERVICE, its session driver, and the
|
|
10
|
+
# `/goal` command stay on the host plane: the Gateway serves the goal domain as
|
|
11
|
+
# Remote endpoints whose receiver comes from a generated descriptor, so it
|
|
12
|
+
# resolves `goals` on the host and an entry-local realm here would hide it. The
|
|
13
|
+
# registry is keyed by session anyway, so one host instance serves every
|
|
14
|
+
# session. What a preset chooses is whether its agent can call the goal tool.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# module: str-replace-editor
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/minimal/agent.cordis.yml
|
|
3
|
+
# 官方 minimal 内置工具(filesystem group 内的 str-replace-editor 行)拆出为独立模块:
|
|
4
|
+
# 复用宿主 sandbox 的 ctx.fs,不挂 fs-local 裸文件系统。
|
|
5
|
+
# maxOutputChars 参数化:params.strReplaceEditorMaxOutputChars(默认官方值 16000)。
|
|
6
|
+
|
|
7
|
+
- id: str-replace-editor
|
|
8
|
+
name: '@deepseek-ai/dsh-tool-str-replace-editor'
|
|
9
|
+
config:
|
|
10
|
+
maxOutputChars: __strReplaceEditorMaxOutputChars__
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# module: tool-ask-user
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 0
|
|
4
|
+
|
|
5
|
+
# ── remaining model-facing rows ─────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
- id: tool-ask-user
|
|
8
|
+
name: '@deepseek-ai/dsh-tool-ask-user'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# module: tool-bash
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 1
|
|
4
|
+
|
|
5
|
+
# ── shell ───────────────────────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
# `shell-env` stays in the HOST composition: `apps/cli/src/web.ts` injects it to
|
|
8
|
+
# publish `DSH_WEB_URL`/`DSH_WEB_MODE`, and a host row that injects a service is
|
|
9
|
+
# the criterion for host-plane ownership — injection resolves before any session
|
|
10
|
+
# exists, so there is no agent to key by. Behind a preset realm those variables
|
|
11
|
+
# never reached the model's shell at all. Both shell tools consume the host
|
|
12
|
+
# registry from here; their executors (`bash-sandbox`/`pwsh-sandbox`) are
|
|
13
|
+
# host-plane too.
|
|
14
|
+
- id: tool-bash
|
|
15
|
+
name: '@deepseek-ai/dsh-tool-bash'
|
|
16
|
+
disabled: true
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# module: tool-bootstrap
|
|
2
|
+
# source: preset/engine/compositions/source/local/tool-bootstrap.yml (本地附加,非官方模块)
|
|
3
|
+
|
|
4
|
+
- id: tool-bootstrap
|
|
5
|
+
name: ./engine/tool-bootstrap.mjs
|
|
6
|
+
config:
|
|
7
|
+
bootstrapTools: [bash, str_replace_editor]
|
|
8
|
+
promoteOn: either
|
|
9
|
+
includeSubagents: false
|
|
10
|
+
usePtcMode: __usePtcMode__
|
|
11
|
+
__bootstrapMaxTokens__
|
|
12
|
+
# Post-compaction core work set: the model is mid-task and needs to keep
|
|
13
|
+
# working, but faces a small catalog instead of the full Standard set.
|
|
14
|
+
compactionTools: [read, write, edit, glob, grep, todo_write, ask_user_question]
|
|
15
|
+
|
|
16
|
+
# ── prompt-tool 模板自带行(由 write-preset 按 manifest 变量物化) ─────────────
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# module: tool-filter
|
|
2
|
+
# source: 本地附加(本项目主会话工具过滤;非官方模块)
|
|
3
|
+
# 主会话常驻工具白名单/黑名单:作用于任意注册工具(含第三方插件工具)。
|
|
4
|
+
# allow 非空 = 白名单(只保留列表内工具);deny 非空 = 黑名单(移除列表内工具);
|
|
5
|
+
# 两者都空 = 不过滤(官方默认)。includeSubagents=true 时子代理同样过滤。
|
|
6
|
+
|
|
7
|
+
- id: tool-filter
|
|
8
|
+
name: ./engine/tool-filter.mjs
|
|
9
|
+
config:
|
|
10
|
+
allow: __mainToolFilterAllow__
|
|
11
|
+
deny: __mainToolFilterDeny__
|
|
12
|
+
includeSubagents: __mainToolFilterSubagents__
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# module: tool-fs-search
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 0
|
|
4
|
+
|
|
5
|
+
- id: tool-fs-search
|
|
6
|
+
name: '@deepseek-ai/dsh-tool-fs-search'
|
|
7
|
+
config:
|
|
8
|
+
sampleOverCapGlobResults: false
|
|
9
|
+
|
|
10
|
+
# ── background jobs ────────────────────────────────────────────────────────
|
|
11
|
+
|
|
12
|
+
# Only the model-facing controls. The task REGISTRY stays on the host plane:
|
|
13
|
+
# its producers sit outside any realm this file could put it in — `tool-bash`
|
|
14
|
+
# above resolves it with `ctx.get`, and an entry-local realm here is invisible
|
|
15
|
+
# to every sibling row, so `run_in_background` would answer "background jobs
|
|
16
|
+
# unavailable" while these controls sat in the catalog. The registry is keyed by
|
|
17
|
+
# owning agent anyway, so one host instance serves every session. What a preset
|
|
18
|
+
# chooses is whether its agent can collect and stop background work at all.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# module: tool-fs
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 0
|
|
4
|
+
|
|
5
|
+
# ── filesystem ──────────────────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
# Both register into the host `tools` registry and provide nothing, so
|
|
8
|
+
# they need no realm. The `fs` service and its policy stay in the host.
|
|
9
|
+
- id: tool-fs
|
|
10
|
+
name: '@deepseek-ai/dsh-tool-fs'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# module: tool-goal
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 0
|
|
4
|
+
|
|
5
|
+
# ── goals ───────────────────────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
# Only the model-facing tool. The goal SERVICE, its session driver, and the
|
|
8
|
+
# `/goal` command stay on the host plane: the Gateway serves the goal domain as
|
|
9
|
+
# Remote endpoints whose receiver comes from a generated descriptor, so it
|
|
10
|
+
# resolves `goals` on the host and an entry-local realm here would hide it. The
|
|
11
|
+
# registry is keyed by session anyway, so one host instance serves every
|
|
12
|
+
# session. What a preset chooses is whether its agent can call the goal tool.
|
|
13
|
+
- id: tool-goal
|
|
14
|
+
name: '@deepseek-ai/dsh-tool-goal'
|
|
15
|
+
|
|
16
|
+
# ── plan mode ───────────────────────────────────────────────────────────────
|
|
17
|
+
|
|
18
|
+
# Plan state is per-agent by nature, so an entry-local realm is not a
|
|
19
|
+
# workaround here — it is the correct lifetime.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# module: tool-jobs
|
|
2
|
+
# source: E:\Documents\GitHub\deepseek-harness/apps/cli/config/agent-presets/standard/agent.cordis.yml
|
|
3
|
+
# local patches: 0
|
|
4
|
+
|
|
5
|
+
# ── background jobs ────────────────────────────────────────────────────────
|
|
6
|
+
|
|
7
|
+
# Only the model-facing controls. The task REGISTRY stays on the host plane:
|
|
8
|
+
# its producers sit outside any realm this file could put it in — `tool-bash`
|
|
9
|
+
# above resolves it with `ctx.get`, and an entry-local realm here is invisible
|
|
10
|
+
# to every sibling row, so `run_in_background` would answer "background jobs
|
|
11
|
+
# unavailable" while these controls sat in the catalog. The registry is keyed by
|
|
12
|
+
# owning agent anyway, so one host instance serves every session. What a preset
|
|
13
|
+
# chooses is whether its agent can collect and stop background work at all.
|
|
14
|
+
- id: tool-jobs
|
|
15
|
+
name: '@deepseek-ai/dsh-tool-jobs'
|
|
16
|
+
|
|
17
|
+
# ── skills ──────────────────────────────────────────────────────────────────
|
|
18
|
+
|
|
19
|
+
# The skill REGISTRY lives in the host composition and is layered per scope:
|
|
20
|
+
# these rows register into THIS preset's layer of it, so they need no realm.
|
|
21
|
+
# `skill-filesystem` contributes local-root discovery for agents on this preset, and
|
|
22
|
+
# `tool-skill` gives them the catalog and loader; the merged catalog also
|
|
23
|
+
# carries whatever the deployment registered globally (repository plugins).
|