跳到正文

tianji-qingtian/dsh-spec-loop

120最近提交 2026年8月14日

dsh-spec-loop DSH 插件

dsh-spec-loop 为 DeepSeek Harness 添加了 /spec 命令族,支持从提议到归档的完整结构化工作流。它与 OpenSpec 布局兼容,提供持久状态机、自动验证和逐场景验证。该插件还在输入框上方添加了变更卡片,显示当前阶段和进度。

如何安装 dsh-spec-loop DSH 插件

dsh plugin --profile web add "github:tianji-qingtian/dsh-spec-loop#v0.1.2

复制不会执行命令。安装 dsh-spec-loop DSH 插件前请核对仓库和版本。

dsh-spec-loop DSH 插件数据来源

dsh-spec-loop DSH 插件快照日期:2026年8月16日

discovered

dsh-spec-loop DSH 插件能做什么

  • /spec 命令族:init, new, status, list, show, approve, implement, verify, archive, validate, edit
  • OpenSpec 兼容的目录布局,自动验证和增量合并
  • 持久状态机(提议→批准→实现→验证→归档),重启后状态保留,无需自定义事件类型
  • 逐场景验证,通过 judge 调用并从 proposal.md 执行 bash 命令
  • 输入框上方的变更卡片,显示变更 ID、阶段、任务进度和下一步命令,支持中英文

dsh-spec-loop DSH 插件适合哪些场景

  • 在 DeepSeek Harness 中通过规格驱动的工作流管理功能开发
  • 自动跟踪和验证变更是否满足 OpenSpec 需求
  • 通过内置澄清问题和审批关卡协作提案
  • 将完成的变更合并回规格文件并归档

dsh-spec-loop DSH 插件适合谁

  • 使用 DeepSeek Harness 进行 AI 辅助编码的开发者
  • 采用 OpenSpec 规格驱动开发的团队

dsh-spec-loop DSH 插件的限制

  • 需要 dsh CLI 在 PATH 中,仅使用 npx 不兼容
  • 批准状态仅限当前会话,不会跨会话共享
  • ctx.fs 不支持移动/删除,归档使用 ctx.shell(工作区沙箱允许)
  • 无自定义会话事件类型,状态转换依赖标准事件

dsh-spec-loop DSH 插件的仓库 README 摘录

以下文字摘自 dsh-spec-loop DSH 插件的上游仓库 tianji-qingtian/dsh-spec-loop 的 README,版权归原作者,仅作引用。

Spec-driven development loop for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`): a `/spec` command family drives **propose → approve → implement → verify → archive**, with change directories compatible with the [OpenSpec](https://github.com/Fission-AI/OpenSpec) layout under `<workspace>/openspec/`. > The harness is in developer preview and iterates quickly — expect compatibility-breaking changes. > 中文说明见 [README.zh.md](README.zh.md)。 ## Features - **`/spec` command family** — `init` · `new <goal>` · `status` · `list` · `show <id>` · `approve <id>` · `implement <id>` · `verify <id> [--deep]` · `archive <id>` · `validate [id]` · `edit <id>`. Commands orchestrate and touch the filesystem only; proposal and implementation content is generated by the agent's main model through `agent.steer` with the full tool set. - **Clarification on `/spec new`** — up to three built-in choice questions (scope / constraints / acceptance), in the language of the goal; answered through the harness question UI. Subagent sessions and missing UI providers fall back to proceeding without clarification. - **OpenSpec-compatible layout** — `openspec/project.md`, `openspec/specs/

阅读完整 README仓库许可: MIT

dsh-spec-loop DSH 插件常见问题

如何安装 dsh-spec-loop?

首先确保 dsh CLI 在 PATH 中,运行 'npm install -g @deepseek-ai/dsh' 或 'pnpm add -g @deepseek-ai/dsh'。然后运行 'dsh plugin --profile web add "github:tianji-qingtian/dsh-spec-loop#v0.1.2"',并重新启动 dsh(dsh --profile web)。在设置 > 插件中确认插件已列出。

安装这个插件后有哪些可用命令?

插件添加了 /spec 命令及其子命令:init, new, status, list, show, approve, implement, verify, archive, validate, edit。每个子命令对应规格驱动开发循环中的一步。使用 /spec help 查看快速参考。

这个插件能用于已有的 DeepSeek Harness 项目吗?

可以,但需要先运行 /spec init 在工作区创建 OpenSpec 兼容的目录结构(openspec/project.md 和子目录)。之后就可以用 /spec new 开始新的变更提案。

我可以通过 npx 使用 DeepSeek Harness 并安装这个插件吗?

不行,插件需要 dsh CLI 全局安装在 PATH 中。如果只通过 npx 启动 harness,会提示 'command not found: dsh'。请先全局安装 dsh,再使用插件。

批准关卡是如何工作的?

implement 命令会拒绝执行,除非变更处于 'approved' 状态。approve 命令将状态从 'proposed' 改为 'approved'。状态通过标准命令事件的投影在会话内追踪,重启后同一会话内状态保持不变。