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分



