DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Coding Agent Preset — DeepSeek Harness 插件(DSH Plugin)
← Plugins

@gamegeek-saikel/dsh-coding-agent-preset

Coding Agent Preset

适配 Windows 的 DeepSeek Harness 编码模式代理预设,配备持久的 PowerShell 7 shell。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @gamegeek-saikel/dsh-coding-agent-preset@0.1.2
README兼容性版本

兼容性与来源证明

Coding Agent Preset 以 @gamegeek-saikel/dsh-coding-agent-preset 发布,当前版本为 0.1.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/9

版本

0.1.2stable
2026/8/16
0.1.1stable
2026/8/15

相关插件

正在加载相关插件…

最新版
0.1.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
199.3 kB
文件数
25
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 0
周下载
51
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk Minimal@deepseek-ai/dsh-sdk-minimal独立的最小 SDK 配置包:JSON-RPC、一个 DeepSeek 适配器、持久化 Shell 和 JSONL 会话Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序

README

DSH Coding Agent Preset

English  ·  简体中文

DSH Coding Agent Preset is a Windows-adapted “coding mode” agent preset for DeepSeek Harness (DSH) — an exact Windows port of the official minimal preset. It keeps the official minimal composition (fixed persona, no context compaction, only pwsh + str_replace_editor), but replaces the official persistent bash with a persistent PowerShell 7 (pwsh) shell.

  • PTY backend (packages/dsh-terminal-pwsh/): a node-pty/ConPTY persistent pwsh backend, mirroring @deepseek-ai/dsh-terminal-bash.
  • Model-facing tool (packages/dsh-tool-pwsh-persistent/): a persistent pwsh tool, mirroring @deepseek-ai/dsh-tool-bash-persistent.
  • Preset files (agent.cordis.yml / preset.yml): mount the two local packages into a DSH coding agent preset.

Installation

The preset is published as a single npm package (@gamegeek-saikel/dsh-coding-agent-preset). Installing it into a DSH web profile automatically deploys the preset files and the two internal packages via the package postinstall script.

Prerequisite: This preset requires PowerShell 7 (pwsh), not the built-in Windows PowerShell 5.1 (powershell.exe). Please install PowerShell 7 manually from https://github.com/PowerShell/PowerShell/releases or run winget install Microsoft.PowerShell.

Install into the web profile:

npx @deepseek-ai/dsh plugin --profile web add @gamegeek-saikel/dsh-coding-agent-preset

Start DSH:

npx @deepseek-ai/dsh web

If you already have the DSH CLI installed globally, you can use dsh instead of npx @deepseek-ai/dsh:

dsh plugin --profile web add @gamegeek-saikel/dsh-coding-agent-preset
dsh web

The package also keeps the original manual deployment path: copy agent.cordis.yml / preset.yml into ~/.dsh/.agent-presets/coding/, then run install.ps1 to copy the two internal packages into ~/.dsh/profiles/node_modules and the harness node_modules.

Demo / Evaluation

Validated with DeepSeek V4 Pro (reasoningEffort=max) on two one-sentence web-app generation tasks. Both sessions used only pwsh + str_replace_editor and produced complete single-file HTML demos.

ArtifactReasoning blockswelet'slet meVisible repliesTool callsDuration
blackhole.html9841138361102~29 min
mc.html16252553941167~54 min

Demo files and session logs: demo/
Full analysis: docs/pro-test-evaluation.md

Overview

The official persistent bash backend cannot run on Windows (its subprocess terminal inspection is Linux/macOS-only), and the official dsh-tool-pwsh is not persistent (every command starts a fresh pwsh -Command). This project therefore provides a Windows-native persistent pwsh stack with the same three-layer architecture as the official persistent bash:

  1. PTY registry — reuse the official @deepseek-ai/dsh-terminal service, scoped to an agent-owned terminals realm.
  2. Backend — dsh-terminal-pwsh spawns pwsh directly through node-pty/ConPTY, detects readiness with a controlled prompt, and cleans up the process tree with taskkill.
  3. Tool — dsh-tool-pwsh-persistent implements the same start/end marker protocol and PowerShell command wrapping, so state (cwd, variables, functions, aliases, activated environments) persists across calls.

Key Properties

PropertyValue
ScopeWindows-adapted copy of the official minimal coding preset
ShellPersistent PowerShell 7 (pwsh) via node-pty/ConPTY
Toolspwsh + str_replace_editor only
PersonaOfficial minimal persona verbatim: You are a helpful software engineer assistant.
Command wrappingInvoke-Expression + backtick-escaped double-quoted string; $ErrorActionPreference = 'Stop'
Readiness detectionControlled prompt __DSH_PERSISTENT_PWSH_PROMPT__ + silence/timeout fallbacks
Sandbox modesdanger-full-access → persistent PTY shell; confined modes → one-shot pwsh execution
EscalationSingle-call sandbox_permissions + justification via ctx.approval; fail-closed
Mode switchingAny effective sandbox-mode change closes persistent terminals; next call respawns under the new mode
Installdsh plugin --profile web add @gamegeek-saikel/dsh-coding-agent-preset
TestsPrompt parity, sandbox escalation, sandbox mode switch
LocaleEnglish + Simplified Chinese (preset display follows the DSH Web locale)
LicenseMIT

Usage

