@shuind/dsh-codex-harness 0.2.0 → 0.2.2

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,193 +1,193 @@
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 Codex layer owns its prompt overlay and core tool names; execution
18
- # remains delegated to dsh.
19
- - id: codex-tools
20
- name: '@shuind/dsh-codex-harness'
21
-
22
- # Background-job guidance and completion delivery belong to the official
23
- # dsh-tool-jobs plugin. Use wakeup delivery so an idle agent also learns about
24
- # a completed job without needing a separate user/tool wake.
25
- - id: codex-jobs
26
- name: '@deepseek-ai/dsh-tool-jobs'
27
- config:
28
- completionDelivery: wakeup
29
-
30
- # The generic DSH pi-ai adapter still owns the user's configured provider,
31
- # endpoint, API key, and model. Codex's remote-first transport wrapper is
32
- # installed only in this Codex scope and falls back to the generic DSH path.
33
-
34
- # Keep the local tool mounted as the fallback. Codex rewrites the final GPT
35
- # Responses request to a hosted web_search tool first; a failed remote request
36
- # is retried through this unchanged local function-tool path.
37
- - id: codex-web-search
38
- name: '@deepseek-ai/dsh-tool-web'
39
- config:
40
- search: true
41
- fetch: false
42
-
43
- # PTY execution is optional. Pipe-backed exec_command remains available on all
44
- # platforms through the shell capability consumed by the Codex tool layer.
45
- - id: codex-terminal
46
- name: cordis:group
47
- group: true
48
- isolate:
49
- terminals: true
50
- config:
51
- - id: terminals
52
- name: '@deepseek-ai/dsh-terminal'
53
-
54
- - id: terminal-bash
55
- name: '@deepseek-ai/dsh-terminal-bash'
56
- disabled: !!js process.platform === 'win32'
57
- config:
58
- timeoutMs: 300000
59
-
60
- # Context compaction is agent-scoped in Web. The token meter stays on the host
61
- # plane, while this group owns the backend, `/compact`, and optional tool-result
62
- # pruning for Codex sessions.
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: '@shuind/dsh-codex-harness/compaction'
72
- config:
73
- thresholdRatio: 0.95
74
-
75
- - id: command-compact
76
- name: '@deepseek-ai/dsh-command-compact'
77
-
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
-
85
- # Skills are the dsh extensibility seam and do not change the four Codex core
86
- # tool names.
87
- - id: skill-filesystem
88
- name: '@deepseek-ai/dsh-skill-filesystem'
89
-
90
- - id: tool-skill
91
- name: '@deepseek-ai/dsh-tool-skill'
92
-
93
- # Goal state remains host-owned and session-keyed. This row adds the official
94
- # model-facing goal lifecycle without moving the goal service into the preset.
95
- - id: tool-goal
96
- name: '@deepseek-ai/dsh-tool-goal'
97
-
98
- # Official plan mode supplies the reviewed exit_plan_mode flow. Keep the
99
- # Codex update_plan and todo_write tools out of this planning phase.
100
- - id: planning
101
- name: cordis:group
102
- group: true
103
- isolate:
104
- planMode: true
105
- config:
106
- - id: plan-mode
107
- name: '@deepseek-ai/dsh-plan-mode'
108
- config:
109
- section: |
110
- 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.
111
-
112
- 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.
113
-
114
- 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.
115
-
116
- 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.
117
-
118
- 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.
119
-
120
- 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.
121
-
122
- # Continuable delegation and workflow execution are official model-facing
123
- # capabilities. Their registries and providers stay in the host composition.
124
- - id: delegation
125
- name: cordis:group
126
- group: true
127
- isolate:
128
- workflowEngine: true
129
- config:
130
- - id: tool-subagent-control
131
- name: '@deepseek-ai/dsh-tool-subagent-control'
132
-
133
- - id: tool-subagent-list-agents
134
- name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
135
-
136
- - id: tool-subagent
137
- name: '@deepseek-ai/dsh-tool-subagent'
138
- config:
139
- provider: spawn
140
- toolName: subagent
141
- modelSelectionSettings: true
142
- backgroundMode: continuable
143
-
144
- - id: tool-subagent-fork
145
- name: '@deepseek-ai/dsh-tool-subagent'
146
- config:
147
- provider: fork
148
- toolName: subagent_fork
149
- backgroundMode: continuable
150
-
151
- # Optional providers remain disabled until their matching Bundle is
152
- # installed in the host profile.
153
- - id: tool-subagent-codex
154
- name: '@deepseek-ai/dsh-tool-subagent'
155
- disabled: true
156
- config:
157
- provider: codex
158
- toolName: subagent_codex
159
- backgroundMode: one-shot
160
- maxDepth: provider-managed
161
-
162
- - id: tool-subagent-claude-code
163
- name: '@deepseek-ai/dsh-tool-subagent'
164
- disabled: true
165
- config:
166
- provider: claude-code
167
- toolName: subagent_claude_code
168
- backgroundMode: one-shot
169
- maxDepth: provider-managed
170
-
171
- - id: workflow-worker-thread
172
- name: '@deepseek-ai/dsh-workflow-worker-thread'
173
- config:
174
- provider: spawn
175
-
176
- - id: tool-workflow
177
- name: '@deepseek-ai/dsh-tool-workflow'
178
-
179
- - id: tool-ralph
180
- name: '@deepseek-ai/dsh-tool-ralph'
181
- config:
182
- subagentProvider: spawn
183
- maxRounds: 64
184
-
185
- # These official tools provide the interactive question surface and the
186
- # durable whole-list task view alongside Codex-compatible update_plan.
187
- - id: tool-ask-user
188
- name: '@deepseek-ai/dsh-tool-ask-user'
189
-
190
- - id: tool-todo
191
- name: '@deepseek-ai/dsh-tool-todo'
192
- config:
193
- 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 Codex layer owns its prompt overlay and core tool names; execution
18
+ # remains delegated to dsh.
19
+ - id: codex-tools
20
+ name: '@shuind/dsh-codex-harness'
21
+
22
+ # Background-job guidance and completion delivery belong to the official
23
+ # dsh-tool-jobs plugin. Use wakeup delivery so an idle agent also learns about
24
+ # a completed job without needing a separate user/tool wake.
25
+ - id: codex-jobs
26
+ name: '@deepseek-ai/dsh-tool-jobs'
27
+ config:
28
+ completionDelivery: wakeup
29
+
30
+ # The generic DSH pi-ai adapter still owns the user's configured provider,
31
+ # endpoint, API key, and model. Codex's remote-first transport wrapper is
32
+ # installed only in this Codex scope and falls back to the generic DSH path.
33
+
34
+ # Keep the local tool mounted as the fallback. Codex rewrites the final GPT
35
+ # Responses request to a hosted web_search tool first; a failed remote request
36
+ # is retried through this unchanged local function-tool path.
37
+ - id: codex-web-search
38
+ name: '@deepseek-ai/dsh-tool-web'
39
+ config:
40
+ search: true
41
+ fetch: false
42
+
43
+ # PTY execution is optional. Pipe-backed exec_command remains available on all
44
+ # platforms through the shell capability consumed by the Codex tool layer.
45
+ - id: codex-terminal
46
+ name: cordis:group
47
+ group: true
48
+ isolate:
49
+ terminals: true
50
+ config:
51
+ - id: terminals
52
+ name: '@deepseek-ai/dsh-terminal'
53
+
54
+ - id: terminal-bash
55
+ name: '@deepseek-ai/dsh-terminal-bash'
56
+ disabled: !!js process.platform === 'win32'
57
+ config:
58
+ timeoutMs: 300000
59
+
60
+ # Context compaction is agent-scoped in Web. The token meter stays on the host
61
+ # plane, while this group owns the backend, `/compact`, and optional tool-result
62
+ # pruning for Codex sessions.
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: '@shuind/dsh-codex-harness/compaction'
72
+ config:
73
+ thresholdRatio: 0.95
74
+
75
+ - id: command-compact
76
+ name: '@deepseek-ai/dsh-command-compact'
77
+
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
+
85
+ # Skills are the dsh extensibility seam and do not change the four Codex core
86
+ # tool names.
87
+ - id: skill-filesystem
88
+ name: '@deepseek-ai/dsh-skill-filesystem'
89
+
90
+ - id: tool-skill
91
+ name: '@deepseek-ai/dsh-tool-skill'
92
+
93
+ # Goal state remains host-owned and session-keyed. This row adds the official
94
+ # model-facing goal lifecycle without moving the goal service into the preset.
95
+ - id: tool-goal
96
+ name: '@deepseek-ai/dsh-tool-goal'
97
+
98
+ # Official plan mode supplies the reviewed exit_plan_mode flow. Keep the
99
+ # Codex update_plan and todo_write tools out of this planning phase.
100
+ - id: planning
101
+ name: cordis:group
102
+ group: true
103
+ isolate:
104
+ planMode: true
105
+ config:
106
+ - id: plan-mode
107
+ name: '@deepseek-ai/dsh-plan-mode'
108
+ config:
109
+ section: |
110
+ 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.
111
+
112
+ 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.
113
+
114
+ 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.
115
+
116
+ 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.
117
+
118
+ 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.
119
+
120
+ 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.
121
+
122
+ # Continuable delegation and workflow execution are official model-facing
123
+ # capabilities. Their registries and providers stay in the host composition.
124
+ - id: delegation
125
+ name: cordis:group
126
+ group: true
127
+ isolate:
128
+ workflowEngine: true
129
+ config:
130
+ - id: tool-subagent-control
131
+ name: '@deepseek-ai/dsh-tool-subagent-control'
132
+
133
+ - id: tool-subagent-list-agents
134
+ name: '@deepseek-ai/dsh-tool-subagent-control/list-agents'
135
+
136
+ - id: tool-subagent
137
+ name: '@deepseek-ai/dsh-tool-subagent'
138
+ config:
139
+ provider: spawn
140
+ toolName: subagent
141
+ modelSelectionSettings: true
142
+ backgroundMode: continuable
143
+
144
+ - id: tool-subagent-fork
145
+ name: '@deepseek-ai/dsh-tool-subagent'
146
+ config:
147
+ provider: fork
148
+ toolName: subagent_fork
149
+ backgroundMode: continuable
150
+
151
+ # Optional providers remain disabled until their matching Bundle is
152
+ # installed in the host profile.
153
+ - id: tool-subagent-codex
154
+ name: '@deepseek-ai/dsh-tool-subagent'
155
+ disabled: true
156
+ config:
157
+ provider: codex
158
+ toolName: subagent_codex
159
+ backgroundMode: one-shot
160
+ maxDepth: provider-managed
161
+
162
+ - id: tool-subagent-claude-code
163
+ name: '@deepseek-ai/dsh-tool-subagent'
164
+ disabled: true
165
+ config:
166
+ provider: claude-code
167
+ toolName: subagent_claude_code
168
+ backgroundMode: one-shot
169
+ maxDepth: provider-managed
170
+
171
+ - id: workflow-worker-thread
172
+ name: '@deepseek-ai/dsh-workflow-worker-thread'
173
+ config:
174
+ provider: spawn
175
+
176
+ - id: tool-workflow
177
+ name: '@deepseek-ai/dsh-tool-workflow'
178
+
179
+ - id: tool-ralph
180
+ name: '@deepseek-ai/dsh-tool-ralph'
181
+ config:
182
+ subagentProvider: spawn
183
+ maxRounds: 64
184
+
185
+ # These official tools provide the interactive question surface and the
186
+ # durable whole-list task view alongside Codex-compatible update_plan.
187
+ - id: tool-ask-user
188
+ name: '@deepseek-ai/dsh-tool-ask-user'
189
+
190
+ - id: tool-todo
191
+ name: '@deepseek-ai/dsh-tool-todo'
192
+ config:
193
+ 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