deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:hytime/dsh-thinking-effort
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
为 DSH(DeepSeek Harness) 的 llm-pi-ai 第三方模型补充可配置的思考强度档位,并设置子 agent 的默认思考强度。
DSH 的 llm-pi-ai 适配器允许你手工声明第三方模型,但这些模型通常没有 reasoningEfforts 配置。因此,Composer 的模型选择器不会显示「推理等级」,你也无法把网关实际支持的值(例如 ultra)映射到 DSH 的标准档位。
这个插件解决的是配置层问题:
high 映射为网关需要的任意字符串,例如 ultra;如果你满足下面任一情况,这个插件通常值得安装:
llm-pi-ai 手工接入了 OpenAI 兼容或其他第三方模型;high、max 等档位映射为 ultra、reasoning 等字符串;如果你只使用 DSH 内置模型,且 Composer 已经提供正确的推理等级,这个插件不是必需品。
这几个名称职责不同,请不要混用:
| 名称 | 用途 |
|---|---|
@hytime/dsh-thinking-effort |
npm 包名,安装、升级和卸载时使用 |
thinking-effort |
Cordis 组合条目 ID |
dsh-thinking-effort |
插件运行时 ID、日志前缀和浏览器 bundle ID |
| 功能 | 作用 |
|---|---|
| 默认档位补齐 | 为缺少配置的模型添加 off、high、max,不覆盖已有自定义值 |
| 模型级编辑 | 在「设置 → 思考强度档位」中逐模型勾选档位并填写线上值 |
| 网关值映射 | 例如 DSH 选择 high 时,实际向网关发送 ultra |
| 子 agent 默认值 | 为未显式指定档位的子 agent 请求自动填入默认思考强度 |
| 快捷预设 | 一键应用官方 DeepSeek 风格或通用档位组合 |
DSH 插件必须通过官方 dsh plugin 命令安装。普通 npm install 只会把包放入当前 Node.js 项目,不能替代 DSH profile 的依赖和 bundle 注册;也不要手工编辑 profile 的 package.json。
echo "DSH_HOME=${DSH_HOME:-$HOME/.dsh}"
ls "${DSH_HOME:-$HOME/.dsh}/profiles"
dsh --version
将正在运行的 profile 名称替换下面命令中的 <profile>,例如 web。
dsh plugin --profile <profile> add @hytime/dsh-thinking-effort
安装指定版本:
dsh plugin --profile <profile> add @hytime/dsh-thinking-effort@0.1.2
官方 CLI 会同时更新 profile 依赖、锁文件和 dsh.profile.bundles,无需手工追加 YAML。
dsh plugin --profile <profile> update @hytime/dsh-thinking-effort
dsh plugin --profile <profile> remove @hytime/dsh-thinking-effort
rm -f "${DSH_HOME:-$HOME/.dsh}/thinking-effort-loaded.json"
宿主侧改动需要重启 DSH;浏览器侧刷新 Web 页面。
完整的迁移、验证和排查步骤请查看 INSTALL.md。
旧版本可能使用以下依赖:
dsh-thinking-effort
github:hytime/dsh-thinking-effort
如果旧依赖仍然存在,使用官方命令迁移:
dsh plugin --profile <profile> remove dsh-thinking-effort
dsh plugin --profile <profile> add @hytime/dsh-thinking-effort@0.1.2
如果旧依赖已经被其他工具移除,但 profile 的 bundle 列表仍残留旧名称,先从旧 profile 的 pnpm-lock.yaml 找到旧 GitHub commit,再使用官方命令恢复并移除:
dsh plugin --profile <profile> add github:hytime/dsh-thinking-effort#<old-commit>
dsh plugin --profile <profile> remove dsh-thinking-effort
dsh plugin --profile <profile> add @hytime/dsh-thinking-effort@0.1.2
不要把 dsh-thinking-effort 添加到新的 dsh.profile.bundles 中。
打开 DSH 的「设置 → 思考强度档位」。
在「子 agent 思考强度」卡片中选择提供方默认、标准档位或自定义值,然后点击「应用」。
使用页面顶部的快捷预设,为全部第三方模型应用一组默认档位,或展开单个模型进行精细配置。
勾选需要的标准档位,并填写发送给网关的线上值。例如:
| DSH 档位 | 网关线上值 |
|---|---|
off |
留空,表示不发送 |
high |
ultra |
max |
max |
回到 Composer,选择对应模型后即可使用「推理等级」。
llm-pi-ai 设置,在启动和设置变更时扫描 models 与 modelOverrides,只为缺少 reasoningEfforts 的模型补充默认档位。llm-pi-ai 用户层的 subagentEffort;agent/request waterfall 只对未显式指定档位的子 agent 请求进行补全。off、high 或 max,请求不发送 reasoning 参数,由第三方网关决定默认行为。grep -n "@hytime/dsh-thinking-effort" \
"${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/package.json"
dsh --profile <profile> --dump-default-config
组合树应包含:
- id: thinking-effort
name: '@hytime/dsh-thinking-effort'
且不应再包含:
name: dsh-thinking-effort
宿主加载标记位于:
cat "${DSH_HOME:-$HOME/.dsh}/thinking-effort-loaded.json"
llm-pi-ai 适配器固定提供 7 个标准档位:off、minimal、low、medium、high、xhigh、max。插件不能增加第 8 个显示名称,但可以为每个档位填写任意线上值。off 档位必须填写线上值;off 留空表示不发送该参数。UNSUPPORTED_REASONING_EFFORT。off 和未设置都可能表现为不发送 reasoning 参数,是否真正关闭思考取决于第三方网关的协议语义。dsh --profile <profile> --dump-default-config,检查是否仍有旧的 name: dsh-thinking-effort。@hytime/dsh-thinking-effort。$DSH_HOME/thinking-effort-loaded.json 是否存在;日志前缀为 [dsh-thinking-effort]。off 档位是否填写了线上值,并确认目标模型配置仍然存在。UNSUPPORTED_REASONING_EFFORT: 改用该模型支持的档位,或恢复为「提供方默认」。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。