deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:light051001/dsh-preset-qa-mode
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
一个面向 DeepSeek Harness (DSH) 的智能体预设:接到任何任务都先进行极其详尽、结构化的提问,彻底澄清目的,经你明确确认后才开始执行。
An agent preset for DeepSeek Harness (DSH): every task — big or small — starts with an exhaustive, structured Q&A to fully clarify your intent. It only starts working after you explicitly confirm.
「问答模式」以 DSH 内置的 standard(标准模式)预设为底版,完整保留其全部能力(文件编辑、Shell、文件与网页检索、网页抓取、Skills、计划模式、目标与 /goal 命令、子代理、工作流、交付物声明等),只改写了人设与行为规则(qa-mode.patch.yml 中 plugins 的 persona 行)。
qa-mode is a copy of DSH's built-in standard preset with every capability kept (file editing, shell, file & web search, web fetch, skills, plan mode, goals and the /goal command, subagents, workflows, deliverables…). Only the persona / behavior rules are rewritten (the persona row in qa-mode.patch.yml).
ask_user_question 给出带选项的选择题,推荐项置顶标注。ask_user_question 阻塞式提问收尾(确认,开始执行 / 需要修正 / 跳过本次关卡);用户作答前不动任何东西。「跳过本次关卡」只对当前这一个任务生效,下个任务照常过关。要求 / Requirements:DSH 0.2.x(桌面版或 CLI)。仍在 DSH ≤ 0.1.5 上请改用 legacy-0.1.x/ 或标签 v0.3.0。
DSH 0.2 起,预设不再是一个独立文件,而是 profile 组合里的一行声明。安装 = 把 qa-mode 的 insert 区块写进该 profile 的补丁层:
C:\Users\<用户名>\.dsh\profiles\<profile>\cordis.patch.yml${DSH_HOME:-$HOME/.dsh}/profiles/<profile>/cordis.patch.yml(桌面版的应用内 profile 名为 desktop。)
方式一:一键脚本 / Script(自动探测 profile、自动备份、可重复运行)
powershell -ExecutionPolicy Bypass -File .\install.ps1
bash install.sh
方式二:手动 / Manual
把 qa-mode/qa-mode.patch.yml 的全部内容追加到上面那个 cordis.patch.yml 末尾即可——该文件是一个 YAML 数组,追加一个 - insert: 条目就是新增一个预设。
然后重启 DeepSeek Harness(profile 只在启动时组合一次),再新建会话,在预设列表中选择「问答模式」。
Restart DSH after installing — the profile is composed once at boot — then start a new session and pick 问答模式.
确认生效 / Verify:预设列表出现「问答模式」。若是红色「损坏」徽标,把鼠标停上去会显示具体原因(通常是某个插件包解析失败或配置不合 schema)。
卸载 / Uninstall:删除 cordis.patch.yml 中 # >>> dsh-preset-qa-mode 与 # <<< dsh-preset-qa-mode <<< 之间的区块,或还原安装脚本生成的备份 cordis.patch.yml.bak-qa-mode,再重启。
见 CHECKLIST.md — 覆盖澄清阶段、打断与确认、执行阶段的完整检查项。
See CHECKLIST.md.
screenshots/:预留目录,建议放入「预设选择界面」「一轮结构化提问」「总结确认」等截图。所有行为规则都在 qa-mode/qa-mode.patch.yml 里 config.plugins 的 persona 行,分两段:
config.prefix:身份句 + 全部澄清协议、总结确认、执行与语言规则(要改的通常就是这里);config.suffix:Your working directory is {{cwd}}.——部署默认人设的工作目录句,预设会整体遮蔽部署人设,所以这一句必须在此重申。Every behavior rule lives in the persona row's config: prefix carries the identity sentence plus the whole clarification protocol, and suffix restates the deployment's working-directory sentence (a preset shadows the deployment persona outright, so omitting it drops that line).
可直接修改:
insert 行 config 下的 name(预设列表里显示的名字)与 description。改完保存后,重跑一次安装脚本(它会替换旧区块,不会叠加),重启 DSH,再新建会话。
⚠️ 两个易踩的坑:
- 不要改回旧版的
config.text——dsh-persona只接受prefix/suffix/complete/includeRuntimeContext,缺少必填的prefix会让整个预设挂载失败(预设卡片显示「损坏」,选中它的会话起不来)。plugins里每个name都必须是已安装的插件包。写错一个包名,整条预设就会解析失败——这正是 DSH 0.2 把workflow-worker-thread换成workflow-ptc时最容易漏掉的地方。
| 预设版本 | 适配的 DSH | 安装方式 | 说明 |
|---|---|---|---|
| 0.4.0 | 0.2.x(含桌面版 0.2.0-rc.2) | 写入 profile 的 cordis.patch.yml |
改为 0.2 的声明式 dsh-agent-preset 行;跟进 workflow-ptc、tool-ralph 默认停用、tool-plugin-manager 等变化 |
| 0.3.0 | 0.1.5-rc.2 | ~/.dsh/.agent-presets/qa-mode/agent.cordis.yml |
人设行迁移到 prefix/suffix;补齐 /goal、present、模型选择、网页抓取 |
| 0.2.0 / 0.1.0 | ≤ 0.1.4 | 同上 | 使用已移除的 config.text,在 DSH ≥ 0.1.5 上无法挂载 |
0.2 起
~/.dsh/.agent-presets/彻底失效:整个应用不再有任何代码读取它,放在那里的预设文件会被静默忽略。仍在用 0.1.x 的用户请取标签v0.3.0。
qa-mode/qa-mode.patch.yml 是 standard 的分叉(fork):它 plugins 列表里的每一行都应与同版本 DSH 的 standard 预设完全一致,唯一的差异是 persona 行。DSH 升级后建议重新对齐——0.2 起内置预设打包在 app.asar 内,需要先取出来:
# 桌面版:用应用自带的 Electron 作为 Node 读 asar
ELECTRON_RUN_AS_NODE=1 "/path/to/DeepSeek Harness" -e \
"process.stdout.write(require('fs').readFileSync('<install>/resources/app.asar/dsh/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml','utf8'))" \
> standard.patch.yml
diff standard.patch.yml qa-mode/qa-mode.patch.yml
除 persona 行与顶部分叉说明外,任何差异都说明 standard 新增或调整了能力而本预设尚未跟进。
The preset is a fork of standard: every row in its plugins list should match the same DSH version's standard preset, with the persona row as the only intentional difference. Re-diff after each DSH upgrade; anything else differing is drift.
standard 预设;DeepSeek Harness 以 MIT 许可开源:https://github.com/deepseek-ai/deepseek-harness见 CHANGELOG.md。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。