glh5835/dsh-prompt-refiner0

dsh-prompt-refiner

DeepSeek Harness 输入栏「提示词精炼」插件:✨ 一键把模糊草稿改写为目标/背景/步骤/要求/[假设] 结构化提示词;成本可路由(默认模型可换成便宜的优化模型)、结果缓存、token 用量统计落盘。静态版为功能主体,动态版免安装尝鲜。

包名
dsh-prompt-refiner
版本
0.1.0
许可证
MIT
最近更新
2026年9月5日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗

配置

配置文件 $DSH_HOME/prompt-refiner/config.json(默认 ~/.dsh/prompt-refiner/config.json),优先级:cordis 条目 config > config.json > 内置默认。

{
  "model": "deepseek-chat",   // 优化器模型;null = 跟随会话当前模型(省钱的关键开关)
  "provider": null,           // null = 跟随会话当前 provider
  "maxTokens": 2048,
  "temperature": 0.3,
  "minChars": 0,              // 手动模式不设下限;Phase A 自动模式建议 8
  "maxChars": 8000,
  "resultMaxChars": 4000,     // 结果长度护栏:超过视为混入思考内容
  "cacheMax": 200,
  "cacheTtlMs": 86400000,
  "metrics": true             // 统计落盘开关
}