有大佬看看这个DSH手搓的极简模式修复版靠谱不?
deepseek吧
全部回复
仅看楼主
level 5
代码超字数限制了我先传图片,代码我贴回复里
2026年08月17日 02点08分 1
level 5
# The `minimal-win` agent preset: the official `minimal` (极简模式) fixed-prompt,
# two-tool coding agent, made usable on Windows.
#
# What the official preset assumes and why this copy diverges:
# 1. Its only command tool is persistent `bash` via `@deepseek-ai/dsh-tool-bash-persistent`,
# backed by `dsh-subprocess-local`, whose `createProcessInspector()` supports
# linux/darwin only and throws `terminal inspection is unsupported on platform win32`
# at every terminal spawn. So on Windows the shell is disabled and replaced by
# the official `pwsh` tool (the same tool the `standard` preset uses on win32).
# 2. Its persona sets `includeRuntimeContext: false`, so the agent never learns its
# working directory while `str_replace_editor` demands absolute paths — the agent
# had to guess. The persona now injects the `{{cwd}}` prompt variable (registered
# on the host plane by the agent loop), keeping the minimal spirit intact.
#
# Everything else mirrors the official `minimal` preset unchanged.
- id: persona
name: '@deepseek-ai/dsh-persona'
config:
text: >-
You are a helpful software engineer assistant. Your working directory is {{cwd}}.
complete: true
includeRuntimeContext: false
# The PTY registry is an agent-owned service, so it lives in an entry-local
# realm. The backend still consumes the host sandbox policy and subprocess
# implementation, while the tool registers into this agent's scoped catalog.
# On win32 the persistent bash chain is disabled entirely (unsupported
# subprocess-local backend); pwsh takes over below.
- id: persistent-shell
name: cordis:group
group: true
isolate:
terminals: true
config:
- id: pty
name: '@deepseek-ai/dsh-terminal'
disabled: !!js process.platform === 'win32'
- id: terminal-bash
name: '@deepseek-ai/dsh-terminal-bash'
disabled: !!js process.platform === 'win32'
config:
timeoutMs: 300000
2026年08月17日 02点08分 2
level 5
- id: persistent-bash
name: '@deepseek-ai/dsh-tool-bash-persistent'
disabled: !!js process.platform === 'win32'
config:
timeoutMs: 300000
description: |-
Run commands in a bash shell
* When invoking this tool, the contents of the "command" parameter does NOT need to be XML-escaped.
* You don't have access to the internet via this tool.
* You do have access to a mirror of common linux and python packages via apt and pip.
* State is persistent across command calls and discussions with the user.
* To inspect a particular line range of a file, e.g. lines 10-25, try 'sed -n 10,25p /path/to/the/file'.
* Please avoid commands that may produce a very large amount of output.
* Please run long lived commands in the background, e.g. 'sleep 10 &' or start a server in the background.
# The official Windows shell tool (same row the `standard` preset uses on win32).
# Its executor (`pwsh-sandbox`/`pwsh-local`) and `shell-env` live on the host
# plane, so this row needs no realm of its own.
- id: tool-pwsh
name: '@deepseek-ai/dsh-tool-pwsh'
disabled: !!js process.platform !== 'win32'
# The bare local filesystem shadows the host's sandboxed provider only for this
# preset. The editor shares that realm and requires absolute paths.
- id: filesystem
name: cordis:group
group: true
isolate:
fs: true
config:
- id: fs-local
name: '@deepseek-ai/dsh-fs-local'
config:
cwd: !!js process.env.DSH_CWD ?? process.cwd()
- id: str-replace-editor
name: '@deepseek-ai/dsh-tool-str-replace-editor'
config:
maxOutputChars: 16000
2026年08月17日 02点08分 3
level 5
吧U不会只会对着大肥鱼发癫,没点别的技能吧,这种事情不要哇[泪][泪][泪]
2026年08月17日 02点08分 4
level 1
不要费这个劲,这个应该是由deepseek自己去调整的东西。万一拟合的是bash呢,万一用pwsh会在两到三轮以后大幅下降回答质量呢?
本来V4Pro也不便宜,差不多的价格完全可以用其他的。
或者直接用别人弄好的插件。
2026年08月17日 03点08分 5
level 5
唉有道理,反正也没指望它多能干活儿,将就用着啊
2026年08月17日 03点08分 6
1