返回 CodeWhale
standard.patch.yml
根目录 / scripts / fixtures / dsh-web-app / presets / standard.patch.yml
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: tool-bash
21 name: '@deepseek-ai/dsh-tool-bash'
22 disabled: !!js process.platform === 'win32'
23 - id: tool-pwsh
24 name: '@deepseek-ai/dsh-tool-pwsh'
25 disabled: !!js process.platform !== 'win32'
26 - id: tool-fs
27 name: '@deepseek-ai/dsh-tool-fs'
28 - id: tool-fs-search
29 name: '@deepseek-ai/dsh-tool-fs-search'
30 config:
31 sampleOverCapGlobResults: false
32 - id: tool-jobs
33 name: '@deepseek-ai/dsh-tool-jobs'
34 - id: skill-filesystem
35 name: '@deepseek-ai/dsh-skill-filesystem'
36 - id: tool-skill
37 name: '@deepseek-ai/dsh-tool-skill'
38 - id: command-goal
39 name: '@deepseek-ai/dsh-command-goal'
40 - id: tool-goal
41 name: '@deepseek-ai/dsh-tool-goal'
42 - id: planning
43 name: cordis:group
44 group: true
45 isolate:
46 planMode: true
47 config:
48 - id: plan-mode
49 name: '@deepseek-ai/dsh-plan-mode'
50 config:
51 section: |
52 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.
53
54 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.
55
56 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.
57
58 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.
59
60 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.
61
62 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.
63 - id: compaction
64 name: cordis:group
65 group: true
66 isolate:
67 compaction: true
68 toolResultPruner: true
69 config:
70 - id: compaction-basic
71 name: '@deepseek-ai/dsh-compaction-basic'
72 - id: command-compact
73 name: '@deepseek-ai/dsh-command-compact'
74 - id: tool-result-pruner
75 name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
76 config:
77 thresholdChars: 8192
78 headChars: 4096
79 tailChars: 1024
80 - id: delegation
81 name: cordis:group
82 group: true
83 isolate:
84 workflowEngine: true
85 config:
86 - id: tool-subagent-control
87 name: '@deepseek-ai/dsh-tool-subagent-control'
88 - id: tool-subagent-list-agents
89 name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
90 - id: tool-subagent
91 name: '@deepseek-ai/dsh-tool-subagent'
92 config:
93 provider: spawn
94 toolName: subagent
95 modelSelectionSettings: true
96 backgroundMode: continuable
97 - id: tool-subagent-fork
98 name: '@deepseek-ai/dsh-tool-subagent'
99 config:
100 provider: fork
101 toolName: subagent_fork
102 backgroundMode: continuable
103 - id: tool-subagent-codex
104 name: '@deepseek-ai/dsh-tool-subagent'
105 disabled: true
106 config:
107 provider: codex
108 toolName: subagent_codex
109 backgroundMode: one-shot
110 maxDepth: provider-managed
111 - id: tool-subagent-claude-code
112 name: '@deepseek-ai/dsh-tool-subagent'
113 disabled: true
114 config:
115 provider: claude-code
116 toolName: subagent_claude_code
117 backgroundMode: one-shot
118 maxDepth: provider-managed
119 - id: workflow-ptc
120 name: '@deepseek-ai/dsh-workflow-ptc'
121 config:
122 provider: spawn
123 - id: tool-workflow
124 name: '@deepseek-ai/dsh-tool-workflow'
125 - id: tool-ralph
126 name: '@deepseek-ai/dsh-tool-ralph'
127 disabled: true
128 config:
129 subagentProvider: spawn
130 maxRounds: 64
131 - id: tool-ask-user
132 name: '@deepseek-ai/dsh-tool-ask-user'
133 - id: tool-todo
134 name: '@deepseek-ai/dsh-tool-todo'
135 config:
136 allowParallelInProgress: true
137 - id: tool-web
138 name: '@deepseek-ai/dsh-tool-web'
139 config:
140 fetch: true
141 searchTimeoutMs: 60000
142 - id: present
143 name: '@deepseek-ai/dsh-tool-present'
144 - id: tool-plugin-manager
145 name: '@deepseek-ai/dsh-plugin-manager/tools'
146 disabled: true
147
147 lines YAML