deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
DeepSeek Harness(DSH)Web UI 插件:在输入框模型选择区域右侧增加一个「✨ 增强提示词」按钮,把未发送的草稿改写成更适合交给 AI Agent 执行的提示词。
Esc 拒绝、Enter 采用;reasoningEffort: off),速度快、省 token;将本项目复制到 DSH profile 的插件目录:
~/.dsh/profiles/web/node_modules/dsh-prompt-enhancer
Windows 示例:
C:\Users\<用户名>\.dsh\profiles\web\node_modules\dsh-prompt-enhancer
编辑 ~/.dsh/profiles/web/cordis.patch.yml,追加:
- insert:
- id: dsh-prompt-enhancer
name: 'dsh-prompt-enhancer'
完全退出 DSH(含托盘)后重新打开,刷新页面。
如果系统已安装 pnpm:
dsh plugin add github:LCQ-1024/dsh-prompt-enhancer
或指定 profile:
dsh plugin --profile web add github:LCQ-1024/dsh-prompt-enhancer
仓库根目录已包含 cordis.patch.yml,package.json 也已声明 dsh.bundle。安装时 DSH 会自动读取补丁并注册插件,无需手动编辑 cordis.patch.yml。安装后重启 DSH Web 服务。
在 cordis.patch.yml 的插件行中可加 config:
- insert:
- id: dsh-prompt-enhancer
name: 'dsh-prompt-enhancer'
config:
provider: deepseek-official
model: deepseek-v4-pro
reasoningEffort: off
maxTokens: 4096
timeoutMs: 120000
maxInputChars: 200000
| 配置项 | 默认值 | 说明 |
|---|---|---|
provider |
空 | 留空自动读取 settings.yaml 的 agent-default-model.provider |
model |
空 | 留空自动读取 settings.yaml 的 agent-default-model.model |
reasoningEffort |
off |
off 快速省钱;DeepSeek 还支持 high / max |
maxTokens |
4096 |
增强输出最大 token 数 |
timeoutMs |
120000 |
请求超时时间(毫秒) |
maxInputChars |
200000 |
允许的最大草稿字符数 |
systemPrompt |
内置 | 一般不需要修改 |
index-v5.jsclient-v3.js不要在本插件配置中写入任何 API Key;插件直接复用 DSH 已配置的模型凭据。
若 DSH 升级后按钮位置变化,可在插件加载前设置:
window.__dshPromptEnhancer = {
composerSelector: '[data-slot="conversation.composer.bar"]',
inputSelector: 'textarea',
sendButtonSelector: '',
};
卸载:删除 cordis.patch.yml 中对应 - insert: 块,删除插件目录,重启 DSH。
本插件不收集、不存储、不上传任何 API Key、账号、密码或用户数据。增强请求仅通过 DSH 本机服务转发给当前已配置的模型。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。