dsh-question-note: Add supplementary descriptions for DSH interactive Q&A options

Introduction

In DeepSeek Harness (DSH), agents trigger interactive Q&A dialogs via ask_user_question, allowing users to select options or provide custom input. However, option text often only summarizes the intent; specific constraints, exceptions, or context still require an additional sentence in the conversation—this interrupts the flow, and the model may not accurately associate the context with the previous selection in the next turn.

The dsh-question-note introduced below is a community-maintained client-side plugin: after a user selects an option, an optional supplementary note input box appears directly beneath it. The filled content is transmitted to the model alongside the selected option, requiring no protocol changes or modifications to the host’s validation logic.

What is this

  • Repository: buaaflyaway/dsh-question-note
  • Directory: SkillHub Plugin Page
  • Maintainer: buaaflyaway (npm package author field: NedFlanders)
  • Positioning: An enhancement to the DSH “Interactive Q&A” dialog; a pure browser-side Cordis plugin that does not take over official flows such as plan-review, approval, or timeout continuation.

While preserving the styling and interaction of the official QuestionComposer, this plugin provides an independent supplementary input area for each selected option.

Core Features

Parts consistent with the original

  • The dialog’s styling, functionality, and interaction are ported based on the official component, reusing the same set of CSS tokens and geometry.
  • The “Other (custom input)” row at the bottom is retained as an independent free-text entry point (semantics such as single-select typing clearing selections, and the coexistence of multi-select and checkboxes remain identical to the original).
  • Plan review cards, approval cards, timeout continuations, and settled answer reviews are handled by official components; this plugin does not take over these.

Per-option supplementary notes

  • Each selected option has its own supplementary input box beneath it, not shared with others; when unchecked, the input box hides but the text is preserved, and it restores upon re-checking.
  • In single-choice questions, switching options keeps the notes for each option separate without mixing them.

Answer format submitted to the model

The JSON structure remains unchanged upon submission:

{
  "answers": [
    {
      "id": "...",
      "selected": ["Option Text"],
      "custom": "…"
    }
  ]
}

Assembly rules for custom (from the README):

  • Single-select: custom is the raw text of the supplementary note.
  • Multi-select: Each option with a filled note occupies a line in the format “Option Text: Note”; if the bottom free-text row has content, it is appended at the end.
  • No supplementary note filled: Behavior is completely identical to the original.

The only behavioral difference from the original

When enabled, selecting an option in a single-choice question no longer automatically jumps to the next question (the original auto-jumps, leaving the user no time to fill in notes). The user needs to press Enter in the input box for that question or click the “Next Question” button; pressing Enter on the last question submits the form.

Implementation highlights (Reference for secondary development)

  • On the browser side, the enhancement component is registered to the conversation.composer chain slot with priority: -10 (the official default is 0); the chain election rule is that the smaller the number, the earlier it runs, and the first one with a non-null select wins, thus prioritizing the rendering of the general question card.
  • If duck typing mismatches, select returns null, safely degrading to the official dialog.
  • The host-side userQuestions.answer() still only validates that “each question is answered exactly once” and does not prohibit the coexistence of selected and custom.

Installation and Activation

Targets DSH 0.2.0-rc family (@deepseek-ai/* peer ^0.2.0-rc.1). The current npm package version is 0.3.0, License MIT, Node >= 20.

Build from source (optional):

pnpm install
pnpm run build     # Outputs lib/index.js (host side) and lib/client.js (browser side)
pnpm run check     # Syntax check for artifacts

Install to desktop configuration (writes to dsh.profile.bundles, requires DSH restart to take effect):

dsh plugin --profile desktop add <directory path or npm package name>

Refer to the README for installation commands; the package name on npm is dsh-question-note.

Typical Usage

This plugin does not add CLI or independent configuration items. Once enabled, it takes effect in any scenario that triggers the standard DSH “Interactive Q&A” dialog—for example, when the agent tool calls ask_user_question, the user selects an option in the dialog and adds a note below it. Upon submission, the model receives the same JSON answer with custom included.

The operation steps can be summarized as:

  1. Install and restart DSH as described above.
  2. Wait for the interactive Q&A dialog to appear in the conversation.
  3. Select an option and enter supplementary notes below it (optional).
  4. Single-select: Press Enter or click “Next Question” to proceed; press Enter on the last question to submit. Multi-select: Check and submit according to the original dialog flow.

If the internal structure of the official dialog component changes in future DSH versions, synchronization of src/client/carrier.ts and src/client/composer.tsx within the plugin may be required.

Use Cases and Notes

Who is it for

  • DSH users and plugin authors who need to hand over details bound to specific options in one go, beyond just “Select A / Select B”.
  • Those who want a multi-select / single-select flow with zero protocol changes, reusing the existing answers JSON.

Please note before installation

  • The plugin runs on the client with the current dsh process permissions; before installation, you should review the GitHub Source Code and LICENSE yourself to ensure it meets your security and compliance requirements.
  • Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer; the plugin’s stars and maintenance rhythm are subject to the repository.

Single-select scenarios require adapting to the interaction change of “no automatic question jumping after selection”; if you rely on the original’s “select and immediately go to next question” rapid filling, please run through a complete question flow in a test environment before enabling.

Conclusion

dsh-question-note incorporates “Option + Per-option supplementary notes” into a single ask_user_question submission without altering the host protocol. It is suitable for Harness workflows that require structured choices without losing context.

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

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

Xiaoye