@zaocan/dsh-workbench 0.0.0-stage → 0.1.1

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DeepSeek Harness Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,39 @@
1
- # Temporary Holding Version
1
+ # dsh-superagent
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > **Research prototype for reference only, not an official DeepSeek product.** This code grew out of our team's day-to-day development work, with much of the engineering done by coding agents. Treat it as research code, not production-ready software. It may still contain bugs, and its coding style and engineering practices may be inconsistent. Review and adapt it before using it in your own environment.
4
+ >
5
+ > We have adapted it for publication, so it is not identical to our internal version or the implementation described in *Exploring Super-agent Design: Towards a More Autonomous Agent System*. Some designs discussed in the article are directions for future development and are not implemented in this prototype.
6
+
7
+ dsh-superagent is a proactive coding agent for one GitHub repository, packaged as a bundle for [DeepSeek Harness](https://www.deepseek.com/en/harness/). It listens to GitHub and, optionally, Feishu. When someone allowed asks the agent for work, it opens a work item, works on it in its own agent session and directory, and answers in the original conversation, for example with a pull request. A web panel shows what needs a person.
8
+
9
+ It is also a way of working with an agent: **take as little human attention as possible, and give as much value as possible.** An agent that can act for a whole team can also waste a whole team's attention, so it acts only when asked or when a rule the team wrote allows it, and speaks only when someone must act or can use a result. [docs/000-philosophy.md](docs/000-philosophy.md) explains the principle and what it asks of the operator.
10
+
11
+ ## Setup
12
+
13
+ Setup has many steps, so an agent does it with you. Ask your coding agent:
14
+
15
+ > Read SETUP.md in this repository and set up dsh-superagent with me.
16
+
17
+ It asks one short question at a time, shows the full plan once, and then installs and configures everything. [SETUP.md](SETUP.md) is what it follows.
18
+
19
+ ## Documentation
20
+
21
+ Read the numbered documents in order; each builds only on the ones before it.
22
+
23
+ - [000 Philosophy](docs/000-philosophy.md)
24
+ - [001 Domain model](docs/001-domain.md)
25
+ - [002 Authorization](docs/002-authorization.md)
26
+ - [003 Execution](docs/003-execution.md)
27
+ - [004 Prompts](docs/004-prompts.md)
28
+ - [005 Panel](docs/005-panel.md)
29
+ - [006 Deployment](docs/006-deployment.md): manual setup, configuration, upgrades and troubleshooting
30
+ - [007 Architecture](docs/007-architecture.md)
31
+ - [008 Cookbook](docs/008-cookbook.md): adding a Source
32
+
33
+ ## Development
34
+
35
+ `pnpm check` runs the typecheck, the tests and the build.
36
+
37
+ ## License
38
+
39
+ [MIT](LICENSE)
@@ -0,0 +1,194 @@
1
+ # dsh-superagent bundle layer: inserts the plugins without configuration, and the agent presets its Sessions run under. The
2
+ # profile supplies the `dsh-superagent` entry's stateDir (see docs/006-deployment.md and examples/profile.cordis.patch.yml); the plugin
3
+ # refuses to start without stateDir.
4
+ - insert:
5
+ - id: dsh-superagent
6
+ name: @zaocan/dsh-workbench
7
+ - id: dsh-superagent-github
8
+ name: @zaocan/dsh-workbench/github-watch
9
+ disabled: true
10
+ # Optional Feishu Source; requires configuring a bot CLI after enabling.
11
+ - id: dsh-superagent-feishu
12
+ name: @zaocan/dsh-workbench/feishu-watch
13
+ disabled: true
14
+ # The agent preset of every Executor Session (WORKER_PRESET in src/app/sessions.ts); the main Session has its own, below.
15
+ # It is DSH's `standard` preset with only what a worker needs, and a shell whose foreground command moves to a background job
16
+ # after 5 seconds, so a long command does not hold back a person's message, which the Session takes at its next step. Left
17
+ # out: questions to a person, presenting, plan mode, the plugin manager and market, scheduling, goals, workflows, web fetch,
18
+ # and forked subagents, which would run under this preset; spawned subagents run under `standard`, whose shell moves a
19
+ # command to a background job only after 60 seconds, as a subagent's jobs are killed when it ends. A preset row has no
20
+ # setting that hides it from the preset picker, so its name and description say whom it is for.
21
+ - id: dsh-superagent-worker-preset
22
+ name: '@deepseek-ai/dsh-agent-preset'
23
+ config:
24
+ id: dsh-superagent-worker
25
+ name: dsh-superagent 执行器
26
+ description: dsh-superagent 的执行器 Session 专用,不供手动选择。前台命令超 5 秒转入后台,只含执行工作所需的工具。
27
+ order: 90
28
+ plugins:
29
+ - id: persona
30
+ name: '@deepseek-ai/dsh-persona'
31
+ config:
32
+ prefix: You are a coding agent powered by the {{model}} model.
33
+ - id: agent-instructions
34
+ name: '@deepseek-ai/dsh-agent-instructions'
35
+ config:
36
+ maxBytes: 65536
37
+ - id: time-context
38
+ name: '@deepseek-ai/dsh-time-context'
39
+ # A foreground command waits at most 5 s, then the shell tool moves it to a background job.
40
+ - id: shell
41
+ name: cordis:group
42
+ group: true
43
+ isolate:
44
+ shell: true
45
+ config:
46
+ - id: bash-sandbox
47
+ name: '@deepseek-ai/dsh-bash-sandbox'
48
+ disabled: !!js process.platform === 'win32'
49
+ config:
50
+ timeoutMs: 5000
51
+ maxTimeoutMs: 5000
52
+ - id: pwsh-sandbox
53
+ name: '@deepseek-ai/dsh-pwsh-sandbox'
54
+ disabled: !!js process.platform !== 'win32'
55
+ config:
56
+ timeoutMs: 5000
57
+ maxTimeoutMs: 5000
58
+ - id: tool-bash
59
+ name: '@deepseek-ai/dsh-tool-bash'
60
+ disabled: !!js process.platform === 'win32'
61
+ - id: tool-pwsh
62
+ name: '@deepseek-ai/dsh-tool-pwsh'
63
+ disabled: !!js process.platform !== 'win32'
64
+ - id: tool-fs
65
+ name: '@deepseek-ai/dsh-tool-fs'
66
+ - id: tool-fs-search
67
+ name: '@deepseek-ai/dsh-tool-fs-search'
68
+ config:
69
+ sampleOverCapGlobResults: false
70
+ # A wait for a job ends after 5 s too; the job's end wakes the worker with its result.
71
+ - id: tool-jobs
72
+ name: '@deepseek-ai/dsh-tool-jobs'
73
+ config:
74
+ waitTimeoutMs: 5000
75
+ maxWaitTimeoutMs: 5000
76
+ - id: skill-filesystem
77
+ name: '@deepseek-ai/dsh-skill-filesystem'
78
+ - id: tool-skill
79
+ name: '@deepseek-ai/dsh-tool-skill'
80
+ - id: compaction
81
+ name: cordis:group
82
+ group: true
83
+ isolate:
84
+ compaction: true
85
+ toolResultPruner: true
86
+ config:
87
+ - id: compaction-basic
88
+ name: '@deepseek-ai/dsh-compaction-basic'
89
+ - id: command-compact
90
+ name: '@deepseek-ai/dsh-command-compact'
91
+ - id: tool-result-pruner
92
+ name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
93
+ config:
94
+ thresholdChars: 8192
95
+ headChars: 4096
96
+ tailChars: 1024
97
+ - id: delegation
98
+ name: cordis:group
99
+ group: true
100
+ isolate:
101
+ workflowEngine: true
102
+ config:
103
+ - id: tool-subagent-control
104
+ name: '@deepseek-ai/dsh-tool-subagent-control'
105
+ - id: tool-subagent
106
+ name: '@deepseek-ai/dsh-tool-subagent'
107
+ config:
108
+ provider: spawn
109
+ toolName: subagent
110
+ modelSelection: true
111
+ modelDiscovery: true
112
+ agentPreset: standard
113
+ - id: tool-todo
114
+ name: '@deepseek-ai/dsh-tool-todo'
115
+ config:
116
+ allowParallelInProgress: true
117
+ - id: tool-web
118
+ name: '@deepseek-ai/dsh-tool-web'
119
+ config:
120
+ fetch: false
121
+ searchTimeoutMs: 60000
122
+ # The agent preset of the main Session (ROUTER_PRESET in src/app/sessions.ts). The worker's 5-second shell and job waits, so a command or a wait does not hold back the next candidates, and
123
+ # only what the main Session uses: no subagents, web, file search or writes, todo list, questions to a person, presenting,
124
+ # plan mode, plugin manager, scheduling, goals or workflows. No persona: the main Session's prompt is complete, so it has
125
+ # no other section.
126
+ - id: dsh-superagent-router-preset
127
+ name: '@deepseek-ai/dsh-agent-preset'
128
+ config:
129
+ id: dsh-superagent-router
130
+ name: dsh-superagent 主 Session
131
+ description: dsh-superagent 的主 Session 专用,不供手动选择。前台命令和任务等待超 5 秒转入后台,只含路由所需的工具。
132
+ order: 91
133
+ plugins:
134
+ - id: agent-instructions
135
+ name: '@deepseek-ai/dsh-agent-instructions'
136
+ config:
137
+ maxBytes: 65536
138
+ - id: time-context
139
+ name: '@deepseek-ai/dsh-time-context'
140
+ - id: shell
141
+ name: cordis:group
142
+ group: true
143
+ isolate:
144
+ shell: true
145
+ config:
146
+ - id: bash-sandbox
147
+ name: '@deepseek-ai/dsh-bash-sandbox'
148
+ disabled: !!js process.platform === 'win32'
149
+ config:
150
+ timeoutMs: 5000
151
+ maxTimeoutMs: 5000
152
+ - id: pwsh-sandbox
153
+ name: '@deepseek-ai/dsh-pwsh-sandbox'
154
+ disabled: !!js process.platform !== 'win32'
155
+ config:
156
+ timeoutMs: 5000
157
+ maxTimeoutMs: 5000
158
+ - id: tool-bash
159
+ name: '@deepseek-ai/dsh-tool-bash'
160
+ disabled: !!js process.platform === 'win32'
161
+ - id: tool-pwsh
162
+ name: '@deepseek-ai/dsh-tool-pwsh'
163
+ disabled: !!js process.platform !== 'win32'
164
+ - id: tool-fs
165
+ name: '@deepseek-ai/dsh-tool-fs'
166
+ config:
167
+ write: false
168
+ edit: false
169
+ - id: tool-jobs
170
+ name: '@deepseek-ai/dsh-tool-jobs'
171
+ config:
172
+ waitTimeoutMs: 5000
173
+ maxWaitTimeoutMs: 5000
174
+ - id: skill-filesystem
175
+ name: '@deepseek-ai/dsh-skill-filesystem'
176
+ - id: tool-skill
177
+ name: '@deepseek-ai/dsh-tool-skill'
178
+ - id: compaction
179
+ name: cordis:group
180
+ group: true
181
+ isolate:
182
+ compaction: true
183
+ toolResultPruner: true
184
+ config:
185
+ - id: compaction-basic
186
+ name: '@deepseek-ai/dsh-compaction-basic'
187
+ - id: command-compact
188
+ name: '@deepseek-ai/dsh-command-compact'
189
+ - id: tool-result-pruner
190
+ name: '@deepseek-ai/dsh-compaction-tool-result-pruner'
191
+ config:
192
+ thresholdChars: 8192
193
+ headChars: 4096
194
+ tailChars: 1024