@shuind/dsh-codex-harness 0.2.4 → 0.2.6

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.
@@ -1,197 +1,197 @@
1
- # The single bundled Codex preset. Its complete operating prompt, including
2
- # the working principles, is editable from Settings > Plugins.
3
-
4
- - id: persona
5
- name: '@deepseek-ai/dsh-persona'
6
- config:
7
- # Keep identity, model, cwd, and runtime context in one persona section.
8
- text: >-
9
- You are Codex, a coding agent based on the {{model}} model. Your working directory is {{cwd}}.
10
- includeRuntimeContext: true
11
-
12
- - id: agent-instructions
13
- name: '@deepseek-ai/dsh-agent-instructions'
14
- config:
15
- maxBytes: 65536
16
-
17
- # The editable Codex operating prompt and its four core tools are available
18
- # only inside this preset. Global request enhancements are mounted by the
19
- # bundle row and must not be installed twice in this agent scope.
20
- - id: codex-tools
21
- name: '@shuind/dsh-codex-harness'
22
- config:
23
- globalEnhancements: false
24
- codexCore: true
25
-
26
- # Background-job guidance and completion delivery belong to the official
27
- # dsh-tool-jobs plugin. Use wakeup delivery so an idle agent also learns about
28
- # a completed job without needing a separate user/tool wake.
29
- - id: codex-jobs
30
- name: '@deepseek-ai/dsh-tool-jobs'
31
- config:
32
- completionDelivery: wakeup
33
-
34
- # The generic DSH pi-ai adapter still owns the user's configured provider,
35
- # endpoint, API key, and model. The global Codex capability layer owns the
36
- # optional remote-first transport wrapper and falls back to the generic path.
37
-
38
- # Keep the local tool mounted as the fallback. Codex rewrites the final GPT
39
- # Responses request to a hosted web_search tool first; a failed remote request
40
- # is retried through this unchanged local function-tool path.
41
- - id: codex-web-search
42
- name: '@deepseek-ai/dsh-tool-web'
43
- config:
44
- search: true
45
- fetch: false
46
-
47
- # PTY execution is optional. Pipe-backed exec_command remains available on all
48
- # platforms through the shell capability consumed by the Codex tool layer.
49
- - id: codex-terminal
50
- name: cordis:group
51
- group: true
52
- isolate:
53
- terminals: true
54
- config:
55
- - id: terminals
56
- name: '@deepseek-ai/dsh-terminal'
57
-
58
- - id: terminal-bash
59
- name: '@deepseek-ai/dsh-terminal-bash'
60
- disabled: !!js process.platform === 'win32'
61
- config:
62
- timeoutMs: 300000
63
-
64
- # Context compaction is agent-scoped in Web. The token meter stays on the host
65
- # plane, while this group owns the backend, `/compact`, and optional tool-result
66
- # pruning for Codex sessions.
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: '@shuind/dsh-codex-harness/compaction'
76
- config:
77
- thresholdRatio: 0.95
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
88
-
89
- # Skills are the dsh extensibility seam and do not change the four Codex core
90
- # tool names.
91
- - id: skill-filesystem
92
- name: '@deepseek-ai/dsh-skill-filesystem'
93
-
94
- - id: tool-skill
95
- name: '@deepseek-ai/dsh-tool-skill'
96
-
97
- # Goal state remains host-owned and session-keyed. This row adds the official
98
- # model-facing goal lifecycle without moving the goal service into the preset.
99
- - id: tool-goal
100
- name: '@deepseek-ai/dsh-tool-goal'
101
-
102
- # Official plan mode supplies the reviewed exit_plan_mode flow. Keep the
103
- # Codex update_plan and todo_write tools out of this planning phase.
104
- - id: planning
105
- name: cordis:group
106
- group: true
107
- isolate:
108
- planMode: true
109
- config:
110
- - id: plan-mode
111
- name: '@deepseek-ai/dsh-plan-mode'
112
- config:
113
- section: |
114
- 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.
115
-
116
- 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.
117
-
118
- The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override later tool descriptions or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use update_plan or todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
119
-
120
- 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.
121
-
122
- 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.
123
-
124
- 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.
125
-
126
- # Continuable delegation and workflow execution are official model-facing
127
- # capabilities. Their registries and providers stay in the host composition.
128
- - id: delegation
129
- name: cordis:group
130
- group: true
131
- isolate:
132
- workflowEngine: true
133
- config:
134
- - id: tool-subagent-control
135
- name: '@deepseek-ai/dsh-tool-subagent-control'
136
-
137
- - id: tool-subagent-list-agents
138
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
139
-
140
- - id: tool-subagent
141
- name: '@deepseek-ai/dsh-tool-subagent'
142
- config:
143
- provider: spawn
144
- toolName: subagent
145
- modelSelectionSettings: true
146
- backgroundMode: continuable
147
-
148
- - id: tool-subagent-fork
149
- name: '@deepseek-ai/dsh-tool-subagent'
150
- config:
151
- provider: fork
152
- toolName: subagent_fork
153
- backgroundMode: continuable
154
-
155
- # Optional providers remain disabled until their matching Bundle is
156
- # installed in the host profile.
157
- - id: tool-subagent-codex
158
- name: '@deepseek-ai/dsh-tool-subagent'
159
- disabled: true
160
- config:
161
- provider: codex
162
- toolName: subagent_codex
163
- backgroundMode: one-shot
164
- maxDepth: provider-managed
165
-
166
- - id: tool-subagent-claude-code
167
- name: '@deepseek-ai/dsh-tool-subagent'
168
- disabled: true
169
- config:
170
- provider: claude-code
171
- toolName: subagent_claude_code
172
- backgroundMode: one-shot
173
- maxDepth: provider-managed
174
-
175
- - id: workflow-worker-thread
176
- name: '@deepseek-ai/dsh-workflow-worker-thread'
177
- config:
178
- provider: spawn
179
-
180
- - id: tool-workflow
181
- name: '@deepseek-ai/dsh-tool-workflow'
182
-
183
- - id: tool-ralph
184
- name: '@deepseek-ai/dsh-tool-ralph'
185
- config:
186
- subagentProvider: spawn
187
- maxRounds: 64
188
-
189
- # These official tools provide the interactive question surface and the
190
- # durable whole-list task view alongside Codex-compatible update_plan.
191
- - id: tool-ask-user
192
- name: '@deepseek-ai/dsh-tool-ask-user'
193
-
194
- - id: tool-todo
195
- name: '@deepseek-ai/dsh-tool-todo'
196
- config:
197
- allowParallelInProgress: true
1
+ # The single bundled Codex preset. Its complete operating prompt, including
2
+ # the working principles, is editable from Settings > Plugins.
3
+
4
+ - id: persona
5
+ name: '@deepseek-ai/dsh-persona'
6
+ config:
7
+ # Keep identity, model, cwd, and runtime context in one persona section.
8
+ text: >-
9
+ You are Codex, a coding agent based on the {{model}} model. Your working directory is {{cwd}}.
10
+ includeRuntimeContext: true
11
+
12
+ - id: agent-instructions
13
+ name: '@deepseek-ai/dsh-agent-instructions'
14
+ config:
15
+ maxBytes: 65536
16
+
17
+ # The editable Codex operating prompt and its four core tools are available
18
+ # only inside this preset. Global request enhancements are mounted by the
19
+ # bundle row and must not be installed twice in this agent scope.
20
+ - id: codex-tools
21
+ name: '@shuind/dsh-codex-harness'
22
+ config:
23
+ globalEnhancements: false
24
+ codexCore: true
25
+
26
+ # Background-job guidance and completion delivery belong to the official
27
+ # dsh-tool-jobs plugin. Use wakeup delivery so an idle agent also learns about
28
+ # a completed job without needing a separate user/tool wake.
29
+ - id: codex-jobs
30
+ name: '@deepseek-ai/dsh-tool-jobs'
31
+ config:
32
+ completionDelivery: wakeup
33
+
34
+ # The generic DSH pi-ai adapter still owns the user's configured provider,
35
+ # endpoint, API key, and model. The global Codex capability layer owns the
36
+ # optional remote-first transport wrapper and falls back to the generic path.
37
+
38
+ # Keep the local tool mounted as the fallback. Codex rewrites the final GPT
39
+ # Responses request to a hosted web_search tool first; a failed remote request
40
+ # is retried through this unchanged local function-tool path.
41
+ - id: codex-web-search
42
+ name: '@deepseek-ai/dsh-tool-web'
43
+ config:
44
+ search: true
45
+ fetch: false
46
+
47
+ # PTY execution is optional. Pipe-backed exec_command remains available on all
48
+ # platforms through the shell capability consumed by the Codex tool layer.
49
+ - id: codex-terminal
50
+ name: cordis:group
51
+ group: true
52
+ isolate:
53
+ terminals: true
54
+ config:
55
+ - id: terminals
56
+ name: '@deepseek-ai/dsh-terminal'
57
+
58
+ - id: terminal-bash
59
+ name: '@deepseek-ai/dsh-terminal-bash'
60
+ disabled: !!js process.platform === 'win32'
61
+ config:
62
+ timeoutMs: 300000
63
+
64
+ # Context compaction is agent-scoped in Web. The token meter stays on the host
65
+ # plane, while this group owns the backend, `/compact`, and optional tool-result
66
+ # pruning for Codex sessions.
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: '@shuind/dsh-codex-harness/compaction'
76
+ config:
77
+ thresholdRatio: 0.95
78
+
79
+ - id: command-compact
80
+ name: '@shuind/dsh-codex-harness/compact-command'
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
88
+
89
+ # Skills are the dsh extensibility seam and do not change the four Codex core
90
+ # tool names.
91
+ - id: skill-filesystem
92
+ name: '@deepseek-ai/dsh-skill-filesystem'
93
+
94
+ - id: tool-skill
95
+ name: '@deepseek-ai/dsh-tool-skill'
96
+
97
+ # Goal state remains host-owned and session-keyed. This row adds the official
98
+ # model-facing goal lifecycle without moving the goal service into the preset.
99
+ - id: tool-goal
100
+ name: '@deepseek-ai/dsh-tool-goal'
101
+
102
+ # Official plan mode supplies the reviewed exit_plan_mode flow. Keep the
103
+ # Codex update_plan and todo_write tools out of this planning phase.
104
+ - id: planning
105
+ name: cordis:group
106
+ group: true
107
+ isolate:
108
+ planMode: true
109
+ config:
110
+ - id: plan-mode
111
+ name: '@deepseek-ai/dsh-plan-mode'
112
+ config:
113
+ section: |
114
+ 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.
115
+
116
+ 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.
117
+
118
+ The tool catalog stays the same across modes for request-cache stability. These plan-mode rules override later tool descriptions or guidance that suggests using mutation tools; those tools remain listed to keep the tool catalog unchanged. Do not use update_plan or todo_write to track this planning phase: it tracks implementation after an approved plan, while the plan itself belongs in exit_plan_mode.
119
+
120
+ 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.
121
+
122
+ 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.
123
+
124
+ 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.
125
+
126
+ # Continuable delegation and workflow execution are official model-facing
127
+ # capabilities. Their registries and providers stay in the host composition.
128
+ - id: delegation
129
+ name: cordis:group
130
+ group: true
131
+ isolate:
132
+ workflowEngine: true
133
+ config:
134
+ - id: tool-subagent-control
135
+ name: '@deepseek-ai/dsh-tool-subagent-control'
136
+
137
+ - id: tool-subagent-list-agents
138
+ name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
139
+
140
+ - id: tool-subagent
141
+ name: '@deepseek-ai/dsh-tool-subagent'
142
+ config:
143
+ provider: spawn
144
+ toolName: subagent
145
+ modelSelectionSettings: true
146
+ backgroundMode: continuable
147
+
148
+ - id: tool-subagent-fork
149
+ name: '@deepseek-ai/dsh-tool-subagent'
150
+ config:
151
+ provider: fork
152
+ toolName: subagent_fork
153
+ backgroundMode: continuable
154
+
155
+ # Optional providers remain disabled until their matching Bundle is
156
+ # installed in the host profile.
157
+ - id: tool-subagent-codex
158
+ name: '@deepseek-ai/dsh-tool-subagent'
159
+ disabled: true
160
+ config:
161
+ provider: codex
162
+ toolName: subagent_codex
163
+ backgroundMode: one-shot
164
+ maxDepth: provider-managed
165
+
166
+ - id: tool-subagent-claude-code
167
+ name: '@deepseek-ai/dsh-tool-subagent'
168
+ disabled: true
169
+ config:
170
+ provider: claude-code
171
+ toolName: subagent_claude_code
172
+ backgroundMode: one-shot
173
+ maxDepth: provider-managed
174
+
175
+ - id: workflow-worker-thread
176
+ name: '@deepseek-ai/dsh-workflow-worker-thread'
177
+ config:
178
+ provider: spawn
179
+
180
+ - id: tool-workflow
181
+ name: '@deepseek-ai/dsh-tool-workflow'
182
+
183
+ - id: tool-ralph
184
+ name: '@deepseek-ai/dsh-tool-ralph'
185
+ config:
186
+ subagentProvider: spawn
187
+ maxRounds: 64
188
+
189
+ # These official tools provide the interactive question surface and the
190
+ # durable whole-list task view alongside Codex-compatible update_plan.
191
+ - id: tool-ask-user
192
+ name: '@deepseek-ai/dsh-tool-ask-user'
193
+
194
+ - id: tool-todo
195
+ name: '@deepseek-ai/dsh-tool-todo'
196
+ config:
197
+ allowParallelInProgress: true
@@ -1,3 +1,3 @@
1
- name: Codex 模式
2
- description: 使用可自定义提示词与 Codex 工具的编码 Agent。
3
- order: 5
1
+ name: Codex 模式
2
+ description: 使用可自定义提示词与 Codex 工具的编码 Agent。
3
+ order: 5