dsh-spec-mode: interview-driven requirements freezing and read-only working tree

Preface

When developing agents or projects in DeepSeek Harness (DSH), requirements often emerge gradually through conversation, yet it is difficult to consolidate them into executable specifications and documentation in a timely manner. Common practices, such as organizing chat logs after the fact or supplementing documentation while coding, often lead to omissions and inconsistencies. The following introduces the community plugin dsh-spec-mode (Maintainer: LMQ00, Category: Workflow): it uses model-led incremental interviews to solidify gradually clarifying requirements into development specifications and project documentation. During the interview, the working tree is read-only to prevent drift caused by modifying code while chatting.

What is this

dsh-spec-mode is a workflow plugin for DSH. The repository description is: Spec mode for the DeepSeek Harness: interview-driven requirements capture with a read-only working tree. (package.json version 1.5.0, License MIT.)

The plugin receives DSH context and mounts capabilities via an entry module in the repository root; at runtime, it relies only on Node’s built-in crypto, fs, and path, without introducing additional host runtime packages. The installation form is: linked into a web profile, with the loader behavior named include:spec-mode.

Core Features

Incremental Interview and Specification Output

Interviews are triggered by real user input. The model asks follow-up questions and converges on requirements within the conversation, producing project-oriented development specifications and project documentation. The output documents follow six built-in writing rules: write only conclusions and hard facts, no motivation or background exposition; high information density, using tables where possible; AGENTS.md serves only as a documentation index and development specification ruleset, containing no progress updates, to-dos, or change logs.

Read-only Working Tree and Draft Writing

Once the interview is activated, the working tree is in a read-only state, and general file modifications are intercepted. The only allowed write target is the interview draft within the project documentation directory, facilitating continuous saving during the interview without touching the code tree.

Entering and Exiting

  • Enter: /spec [initial idea]
  • Exit: /spec off

The bare command /spec only switches mode and does not submit any message to the model; the interview begins from the idea written by the user after /spec, or the first regular message sent subsequently. Upon finishing, the model will pop up a confirmation where the user can choose “Exit and Save” or “Continue Interview”; usually, there is no need to manually execute /spec off.

Installation and Activation

The official README does not provide a one-line command in the form of dsh plugin add github:…. Installation relies on web profile linking + loader behavior:

  1. Link the plugin into your DSH web profile.
  2. Enable the loader behavior include:spec-mode in the profile configuration.

Refer to your current DSH version and profile documentation for specific profile field names and link syntax. Before installation, it is recommended to read docs/插件说明.md and README.md in the GitHub repository, and verify the MIT license and source code.

The plugin runs under the permissions of the current dsh process. You should review the code and permission impact yourself before installation.

Typical Usage

In a session where spec mode is enabled:

Enter interview with an initial idea:

/spec I want to build an internal tool to aggregate health check interfaces from various services

Enter mode only, waiting for the first user message to start:

/spec

(Just send your first regular message subsequently to start the interview.)

Manually exit mode:

/spec off

The maintainer provides self-tests for pure logic modules within the repository (no host dependency):

node selftest.mjs

There are 24 assertions covering draft anchors, path determination, projection folding branches, and reminder criteria for output files. When changing projection state fields or folding semantics, the state version number must be incremented by one simultaneously; otherwise, old lines in the persistent cache may be incorrectly folded.

Use Cases and Notes

Suitable for: Teams or individuals who want to systematically organize requirements within DSH conversations and write conclusions into specifications and project documentation; scenarios requiring changes to the working tree to be prohibited during the interview phase, allowing only documentation drafts to be written.

Notes:

  • The community directory SkillHub Plugin Page and GitHub are independent information sources and have no official affiliation with DeepSeek / High-Flyer; the DSH ecosystem philosophy is “everything is a plugin,” and this article introduces a community workflow plugin, not an official app store entry.
  • The public GitHub star count is 0 (subject to the display on the directory/repo page at the time), which does not represent feature completeness. Please verify independently before use.
  • Before modifying plugin behavior, consult docs/实现逻辑.md (state, guards, reminder mounting) and docs/交接文档.md (verification checklist, host upgrade troubleshooting) in the repository.

Links

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye