wht567/dsh-user-steer1

dsh-user-steer

Mid-turn user steering for DeepSeek Harness: /steer (visible) and /inject (quiet context notice) slash commands, a model-facing mid-turn guidance prompt section, and an always-visible injection bar above the composer.

包名
dsh-user-steer
版本
1.0.0
许可证
MIT
最近更新
2026年8月21日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wht567/dsh-user-steer

dsh-user-steer

DeepSeek Harness 用户中途指导(mid-turn steering)插件。任务运行中给 agent 一句指导,消息在工具批次边界注入当前 turn,绝不打断正在执行的工具调用。

功能

  • /steer —— 醒目插话:指导以 steering 气泡形态进入对话
  • /inject —— 静默注入:模型照常读取,对话流中仅显示一行紧凑上下文提示
  • 注入条 —— composer 上方始终可见的输入框(与输入框等宽),一键静默注入
  • 模型侧提示词 —— 系统提示词新增 mid-turn steering 章节,告诉模型"中途到达的消息是对当前任务的航向修正"

机制

消息经由 Agent.steer() 进入 inbox 的 next-step 队列,在下一个 step 边界被认领为真实的 user/message 事件——不杀工具、不破坏角色交替、prompt 前缀缓存完好。/inject 使用 plugin 源 + notice 形态,UI 投影为紧凑的上下文行。

安装

# 通过插件市场安装(推荐)
dsh plugin --profile web add github:wht567/dsh-user-steer

# 或本地路径安装
dsh plugin --profile web add file:/path/to/dsh-user-steer

安装后重启 dsh 生效。

许可

MIT © 2026 伍昊天