D
@wasd258/dsh-prompt-inject
v0.1.2 · 3 天前发布
Per-session system prompt injection for DSH: template library, per-session picker, default template for new sessions. 会话级系统提示词注入器:模板库、按会话选择、新会话默认模板。
README
dsh-prompt-inject
English | 中文
DeepSeek Harness(DSH)的会话级系统提示词注入器:每个会话可独立选择一段注入到系统提示词的文本(渲染在 persona 之后、工具引导之前)。
社区项目——非 DeepSeek 官方插件,不代表 DeepSeek 背书。
功能特性
agent.ctx 注册(cordis caller 绑定 → 该会话的 scope 层),只影响顶层会话。name + text + order);可设默认模板,新会话自动套用。conversation.input.right 插槽)直接在输入行为当前会话挑选模板,无需敲命令。{{model}} / {{cwd}}。GET /assemble 返回实际组装出的系统提示词,并在 preset 锁定提示词时如实报告 `completeBlocksInjectio版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- @wasd258/dsh-prompt-inject
- Repo
- git+https://github.com/WASD258-jpg/dsh-prompt-inject.git
- Engines
{"node":">=22.19.0"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-ui-settings"],"immediately":true}}