masknull/dsh-session-prompt ↗★ 0
dsh-session-prompt
在每个会话的系统提示词最顶部注入用户自定义提示词的插件,支持在设置页实时编辑。
AI 分析
核心用途是全局统一注入前置系统指令(如行为规范、人设等)。适合需要对所有会话施加统一底层约束,且希望免去逐个会话配置的用户。
安装
$
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.