提示词库存放在插件配置中,含 Settings 页面与输入框选择器:勾中的提示词注入该会话的每一步模型调用,subagent 继承其最近祖先会话的选择。
安装
# npm 包(预构建)
dsh plugin --profile web add @stmol/dsh-prompt-lib
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:Stmol/dsh-prompt-lib
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
🥷 Keep your own prompts inside DeepSeek Harness, and switch them on for a chat in one click.
- Settings → Prompts: write, edit and delete your prompts.
- Chat composer: tick the ones you want for this session. The button shows how many are on.
A prompt that is ticked applies to every model step of that session, and to the subagents it starts.
Install
Published on npm as @stmol/dsh-prompt-lib.
Any bundle source works: the npm package, the repository, a tarball, or a local folder.
- GUI: Settings → Plugins → Add plugin, then
@stmol/dsh-prompt-lib. - CLI:
dsh plugin add @stmol/dsh-prompt-lib.
Restart DSH after the first install; later edits reach the running app through HMR. There are no automatic updates: remove the plugin and add it again.
dsh plugin add link:/path/to/dsh-prompt-lib
A linked checkout keeps its own node_modules, so the plugin's one dependency has to be installed there too:
cd /path/to/dsh-prompt-lib && npm install
Without it the plugin fails to load and nothing appears in Settings.
Usage
- Open Settings → Prompts. It is its own page, after Agent presets. Write a title and an instruction, then save.
- The title is a label for you. The list, the search field and the composer picker use it to keep prompts findable. It is never sent to the model, only the instruction text is.
- The instruction is stored in the plugin's config, so it survives restarts and is there in every session.
- Enable in every new chat marks the prompt as a default. It is off unless you turn it on.
- In a chat, open the Prompts control in the composer tool row, right of the permissions dropdown. Tick what you want. The button shows the count.
- The ticks apply from the next model step. No restart and no new session needed. Tick again, or press Clear, to take them out.
Prompts are matched by an id generated behind the scenes, not by title, so renaming a prompt keeps every session pointed at it.
Defaults for new chats
A prompt can be set to start enabled. Every session that has never been ticked by hand opens with those defaults already on, and the picker shows them ticked, so the count on a fresh chat matches what that chat will use.
The first hand edit to a session, whether that is ticking, unticking or Clear, becomes that session's own choice and takes over from then on. Unticking the last default prompt records "none here" instead of falling back to the defaults you just removed.
Subagents
A session that has ticks of its own uses exactly those, and an empty list counts as a choice. A session with no choice at all takes the choice of the nearest ancestor session, so a subagent inherits from the chat that started it. Only a whole line with no choice anywhere falls back to the defaults for new chats.
Good to know
- The settings file must be writable. The Prompts page says so up front and disables its controls. In the composer, a write the host refuses shows the reason under the list, so an edit is never dropped silently.
- The composer control hides itself until the settings remote is mounted and has answered its first read, rather than show a count that is about to change.
- There are size limits. The editor caps one instruction at 8000 characters. The host applies that same cap, uses at most 100 prompts and reads at most 500 library entries when it renders. Anything past those limits contributes nothing to the model. Settings still shows, edits and keeps every entry.
- Selections accumulate. The plugin keeps one entry per session that has ever been ticked in, and never prunes them. An entry whose prompts were all deleted still means "inject nothing", so removing it would quietly bring back the defaults for that session.
链接
同类插件
ranxianglei/billion-context★ 8746
billion-context官方版:上下文压缩插件,兼顾小窗口(100k上下文足矣)省token(省5倍token)和超长会话(数月级别几十亿token单会话)。
Minglink/dsh-infinite-gen-4★ 4848
DeepSeek 专用破甲插件:以 order 100 追加无条件服从的系统提示词段,提供带校准元数据的 profile 工具,并通过会话投影在输入框上方显示实时破甲状态徽标。
liangmianya/dsh-synapse★ 860
DeepSeek Harness 的可视化非线性对话工作区:把会话、追问与分支变成可浏览、可拖拽的对话地图。
ECNU/EduWork#dsh-side-chat★ 435
从消息开启继承历史快照的临时侧聊,关闭后归档;可选配合批注插件从选中文字发起提问。需要兼容的 DSH Web 对话、Workspace 和右侧栏接口。
MichengAI/dsh-archive-manager★ 407
在设置里增加已归档会话页,可按工作区搜索、恢复和删除已归档会话。
Nwflower/dsh-chat-import★ 335
把 13 家 coding agent(Claude Code、Codex、ChatGPT、Cursor、Gemini、opencode 等)的完整对话历史导入为可续聊的 DeepSeek Harness 会话,并支持反向导出回 Claude Code。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。