Once installed and restarted, a coding-mode session exposes exactly two tools: pwsh and str_replace_editor.

  • Persistent path (danger-full-access): commands run in a shared persistent pwsh PTY. Variables, functions, aliases, and the current directory survive across calls.
  • Confined path (read-only / workspace-write): commands run as one-shot pwsh -Command executions, matching the official non-persistent dsh-tool-pwsh behavior. State does not persist.
  • Sandbox escalation: if a confined command is denied, the output includes [sandbox: file access denied ...] and escalation available — retry this exact command once with sandbox_permissions. Retry with sandbox_permissions and justification to request a one-time approval; the granted mode applies only to that single call and never changes the session mode.

Quick verification:

Write-Output "hello"

then run a second command that reads a variable set by the first command to confirm persistence in a danger-full-access session.

Architecture

LayerOfficial (bash, Linux/macOS)This project (pwsh, Windows)
PTY registry@deepseek-ai/dsh-terminal (terminals service)Same official service, isolate: terminals private realm
Backenddsh-terminal-bash (subprocess + Linux process inspector)dsh-terminal-pwsh: node-pty/ConPTY, controlled-prompt readiness, taskkill tree cleanup
Tooldsh-tool-bash-persistent (start/end marker protocol)dsh-tool-pwsh-persistent: same protocol + PowerShell dialect wrapper

Key implementation points:

  • Command wrapping — Invoke-Expression + backtick-escaped double-quoted string; multi-line commands, $ interpolation, and quotes survive safely.
  • Exit-code semantics — $ErrorActionPreference = 'Stop' makes failing cmdlets report nonzero like bash; try/catch and explicit -ErrorAction still work normally.
  • Ready detection — PowerShell/PSReadLine strip OSC 133 prompt markers, so readiness matches the controlled prompt text tail with silence/timeout fallbacks.
  • Lifecycle — timeout closes and resets the shell; exit detection resets it; owner-level cache and serialized command queue match the official design.
  • Dual-path execution — danger-full-access uses the persistent PTY shell; confined modes use one-shot execution.
  • Single-call escalation — sandbox_permissions + justification resolve through ctx.approval; rejection, non-widening requests, missing justification, or missing approval service all fail closed.
  • Sandbox-mode switches — any effective mode change closes persistent terminals in the background; the next call transparently rebuilds the shell under the new mode.
  • Prompt parity — the persona and tool description stay aligned with official minimal; no escalation paragraph is appended at runtime.

Project Structure

dsh-coding-agent-preset/
├── agent.cordis.yml              # Root preset composition (manual install)
├── preset.yml                    # Root preset metadata (manual install)
├── cordis.patch.yml              # Web-profile bundle patch (defaults to coding preset; replaces agent-preset UI)
├── presets/coding/               # Auto-installed preset directory shipped in npm package
│   ├── agent.cordis.yml
│   └── preset.yml
├── dsh-coding-agent-client/      # Fork of dsh-client-ui-agent-preset with coding-mode locale support
│   ├── package.json
│   └── lib/
│       ├── client.js             # Browser half: adds coding to the built-in preset locale table
│       └── index.js              # Host plugin stub
├── install.ps1                   # One-shot deployment into the current DSH
├── package.json                  # Single npm package metadata for publishing
├── pnpm-lock.yaml                # Lockfile for npm/GitHub Actions
├── LICENSE                       # MIT License
├── README.md                     # English documentation
├── README.zh-CN.md               # 简体中文文档
├── docs/
│   ├── pro-test-evaluation.md    # Pro-mode black-hole / MC evaluation evidence
│   └── pro-test-data.json        # Machine-readable evaluation data
├── demo/
│   ├── blackhole/                # Black-hole demo artifact + session log
│   └── mc/                       # Minecraft-style demo artifact
├── .github/workflows/publish.yml # npm auto-publish on v* tags
├── scripts/
│   ├── analyze-session.mjs       # Session JSONL trajectory fingerprint analyzer
│   ├── check.mjs                 # Syntax check used by pnpm build
│   └── install-preset.mjs        # postinstall: copies preset + internal packages to DSH home
├── packages/
│   ├── dsh-terminal-pwsh/        # PTY backend package (node-pty/ConPTY)
│   │   └── lib/index.js
│   └── dsh-tool-pwsh-persistent/ # Model-facing persistent pwsh tool
│       └── lib/index.js
└── tests/
    ├── prompt-parity.mjs         # Prompt-surface parity (no PTY needed)
    ├── sandbox-escalation.mjs    # Escalation / dual-path behavior
    └── sandbox-mode-switch.mjs   # Sandbox-mode switch behavior

Development & Testing

The repository root has a package.json for npm packaging; there is no runtime build step. pnpm build runs syntax checks over the package and test JS files. The tests themselves are plain Node scripts that import from the installed DSH harness node_modules.

node tests/prompt-parity.mjs

prompt-parity.mjs does not need a PTY and can run in confined mode. The other two suites spawn real ConPTY pwsh sessions and therefore require danger-full-access:

node tests/sandbox-escalation.mjs
node tests/sandbox-mode-switch.mjs

Run install.ps1 first so the two packages are present in the harness node_modules path used by the tests.

Documentation

  • packages/dsh-terminal-pwsh/README.md — backend design and configuration
  • packages/dsh-tool-pwsh-persistent/README.md — tool contract and known Windows limitations
  • README.zh-CN.md — 简体中文版本

License

This repository (source, tests, README, and the DSH preset shape) is licensed under the MIT License — see LICENSE.

Copyright (c) 2026 Saikel-Orado-Liu aka GameGeek-Saikel