huaguoxingkong/dsh-prompt-rewriter ↗★ 271

dsh-prompt-rewriter

One-click prompt enhancement beside the DeepSeek Harness composer: rewrites a draft in place without sending it.

패키지
dsh-prompt-rewriter
호환성
미검증
Harness peer 범위
>=0.1.0
버전
1.8.3
라이선스
MIT
최근 업데이트
2026. 11. 13.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-prompt-rewriter

配置

profile 插件行的 config 全部可选。前八项由设置页托管,后七项是运维上限,不暴露在界面上:

- id: dsh-prompt-rewriter
  name: dsh-prompt-rewriter
  config:
    # 设置页托管
    useCustomModel: false      # 是否固定使用 enhanceProvider/enhanceModel
    enhanceProvider: ""        # 空 = 跟随会话模型
    enhanceModel: ""
    ruleSet: legacy            # 增强规则版本:legacy(旧版)/ intent-first(意图优先)/ workbuddy
    referenceImages: false     # 是否参考输入框图片
    referenceFiles: true       # 是否参考输入框附件内容
    referenceContext: true     # 是否参考之前的对话
    shortcutEnabled: false     # 键盘快捷键(默认关闭)

    # 运维上限(不暴露在设置页)
    maxDraftChars: 8000        # 草稿字符上限
    maxOutputChars: 12000      # 输出字符上限
    maxOutputTokens: 2000      # 单次请求输出 token 上限
    timeoutMs: 90000           # 端到端超时
    historyTokenBudget: 6000   # 历史注入的 token 预算
    historyMaxMessages: 24     # 历史最多取多少条
    historyMessageChars: 4000  # 单条历史字符上限