返回源码地图

packages/bundle/web-app/presets/cordis.patch.yml

main snapshot · da00f7f5358f · 正文引用章节 04;完整原文可核对,不声称全文件人工逐行审计

完整原文供逐行核对;页面收录不代表每行都经过人工语义审核。MIT 许可见 许可证。

1# Agent preset cordis: one `@deepseek-ai/dsh-agent-preset` declaration inserted
2# after the web patch. Edits saved from the Web editor override this row's
3# `config.plugins` by id from the profile patch.
4- insert:
5 - id: preset-cordis
6 name: '@deepseek-ai/dsh-agent-preset'
7 config:
8 id: cordis
9 order: 4
10 plugins:
11 # Same persona as `standard`: tool descriptions and the skill catalog carry
12 # the operating detail, and the skills own the preset-authoring rules.
13 - id: persona
14 name: '@deepseek-ai/dsh-persona'
15 config:
16 suffix: Your working directory is {{cwd}}.
17 prefix: >-
18 You are a coding agent powered by the {{model}} model.
19 - id: agent-instructions
20 name: '@deepseek-ai/dsh-agent-instructions'
21 config:
22 maxBytes: 65536
23 - id: time-context
24 name: '@deepseek-ai/dsh-time-context'
25 - id: tool-bash
26 name: '@deepseek-ai/dsh-tool-bash'
27 disabled: !!js process.platform === 'win32'
28 - id: tool-pwsh
29 name: '@deepseek-ai/dsh-tool-pwsh'
30 disabled: !!js process.platform !== 'win32'
31 - id: tool-fs
32 name: '@deepseek-ai/dsh-tool-fs'
33 - id: tool-fs-search
34 name: '@deepseek-ai/dsh-tool-fs-search'
35 config:
36 sampleOverCapGlobResults: false
37 - id: tool-jobs
38 name: '@deepseek-ai/dsh-tool-jobs'
39 - id: tool-schedule
40 name: '@deepseek-ai/dsh-tool-schedule'
41 - id: command-goal
42 name: '@deepseek-ai/dsh-command-goal'
43 - id: tool-goal
44 name: '@deepseek-ai/dsh-tool-goal'
45 - id: planning
46 name: cordis:group
47 group: true
48 isolate:
49 planMode: true
50 config:
51 - id: plan-mode
52 name: '@deepseek-ai/dsh-plan-mode'
53 config:
54 section: |
55 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.
56
57 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.
58
59 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.
60
61 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.
62
63 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.
64
65 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.
66 - id: compaction
67 name: cordis:group
68 group: true
69 isolate:
70 compaction: true
71 toolResultPruner: true
72 config:
73 - id: compaction-basic
74 name: '@deepseek-ai/dsh-compaction-basic'
75 - id: command-compact
76 name: '@deepseek-ai/dsh-command-compact'
77 - id: tool-result-pruner
78 name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
79 config:
80 thresholdChars: 8192
81 headChars: 4096
82 tailChars: 1024
83 - id: delegation
84 name: cordis:group
85 group: true
86 isolate:
87 workflowEngine: true
88 config:
89 - id: tool-subagent-control
90 name: '@deepseek-ai/dsh-tool-subagent-control'
91 - id: tool-subagent-list-agents
92 name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
93 - id: tool-subagent
94 name: '@deepseek-ai/dsh-tool-subagent'
95 config:
96 provider: spawn
97 toolName: subagent
98 modelSelectionSettings: true
99 backgroundMode: continuable
100 toolFilter:
101 deny:
102 - schedule_create
103 - schedule_delete
104 - schedule_list
105 - schedule_update
106 - id: tool-subagent-fork
107 name: '@deepseek-ai/dsh-tool-subagent'
108 config:
109 provider: fork
110 toolName: subagent_fork
111 backgroundMode: continuable
112 toolFilter:
113 deny:
114 - schedule_create
115 - schedule_delete
116 - schedule_list
117 - schedule_update
118 - id: tool-subagent-codex
119 name: '@deepseek-ai/dsh-tool-subagent'
120 disabled: true
121 config:
122 provider: codex
123 toolName: subagent_codex
124 backgroundMode: one-shot
125 maxDepth: provider-managed
126 - id: tool-subagent-claude-code
127 name: '@deepseek-ai/dsh-tool-subagent'
128 disabled: true
129 config:
130 provider: claude-code
131 toolName: subagent_claude_code
132 backgroundMode: one-shot
133 maxDepth: provider-managed
134 - id: workflow-ptc
135 name: '@deepseek-ai/dsh-workflow-ptc'
136 config:
137 provider: spawn
138 - id: tool-workflow
139 name: '@deepseek-ai/dsh-tool-workflow'
140 - id: tool-ralph
141 name: '@deepseek-ai/dsh-tool-ralph'
142 disabled: true
143 config:
144 subagentProvider: spawn
145 maxRounds: 64
146 - id: tool-ask-user
147 name: '@deepseek-ai/dsh-tool-ask-user'
148 - id: tool-todo
149 name: '@deepseek-ai/dsh-tool-todo'
150 config:
151 allowParallelInProgress: true
152 - id: tool-web
153 name: '@deepseek-ai/dsh-tool-web'
154 config:
155 fetch: true
156 searchTimeoutMs: 60000
157 - id: tool-cordis
158 name: '@deepseek-ai/dsh-tool-cordis'
159 - id: skill-filesystem
160 name: '@deepseek-ai/dsh-skill-filesystem'
161 config:
162 customSkillDirs:
163 - !!js process.getBuiltinModule('node:path').join(process.getBuiltinModule('node:path').dirname(process.getBuiltinModule('node:module').createRequire(baseUrl).resolve('@deepseek-ai/dsh-agent-preset/package.json')), 'skills')
164 - id: tool-skill
165 name: '@deepseek-ai/dsh-tool-skill'
166 - id: present
167 name: '@deepseek-ai/dsh-tool-present'
168 - id: tool-plugin-manager
169 name: '@deepseek-ai/dsh-plugin-manager/tools'
170 disabled: !!js "!ctx.get('profileContext')"