zangxx66/dsh-prompt-setting 预览 preview

zangxx66/dsh-prompt-setting

DeepSeek Harness 默认 System Prompt 管理插件:在 Web GUI「设置」里浏览、检索并覆盖最终装配进每轮会话的系统提示词

Project Overview项目介绍

dsh-prompt-setting is a native system-prompt management plugin built exclusively for DSH (DeepSeek Harness). It adds a "Prompt settings" pane to the Web GUI's Settings page, where users can view, search, edit, and roll back the system prompt that every DSH turn assembles, without ever hand-editing files inside the global pnpm node_modules. Installation is done either by cloning the repository and pointing DSH's plugin_manager at the absolute path of packages/dsh-prompt-setting, or by adding the GitHub subdirectory through dsh plugin --profile demo add 'github:zangxx66/dsh-prompt-setting#path:/packages/dsh-prompt-setting' — the #path: fragment is mandatory because the repo is a monorepo, and without it pnpm installs a synthetic empty package rooted at the repository root, and the plugin never appears.

The plugin is aimed at DSH power users and developers who need fine-grained control over the assembled system prompt. The Settings pane ships four tabs: "My Prompt" is the single writable surface where the user picks a layer, writes their own instructions, and saves — the text is appended after every built-in section; "Prompt overview" renders the read-only section list with status marks, search, filters, copy and a base↔effective diff; "History & backup" exposes a version history with line-level diffs, an export download, and an import preview that shows the change plan before any write; "Advanced" lists legacy overrides with two double-confirm reset buttons and a status area showing mount state, build fingerprint, and renderer self-check. All UI copy follows DSH's language setting, so flipping DSH to Chinese turns the pane Chinese with no refresh.

The package is plain JavaScript with zero runtime dependencies and zero build step; its configuration is written only to the plugin's own data directory, so DSH upgrades or reinstalls neither lose nor overwrite it. It requires DSH >=0.1.7-rc.2 and <0.2.0, or >=0.2.0-0 and <0.2.1-0 (every 0.1.x from 0.1.7-rc.2 on, every 0.2.0 prerelease, and the 0.2.0 release itself are in range; 0.2.1-0 and beyond are out). Node >=22 is only needed for running tests or developing. Because pnpm >=10 does not run build scripts of git dependencies by default, the first GitHub-direct install fails and prints an exact package key (ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED), which must be approved as documented; a bare curl against the /prompt-setting/ping route returns 401 by design because the route requires browser cookie authentication. License: MIT.

dsh-prompt-setting 是一款专为 DSH(DeepSeek Harness)打造的原生系统提示词管理插件。它在 Web GUI 的 Settings 中新增 "Prompt settings" 面板,让用户无需修改全局 pnpm node_modules 即可查看、搜索、编辑、回滚当前会话拼装的系统提示词。安装方式是从本地克隆仓库绝对路径,或通过 pnpm 从 GitHub 的子目录(packages/dsh-prompt-setting)以 dsh plugin add 命令挂载,仅服务 DSH 一个目标。

该插件面向需要精细控制 DSH 系统提示词的开发者与高级用户:可在只读的 "Prompt overview" 中按段浏览完整拼装文本与 base/effective 差异;在 "My Prompt" 中按层写入自定义指令(追加至所有内置段之后);通过 "History & backup" 查看行级 diff、导出或预览导入;并支持还原默认与清空覆写。所有 UI 文案随 DSH 语言设置自动中英切换,cookie 鉴权的 /prompt-setting/ping 路由可用于验证宿主挂载状态。

插件以纯 JS 编写,运行时零依赖、零构建步骤,配置仅写入插件自身目录,DSH 升级不会覆盖。依赖 DSH 版本需 >=0.1.7-rc.2 <0.2.0 || >=0.2.0-0 <0.2.1-0(含 0.2.0 发布版);Node >=22 仅用于运行测试或开发。pnpm >=10 默认禁止 git 依赖执行构建脚本,首次安装会失败并打印精确的 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 包键,需按文档批准。许可证为 MIT。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
  • No DSH plugin manifest detected - it may only carry the dsh-plugin topic, so the install method must be confirmed on the spot未检测到 DSH 插件清单:可能只是打了 dsh-plugin 话题,安装方式要现场确认
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile demo add 'github:zangxx66/dsh-prompt-setting#path:/packages/dsh-prompt-setting'

把 zangxx66/dsh-prompt-setting 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-prompt-setting: System Prompt management for DSH

dsh-prompt-setting

English | 中文

System Prompt management for DSH (DeepSeek Harness). It adds a Prompt manager to the Web GUI's Settings: you can see the system prompt a session actually assembles on every turn, search it, write your own instructions into it, and roll back a bad edit — all without touching the global DSH install.

license version dsh deps

  • Zero runtime dependencies, zero build step: one package of plain JS — nothing to fetch, nothing to compile.
  • Upgrade-safe: configuration is written only to the plugin's own data directory, so upgrading or reinstalling DSH neither loses nor overwrites it.

1. What problem this solves

Every DSH turn is injected with a base system prompt assembled by @deepseek-ai/dsh-system-prompt. Until now the only way to adjust it was to hand-edit files inside the global pnpm node_modules. The cost of that:

  • the next DSH upgrade overwrites it and your changes are gone;
  • it pollutes a global install, so nobody else — and no other machine — can reproduce it;
  • there is no record of what changed, or of what it looked like before;
  • and worst of all, you cannot see what the finally assembled system prompt actually looks like.

This plugin moves that into the Settings page: the assembly is laid out section by section, the part you write is its own section pinned to the end, every other built-in section stays read-only, and changes come with history, diffs and exportable backups.

2. What you get after installing

Settings gains a "Prompt settings" pane (id: prompt-setting) with four top-level tabs:

Tab What you can do
My Prompt The only write surface: write your own system-level instructions (pick a layer → edit → save), plus a one-click "Restore default". This text is placed after every built-in section.
Prompt overview Read-only: the assembled section list (status marks / search / filters / copy), the full text, and a base ↔ effective diff — so you can see exactly what your change did.
History & backup History list + version diffs (line-level); export the configuration for download, and preview an import (review the change plan before anything is written).
Advanced A read-only list of legacy overrides, two double-confirm buttons ("clear all overrides", "reset the whole layer"), and a full status area (mount state / build fingerprint / renderer self-check).

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-codex-harness 下一个 Next dsh-animation-optimization →