A DeepSeek Harness preset that enforces a six-step thinking workflow with per-step output and an audit loop.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:sweeete/six-step
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
把「六步思考」做成 DeepSeek Harness (DSH) 的一个可安装预设(preset / bundle)。
本仓库是分发副本。DSH 打开会话时会把这里的
cordis.patch.yml(persona + 团队编排)和guard.js(执行完整性守卫)注入 agent,使其强制按六步思考走完每一步、并提交执行凭证。
六步是什么
每一步的思考结果都必须输出给主人,审计不通过就带结果回第 1 步循环,直到任务圆满完成:
| 步 | 名称 | 必须回答 / 产出 |
|---|---|---|
| 1 | 是什么 | 把输入逐字拆解(每个词、每句话),字面事实 + 潜台词 |
| 2 | 为什么 | 主人的动机、真实意图、判据 |
| 3 | 怎么做 | 执行方案 + 完成标准 |
| 4 | 任务划分 | 把方案拆成简单子任务(输入 / 输出与验收 / 依赖) |
| 5 | 执行 | 逐子任务动手并给出执行结果 |
| 6 | 审计 | 逐子任务按 8 条清单审计;不达标 → 带结果回第 1 步循环 |
轻量问题(不满足「复杂」判定)单 agent 照走六步(从简);复杂问题(verdict=复杂)由 Lead 领导 6 个具名 teammate(six-what / six-why / six-how / six-divide / six-execute / six-audit)严格串行、压缩接力完成,Lead 只派发、压缩转达、给结果。
执行完整性守卫(guard.js)
guard.js 注册 six_step_receipt 工具 + 两个钩子,保证形式完整性(不验证推理真实性):
agent/pre-step:每真实用户消息重置状态(新一轮重新走六步)。agent/turn-stopping:最终答复前必须提交六步凭证;缺凭证就agent.steer()拉回重做,无次数上限。- 子 agent(teammate)只做单步、交不出完整凭证,由
isTeammate()豁免放行。
凭证字段:complexity / path / steps(七项全 done) / subtasks(全 passed=true) / audit(8 条全 true) / concluded=true。
安装(两种)
A. 从本 GitHub 仓库直接装(推荐分发方式)
# 在 DSH 里执行(或对应 CLI):
install_bundle git+https://github.com/sweeete/six-step.git
装好后进入 DSH 设置,把 preset 选为 six-step(本预设 id);之后新会话即走六步思考。
B. 本地路径
install_bundle /absolute/path/to/six-step
安装硬门槛:
guard.js+cordis.patch.yml随包、且package.json的name必须与cordis.patch.yml里six-step-guard那一行的name逐字一致(否则 guard 不加载)。本仓库两者均为@local/dsh-six-step-preset,已对齐。注意:本仓库
version为1.0.0,与 DSH 运行时(@deepseek-ai/dsh-app-boot0.2.2-rc.1)不要求强制对齐即可普通安装;若要进官方 catalog 则需对齐并改用@deepseek-ai/dsh-*命名空间(需上游 PR)。
文件清单
| 文件 | 作用 |
|---|---|
cordis.patch.yml |
persona(六步铁律 + 团队编排)+ preset 定义 |
guard.js |
执行完整性守卫(零外部依赖,仅 node:crypto) |
package.json |
bundle 元数据(dsh.bundle.patch → cordis.patch.yml) |
README.md |
本说明 |
LICENSE |
MIT |
License
MIT © sweeete
Links
More in this category
loopx-project/loopx#dsh-loopx-plugin★ 6766
LoopX, a provider-neutral, local-first state kernel and control plane for long-horizon agents: keeps Goal, Todo, gate, evidence, quota, recovery, and handoff state above DeepSeek Harness, while the plugin bootstraps the CLI and skills, admits bounded same-session continuation, and adds a loopback GoalBar for the exact bound loop. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Q00/ouroboros#integrations/dsh-plugin★ 6386
Config-only bundle that mounts Ouroboros through the DSH MCP client, exposing 36 interview, Seed, execution, evaluation, and evolution workflow tools in DSH.
chuspeeism/dashi-taskboard#deepseek-harness★ 3534
Embeds the active installed Codex Taskboard runtime in the DeepSeek Harness sidebar, using its launcher runtime descriptor instead of a fixed port.
NanmiCoder/dsh-agent-teams★ 3098
AgentTeams multi-agent teams.
EthanYoQ/AI-Novel-Writer#dsh-ai-novel-writer★ 2901
Installs a dedicated AI novel-writing preset and workbench: revisioned local project assets, a compact side drawer, and native approval-gated single-file changes.
shanliuling/dsh-image-gen★ 1760
Native conversational image generation for DeepSeek Harness: ask the agent to create an image, and it handles generation and keeps the result directly in the conversation.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.