返回源码地图

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

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

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

1# Agent preset standard: 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-standard
6 name: '@deepseek-ai/dsh-agent-preset'
7 config:
8 id: standard
9 order: 1
10 plugins:
11 - id: persona
12 name: '@deepseek-ai/dsh-persona'
13 config:
14 suffix: Your working directory is {{cwd}}.
15 prefix: You are a coding agent powered by the {{model}} model.
16 - id: agent-instructions
17 name: '@deepseek-ai/dsh-agent-instructions'
18 config:
19 maxBytes: 65536
20 - id: time-context
21 name: '@deepseek-ai/dsh-time-context'
22 - id: tool-bash
23 name: '@deepseek-ai/dsh-tool-bash'
24 disabled: !!js process.platform === 'win32'
25 - id: tool-pwsh
26 name: '@deepseek-ai/dsh-tool-pwsh'
27 disabled: !!js process.platform !== 'win32'
28 - id: tool-fs
29 name: '@deepseek-ai/dsh-tool-fs'
30 - id: tool-fs-search
31 name: '@deepseek-ai/dsh-tool-fs-search'
32 config:
33 sampleOverCapGlobResults: false
34 - id: tool-jobs
35 name: '@deepseek-ai/dsh-tool-jobs'
36 - id: tool-schedule
37 name: '@deepseek-ai/dsh-tool-schedule'
38 - id: skill-filesystem
39 name: '@deepseek-ai/dsh-skill-filesystem'
40 - id: tool-skill
41 name: '@deepseek-ai/dsh-tool-skill'
42 - id: command-goal
43 name: '@deepseek-ai/dsh-command-goal'
44 - id: tool-goal
45 name: '@deepseek-ai/dsh-tool-goal'
46 - id: planning
47 name: cordis:group
48 group: true
49 isolate:
50 planMode: true
51 config:
52 - id: plan-mode
53 name: '@deepseek-ai/dsh-plan-mode'
54 config:
55 section: |
56 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.
57
58 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.
59
60 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.
61
62 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.
63
64 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.
65
66 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.
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 - id: command-compact
77 name: '@deepseek-ai/dsh-command-compact'
78 - id: tool-result-pruner
79 name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
80 config:
81 thresholdChars: 8192
82 headChars: 4096
83 tailChars: 1024
84 - id: delegation
85 name: cordis:group
86 group: true
87 isolate:
88 workflowEngine: true
89 config:
90 - id: tool-subagent-control
91 name: '@deepseek-ai/dsh-tool-subagent-control'
92 - id: tool-subagent-list-agents
93 name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
94 - id: tool-subagent
95 name: '@deepseek-ai/dsh-tool-subagent'
96 config:
97 provider: spawn
98 toolName: subagent
99 modelSelectionSettings: true
100 backgroundMode: continuable
101 toolFilter:
102 deny:
103 - schedule_create
104 - schedule_delete
105 - schedule_list
106 - schedule_update
107 - id: tool-subagent-fork
108 name: '@deepseek-ai/dsh-tool-subagent'
109 config:
110 provider: fork
111 toolName: subagent_fork
112 backgroundMode: continuable
113 toolFilter:
114 deny:
115 - schedule_create
116 - schedule_delete
117 - schedule_list
118 - schedule_update
119 - id: tool-subagent-codex
120 name: '@deepseek-ai/dsh-tool-subagent'
121 disabled: true
122 config:
123 provider: codex
124 toolName: subagent_codex
125 backgroundMode: one-shot
126 maxDepth: provider-managed
127 - id: tool-subagent-claude-code
128 name: '@deepseek-ai/dsh-tool-subagent'
129 disabled: true
130 config:
131 provider: claude-code
132 toolName: subagent_claude_code
133 backgroundMode: one-shot
134 maxDepth: provider-managed
135 - id: workflow-ptc
136 name: '@deepseek-ai/dsh-workflow-ptc'
137 config:
138 provider: spawn
139 - id: tool-workflow
140 name: '@deepseek-ai/dsh-tool-workflow'
141 - id: tool-ralph
142 name: '@deepseek-ai/dsh-tool-ralph'
143 disabled: true
144 config:
145 subagentProvider: spawn
146 maxRounds: 64
147 - id: tool-ask-user
148 name: '@deepseek-ai/dsh-tool-ask-user'
149 - id: tool-todo
150 name: '@deepseek-ai/dsh-tool-todo'
151 config:
152 allowParallelInProgress: true
153 - id: tool-web
154 name: '@deepseek-ai/dsh-tool-web'
155 config:
156 fetch: true
157 searchTimeoutMs: 60000
158 - id: present
159 name: '@deepseek-ai/dsh-tool-present'
160 - id: tool-plugin-manager
161 name: '@deepseek-ai/dsh-plugin-manager/tools'
162 disabled: true