Preface¶
When running agents in DeepSeek Harness (DSH), the model sometimes calls ask_user_question to confirm options with a human. You watch the page and click—that’s natural. But if the session is left in the background, runs headless, or you simply step away, the question stays open and the whole conversation round gets stuck. Common workarounds are to shorten timeouts, tweak prompts to ask humans less, or just stay glued to the terminal—each has its cost.
dsh-plugin-auto-answer is a community-maintained Host-side workflow plugin: if no one answers within a configurable time window, it submits the option marked “Recommended” on their behalf, letting unattended sessions proceed; if you answer normally within the window, your choice takes effect as-is and the plugin does not interfere.
What This Is¶
- Name: dsh-plugin-auto-answer (often shown as “Unattended Auto-Answer” in directories and the GUI)
- Maintainer: AK-blank
- Category: Workflow
- License: MIT (see the
package.jsonin the repo) - Positioning: An unofficial DSH plugin; a pure Host bundle that renders no UI in the page, has no browser half, and adds no extra dependencies.
It solves this: if ask_user_question on the user-questions/request waterfall chain goes unanswered for too long, the session stalls. The plugin registers at the front of the chain (prepend) and acts as a proxy that calls next() rather than vetoing subsequent handling.
Core Functionality¶
Timeout vs. Human Answer Priority¶
| Situation | Result |
|---|---|
| Human answers within the time window | Human’s answer takes precedence, unchanged |
| No one answers within the window | Submit the “Recommended” option |
Downstream answer fails (e.g. NO_PROVIDER when there is no page) |
Keep waiting through the window; submit the recommended option when it expires |
The tool itself has already timed out (ASK_TIMED_OUT) |
Immediately submit the recommended option instead of returning pending |
The turn is cancelled (ASK_ABORTED, etc.) |
Propagate upward; the plugin does not auto-answer |
The listener uses { global: true, prepend: true }. global cannot be omitted: plugins installed through the plugin manager land in a single-agent scope, and without the global flag they can only affect the one session in which they were installed.
How the “Recommended” Option Is Identified¶
- Option text ending with
(Recommended),(推荐),(推荐), or(Recommended)(case-insensitive); it does not have to be the first item. - The original label (including the recommended marker) is preserved when submitted, because that is the value provided by the asker.
- Multiple-select questions: all items with a recommended marker are selected.
- When no markers exist,
fallbackdecides:first(default),last, ornone(do not auto-answer, leave it to a human). - Questions with no options:
freeText: skipsubmits an empty selection (a “skip” in the protocol sense);blockkeeps it open. plan-review-type intents are ignored by default (batch-approving plans has consequences); the plugin only intervenes if you explicitly setplanReview: approveordecline.- In a batch of questions, the entire batch is submitted only when all of them can be auto-answered, to avoid partial auto-answering partially masking decisions that should be made by a human.
Explicitly Out of Scope¶
The plugin does not handle approval/request (tool approvals). Auto-approving commands is a different risk level, and the author deliberately left it out.
Installation and Activation¶
Install commands come from the repo README (no build needed; the source is the artifact):
# Install from GitHub
dsh plugin --profile web add github:AK-blank/dsh-plugin-auto-answer
# Local development directory (absolute path)
dsh plugin --profile web add /absolute/path/to/dsh-plugin-auto-answer
dsh plugin add writes the package into the profile and selects the corresponding bundle layer; it appears on the Plugins page in the GUI and can also be inspected with dsh --profile web --dump-config (# == dsh-plugin-auto-answer → id: auto-answer).
Newly installed bundles activate via HMR. Replacing an already-installed copy of the same plugin requires restarting dsh web: Host modules are cached per process, and changes to lib/index.js will not be reloaded by a re-apply.
Community directory page: https://www.skillhub.cn/plugins/AK-blank/dsh-plugin-auto-answer
Source and documentation: https://github.com/AK-blank/dsh-plugin-auto-answer
The directory site is a community ecosystem index and has no official affiliation with DeepSeek / High-Flyer.
Configuration¶
All keys are optional; the plugin’s config in the profile overrides the defaults.
| Key | Default | Meaning |
|---|---|---|
enabled |
true |
Master switch; when false, no listener is registered |
timeoutSeconds |
120 |
Seconds to wait before auto-answering (5–86400) |
fallback |
first |
When no recommended marker exists: first | last | none |
freeText |
skip |
For option-less questions: skip | block |
planReview |
ignore`` | Plan review:ignore\|approve\|decline` |
Append the following example after the bundle layers in the profile’s cordis.patch.yml:
- id: auto-answer
name: 'dsh-plugin-auto-answer'
config:
timeoutSeconds: 90
fallback: first
If the tool side enables its built-in timed mode, set timeoutSeconds less than tool-ask-user’s timeout; otherwise the tool will return pending first and this plugin’s auto-answer may never come into play. The default blocking tool has no such constraint.
Observability¶
dsh web Host logs are usually not visible directly in the terminal, so the plugin supports optional JSONL tracing:
DSH_AUTO_ANSWER_LOG=/tmp/auto-answer.jsonl dsh web
Event types include armed, answered, delegated (human answered), delegate_error, and failed. A failure to write the trace path does not affect handling of the corresponding question.
Typical Behavior and UI Notes¶
The README documents end-to-end verification on a real Host (default blocking tool): unattended, after the 20-second window expires the trace shows armed → answered and the turn finishes normally; attended, selecting a manual option within the window produces a trace of armed → delegated, and the human’s option takes effect.
Known UI behavior (by design, not a defect): while the browser is still attached, the question card may remain on screen after auto-answering, and the session line may continue to show “waiting for answer.” The Host side has already recorded the answer and continued the turn; the stale card is Client state. You can click “Submit,” “Skip,” or refresh the page to dismiss it; submitting again for an already-settled request will not inject a late answer (verified by the author). The Host plugin cannot unilaterally remove the card; auto-closing it requires Client-side capabilities.
An offline self-test can be run:
node selftest.mjs
(The README states it has about 39 checks covering config normalization, recommended-option rules, timer races, and so on.)
Use Cases and Caveats¶
Suitable for: long-running unattended dsh web / headless sessions; scenarios where you want the model to default to the recommended path when a “Recommended” marker is present while still preserving a human window; workflow-style automation orchestration.
Please be aware before use:
- The plugin runs with the privileges of the current
dshprocess. Before installing, read the source and the MIT license, and assess for yourself whether you accept the auto-answer strategy (especially behaviors beyondplanReviewandfallback: none). - The auto-selected item is the text with the recommended marker (or first/last when there is no marker)—it is not equivalent to “always correct”; for sensitive decisions, you should still shorten the window, set
planReview: ignore, or turn offenabled. - Remember to restart
dsh webafter replacing plugin files. - Align with the
tool-ask-usertimedtimeout as described in the configuration section above.
Closing¶
dsh-plugin-auto-answer turns “wait for someone to click” into “on timeout, continue with the recommended option.” It is a Host workflow component for unattended sessions under DSH’s “everything is a plugin” philosophy. For install commands, configuration tables, and boundary notes, the GitHub README is authoritative.
- Community directory: https://www.skillhub.cn/plugins/AK-blank/dsh-plugin-auto-answer
- Repository: https://github.com/AK-blank/dsh-plugin-auto-answer