masknull/dsh-session-prompt ↗★ 0
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
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:masknull/dsh-session-prompt说明文档
阅读完整 README ↗使用
- 打开 设置 → 插件配置;
- 展开「会话头部提示词」卡片;
- 勾选 启用注入,编辑 提示词内容,点 保存。
说明:
- 提示词注入到每个会话(全局根 section),不是单会话。
- 关闭开关或提示词为空时不注入任何内容。
{{…}}限制:系统提示词渲染器会对{{变量}}做严格模板插值,遇到未注册或格式错误的组会直接报错;本插件会在保存时拒绝包含完整{{…}}组的文本,保证坏提示词永远不会弄坏请求。单独的{{(无闭合}})是字面量,允许。
Usage
- Open Settings → Plugin configuration.
- Expand the Session head prompt card.
- 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.