dsh-preset-requirement-confirm: Confirm requirements via survey, then execute Agent.

Preface

When a task is described directly in DSH, the model often immediately starts modifying files and running commands. When a task involves multiple aspects, default assumptions can easily diverge from actual intentions, and the cost of rework afterwards is high. Common practices include repeatedly asking questions in the conversation or relying on approval to intercept sensitive operations, but the former has a loose rhythm, while the latter often has already reached the execution phase.

dsh-preset-requirement-confirm is a “confirm first, execute later” Agent preset package: the model first breaks down the requirement into sub-requirements and confirms each question via a single questionnaire (options, multi-select, manual input, and each question can carry a plain-language explanation). It only starts execution after you submit. Below is an introduction to its composition, installation method, and usage steps.

What Is This

  • Name: dsh-preset-requirement-confirm (npm package name matches the installation identifier)
  • Maintainer: Self-Identity
  • Category: Workflow (community directory SkillHub)
  • License: MIT; not affiliated with DeepSeek official

This package aligns with the factory standard combination of DSH desktop client 0.2.1-rc.1 / 0.2.1-rc.2. It adds a four-step workflow of “decompose → questionnaire → wait for confirmation → authorization description” on the persona, and replaces the questionnaire tool to support an optional detail description field for each question; the browser half corrects the alignment and color scheme between description text and question titles.

Core Features

Agent Preset (host)

  • Inserts @deepseek-ai/dsh-agent-preset via cordis.patch.yml, making Requirement Confirmation appear in the preset selector.
  • Disables the factory @deepseek-ai/dsh-tool-ask-user, and registers a same-named ask_user_question tool via this package’s ./tool; the schema gains an additional optional detail field per question. The same-name registration is used for integration with the questionnaire card (e.g., reopening it from the tool row after closing the card).
  • All other bundle lines remain consistent with standard (persona, agent-instructions, bash/fs, plan mode, delegation, todo, web, etc.).

Browser Styling (client)

The factory questionnaire card only provides a small outer margin for the detail description block, so the description text sticks to the edge and does not align with the question title indented by 24px. The client half injects CSS: padding-inline: 24px on both sides of the description block, and uses the gray color for option explanations (var(--dsw-alias-label-tertiary)). The selector anchors on data-question-scroll and the DOM structure, without depending on CSS Module class names that may change.

Execution and Approval

  • The model only starts executing the task after receiving the questionnaire submission.
  • Operations requiring authorization will display the justification filled in by the model in the approval panel (the persona constrains the model to write it clearly, without modifying the client UI).

Installation and Activation

The plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the source code and LICENSE on GitHub to confirm compliance with your security and compliance requirements.

  1. Client sidebar → Plugins → Add Plugin.
  2. Fill in the installation identifier (the version is as documented):
dsh-preset-requirement-confirm@1.3.0

You can also choose to install from a local source code directory (development scenario).

  1. Click Install → Enable Now; if prompted “changes will take effect on the next restart”, restart the client.
  2. Create a new conversation and select Requirement Confirmation in the preset selector.

package.json’s engines requires Node >=22.19.0 and DSH >=0.2.1-rc.2 <0.3.0.

Typical Usage

  1. Create a conversation with the Requirement Confirmation preset and describe a task that involves multiple aspects.
  2. The model calls ask_user_question: each question can display a detail description, several options (including All of the above), and multi-select and manual input entries.
  3. Answer and submit in the questionnaire card; only after this does the model begin execution.
  4. If the operation requires authorization, review the justification provided by the model in the approval panel before deciding whether to approve.

Applicable Scenarios and Notes

Suitable for: Workflows with multiple requirement dimensions, where you want to align options and boundaries in one go before modifying code or running commands; conversations where you want each question to carry a brief explanation to reduce the probability of misselection.

Known limitations (from README):

  • Browser styling depends on the data-question-scroll structure of the questionnaire card; after client revisions, the styling may silently fail, but this does not affect the layout.
  • The styling only applies to general questionnaire cards and does not affect plan review cards or answered replay cards.
  • The preset is a soft constraint on the model, and the model may still skip the questionnaire; when hard blocking is needed, please combine it with sandbox and approval strategies.
  • The approval description is not a separate collapsible area; it relies on the model writing clearly in justification.

Uninstall: disable or remove this package in Plugins and restart the client.

Links

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

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

Xiaoye