DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

FxRayHughes /

FxRayHughes/dsh-prompt-book

Verified

Prompt book for DeepSeek Harness (DSH): save prompts you use often behind a round button in the composer toolbar and insert one with a click

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@911b2dbd

提示词本 (@local/dsh-prompt-book)

在 DeepSeek Harness 输入框工具栏的「+」右侧、权限选择左侧加一个圆形提示词按钮:

  • 点按钮弹出提示词菜单,点一条即把内容插入到输入框光标处(输入框为空时直接填入),菜单随即关闭。鼠标停在条目上可看全文。
  • 菜单右上角 + 新建提示词,可一键「填入当前输入框内容」,把正在写的话存成提示词;⌘/Ctrl+Enter 保存,Esc 返回。
  • 列表按钮进入管理模式:编辑、删除(再点一次确认)、上移/下移排序。
  • 智能体可通过 prompt_book 工具(list / add / update / remove / move)管理同一份列表;每次打开菜单都会重新读取。

提示词保存在 ~/.dsh/prompt-book/prompts.json,所有会话、所有浏览器窗口共享,也可以直接手改。

安装

  1. 下载 Release 里的 zip 并解压,或 git clone https://github.com/FxRayHughes/dsh-prompt-book.git。
  2. 在 DSH 里让 agent 用 plugin_manager install_bundle 安装,target 填解压目录的绝对路径。
  3. 刷新 DSH 页面,输入框工具栏「+」右侧出现圆形提示词按钮。

升级时先 remove_bundle @local/dsh-prompt-book 再重新 install_bundle;已存的提示词不受影响。

按钮注册在 conversation.input.left 插槽,该插槽本身排在权限/计划控件之后;client.js 用一条 CSS order 规则把按钮挪到「+」右侧。若宿主改了工具栏结构,规则不再匹配,按钮会退回插槽原位(权限控件右侧),功能不受影响。

文件

文件 作用
store.js 提示词读写(原子写文件)
index.js Host:POST /prompt-book/rpc 接口 + prompt_book 工具
client.js Web:输入框工具栏里的提示词按钮与弹出菜单
—/ 5

No ratings yet

Verified DSH bundle

Commit 911b2dbdddc0

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout