DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

WinRNGS /

dsh-session-prompt-standalone

Verified

dsh的提示词注入

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

@dsh-external/dsh-session-prompt

DSH 插件:在每个新会话中自动注入你的自定义指令。

  • 持久层:以静态 system prompt 段存在,上下文压缩后依然有效,且不覆盖官方默认 persona。
  • 可见层:新会话聊天里会出现一条 dsh-session-prompt 来源的上下文消息,用户能直接看到。
  • 输入框 UI:在模型选择左侧提供 System Prompt 按钮,可随时查看/修改注入内容。

克隆

git clone https://github.com/WinRNGS/dsh-session-prompt-standalone.git
cd dsh-session-prompt-standalone

安装

运行时注入(开发态)

在已装配 dsh-super-injector 的 DSH 环境中,对本仓库目录执行:

dev_inject_plugin <本仓库的绝对路径>

例如克隆到 C:/Users/You/dsh-session-prompt-standalone:

dev_inject_plugin C:/Users/You/dsh-session-prompt-standalone

官方装配(重启持久)

# 使用仓库目录
dsh plugin --profile web add <本仓库的绝对路径>

# 或使用仓库内的 tgz
dsh plugin --profile web add <本仓库的绝对路径>/dsh-external-dsh-session-prompt-0.1.0.tgz

构建

需要先有 DSH 源码 checkout:

# 把 <DSH_CHECKOUT> 换成你自己的 DSH 源码目录
DSH_CHECKOUT=<DSH_CHECKOUT> bash scripts/build.sh

# 构建客户端 UI
npm run build:client

在已装配 dsh-super-injector 的环境中,也可以直接说:

dev_build_plugin <本仓库的绝对路径>

自定义指令

  • 点击输入框左侧 System Prompt 按钮直接编辑;
  • 或对 DSH 说:把 system prompt 设置为:...;
  • 内容持久化到 ~/.dsh/dsh-session-prompt.json。

验证

新会话中:

  1. 聊天里会出现一条 dsh-session-prompt 来源的上下文消息;
  2. system prompt 中包含 session-prompt:persistent 段;
  3. 官方默认 deployment:persona 保持不变。
—/ 5

No ratings yet

Verified DSH bundle

Commit be6a31a653e1

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