masknull/dsh-session-prompt0

dsh-session-prompt

Inject a user-configured custom prompt at the very top of every session's system prompt; editable live from the web settings page

包名
dsh-session-prompt
版本
0.2.0
许可证
MIT
最近更新
2026年8月30日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:masknull/dsh-session-prompt

使用

  1. 打开 设置 → 插件配置;
  2. 展开「会话头部提示词」卡片;
  3. 勾选 启用注入,编辑 提示词内容,点 保存

说明:

  • 提示词注入到每个会话(全局根 section),不是单会话。
  • 关闭开关或提示词为空时不注入任何内容。
  • {{…}} 限制:系统提示词渲染器会对 {{变量}} 做严格模板插值,遇到未注册或格式错误的组会直接报错;本插件会在保存时拒绝包含完整 {{…}} 组的文本,保证坏提示词永远不会弄坏请求。单独的 {{(无闭合 }})是字面量,允许。

Usage

  1. Open Settings → Plugin configuration.
  2. Expand the Session head prompt card.
  3. Toggle Enable injection and edit Prompt text, then Save.

Notes:

  • The prompt is injected into every session (a root-global section), not per-conversation.
  • An empty prompt, or the switch off, injects nothing.
  • {{…}} restriction: the system-prompt renderer interpolates strict {{variable}} references and throws on unknown or malformed groups. The plugin refuses to save text containing a complete {{…}} group, so a bad prompt can never break requests. A lone {{ without a closing }} is literal prose and is allowed.