dsh-no-guess: Ask First When Requirements Are Unclear

Foreword

When running agents in DeepSeek Harness (DSH), a user’s single sentence often gives only a direction without boundaries. If the model directly modifies files, executes commands, or sends messages, it easily treats “what I think you want” as a fact. Compared to rolling back afterwards, a safer approach is to clarify the goal and method before acting.

Below introduces the community workflow plugin dsh-no-guess (repository Tirpitz-39/dsh-no-guess). It intervenes when the model prepares to call tools: once a signal of “guessing what the user wants” appears in the thinking chain, it blocks irreversible operations and switches to using ask_user_question to clarify with the user. SkillHub Directory Page: dsh-no-guess.

What is it

dsh-no-guess (npm package name dsh-no-guess, current version 0.5.1, MIT License) is maintained by Tirpitz-39 and categorized as a workflow. One-sentence positioning: Ask first if unclear; when the user’s sentence is ambiguous, the model is not allowed to guess and act (ask before guessing).

The plugin mounts onto the tool calling path via a Cordis patch from DSH, does not replace the model itself, but rather, in an “armed” state, allows read-only tools according to strategy while blocking write and execution tools, until clarification is complete or the block limit for the current turn is reached.

Core Features

Main Trigger: “Guess” Signal in the Thinking Chain

Every time the model prepares to call a tool, the plugin scans the recent reasoning (reasoning) text in the current assistant message. DSH clears the reasoning of some transition messages before tool calls, so the implementation merges the recent several messages for matching.

If a guessing phrase pointing to user intent appears (Chinese or English, case-insensitive), it is considered the model admitting it is “guessing,” triggering a block. Example signals include:

  • Chinese: “I guess the user”, “not sure what the user”, “don’t know what the user wants”, etc.;
  • English: I guess the user, not sure what the user, etc.

Matching is only for the current turn’s reasoning; guessing words used in the previous turn are not armed for the next round. Turns in user messages discussing the plugin itself (including names like dsh-no-guess) are exempt to avoid accidentally blocking during self-discussion.

Behavior After Blocking

After being blocked, the flow is as follows:

  1. Call ask_user_question, clarifying in two layers: what to do (goal, deliverables, scope) and how to do it (method, constraints, acceptance criteria), providing 2–4 specific options for each;
  2. If other tools are called after asking in the current turn, it will be blocked again—stop after asking, disallowing “asking a question then guessing and filling the rest yourself”;
  3. Block at most maxBlocksPerTurn times per turn (default 2); if the limit is reached, release and allow execution to avoid stalling the session.

Optional fallback ruleGate (default off): applies literal rules to very short messages, causing many false positives (e.g., “Are you sure?” might also be blocked), generally it is kept off.

Tiered Release Based on Reversibility (readPolicy: tiered)

The default readPolicy is "tiered": when armed, read-only tools are not blocked, only irreversible actions are blocked. Reading files, searching, fetching web pages, etc., are exactly means to resolve ambiguity; blocking all would force the model to continue guessing.

Tier Example Tools Armed State
read read, glob, grep, web_fetch, web_search, etc. Allow
write edit, write, remember, create_goal, etc. Block
execute pwsh, subagent, workflow, etc. Block
external send_message, plugin_manager, schedule_create, etc. Block
allow ask_user_question, todo_write, wrapup_check, claim_*, etc. Allow
unknown Tools not listed or new plugin tools Block (fail-closed)

It fails open when the guard itself encounters an exception, not dragging down the host; for unknown tools it fails closed. You can override the tier of a single tool via tierOverrides, or set readPolicy: "legacy" to return to the old “block everything not on whitelist” behavior.

Scenarios Where Blocking is Disabled

Scenarios for allowing execution listed in the plugin README include: brief acknowledgments (“continue”, “ok”, “1”, etc.), sentences confirming the conversation itself, sessions where there is no one to answer (subagent/scheduled task/bridge, etc.), machine-injected turns (no human lastText means thinking detection is not armed), the tool itself for subagent/workflow etc., the main switch turned off, and whitelist tools like ask_user_question.

Timeout and modelGate

If the user does not reply within timeoutMinutes (default 10, range 1–120) after being blocked, the plugin posts a message to the session: proceed based on the minimum assumption and state the assumption at the beginning of the answer; no further blocking in this turn.

modelGate (default off, beta): uses an additional model call to determine if requirements lack information. The README states it is not fully refined—the judge looks at a single message without dialogue context, easily being too strict; the main trigger relies on the thinking chain, and enabling it requires accepting additional tokens and risks of false positives.

Installation and Activation

Environment requirements: DSH (must have tools and webServer services), Node.js ≥ 18. The plugin works on Windows / macOS / Linux.

The installation steps provided by the official README are as follows:

git clone https://github.com/Tirpitz-39/dsh-no-guess
dsh plugin add file:./dsh-no-guess

For local development, you can also directly use dsh plugin add file:<plugin-directory>. After installation, restart DSH and enable it in Settings → No Guess or the “No Guess” button next to the input box.

Configuration can be found in the settings page, POST /dsh-no-guess/config, or by editing config.json in the data directory (illegal values are clamped back to the valid range). The data directory defaults to no-guess/ under DSH_HOME; if DSH_HOME is not set, ~/.dsh/no-guess/ is used.

Common configuration items (excerpt):

Config Item Default Description
enabled true Main switch
thinkingGate true Main trigger for “guess” signal in thinking chain
ruleGate false Literal rule fallback
maxBlocksPerTurn 2 Max number of blocks per turn
readPolicy "tiered" Tiered release strategy
logUserText false Whether to log user message snippets in logs

Typical Usage and Self-Testing

No separate commands are needed daily: keep enabled and thinkingGate on, deliberately give vague tasks in the conversation, observe if the model is asked to clarify after guessing words appear in its thinking, and if edit/pwsh are blocked while read/grep can still be used to read code for evidence.

Tests provided by the maintainer (no DSH runtime needed):

npm test
node test/smoke.mjs

The repository runs CI on ubuntu/windows with Node 18/20/22 via GitHub Actions. You can use tools/analyze-log.mjs to analyze read-pass records in no-guess.log to compare differences between tiered and legacy strategies.

Suitable Scenarios and Notes

Who is it for: Developers who use DSH for coding, operations, or workflow automation over the long term and want to reduce “accidental repository modifications / accidental command executions”. Especially suitable for scenarios with short instructions, multiple references, or contradictory requirements.

Permissions and Security: The plugin runs with the current DSH process permissions. Please read the repository source code and the MIT license before installing and evaluate whether to include it in your environment yourself. The SkillHub directory is a community site with no official affiliation to DeepSeek / Hypersphere; the DSH ecosystem philosophy is “everything is a plugin”, and this plugin is one of the tool call guards.

Known Limitations (as per original README): Cannot trigger if guessing phrases are not written in the thinking (inherent to the solution); modelGate lacks context; blocking inside subagents dispatched via subagent / workflow is not done (by design).

Conclusion

dsh-no-guess implements “ask before doing” at the tool calling layer: uses introspection signals in the thinking chain to block guessing, uses a tiered strategy to keep read-only verification, and uses structured questions to fill in the goal and method. If you are often dragged into major changes in Harness by a vague sentence, you can install according to the steps above and enable “No Guess” in settings.

  • Directory Page: https://www.skillhub.cn/plugins/Tirpitz-39/dsh-no-guess
  • GitHub: https://github.com/Tirpitz-39/dsh-no-guess
羽毛球分组比赛记分
小程序二维码

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

Xiaoye