DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Plugin Auto Answer — DSH Plugin for DeepSeek Harness
← Plugins
P

dsh-plugin-auto-answer

Plugin Auto Answer

Answers ask_user_question with the recommended option when nobody replies in time, so an unattended DSH session keeps working

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:AK-blank/dsh-plugin-auto-answer#0147e9b83cd100b4532024f8907799741ce87429
READMECompatibilityVersions

Compatibility and provenance

Plugin Auto Answer is published as dsh-plugin-auto-answer and currently resolves to version 1.0.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/18/2026

Versions

1.0.0stable
10/18/2026

Related plugins

Loading related plugins…

Latest
1.0.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/18/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in agents-orchestration.

Headless@deepseek-ai/dsh-headlessThe dsh one-shot bundle: a direct core Agent/Session runner over dsh-base with no Host, HTTP, or browser layerExperimental Agent Team Profile@deepseek-ai/dsh-experimental-agent-team-profileAgent Teams collaboration, tools, and Web UI in one experimental bundleExperimental Ralph Bundle@deepseek-ai/dsh-experimental-ralph-bundleRun explicitly requested repeated work with fresh agents.Subagent Codex@deepseek-ai/dsh-subagent-codexOne-shot Codex subagent provider over the official app-server protocol

README

dsh-plugin-auto-answer

Unattended DSH sessions don't stall on ask_user_question.

When nobody answers a question within a configurable window, this Host plugin claims the request with the option the asker recommended — the (Recommended) / (推荐) label — and the agent keeps working. If you do answer in time, your answer passes through untouched and the plugin never intervenes.

Host-only bundle: nothing renders in the page, no browser half, no dependencies.

Known UI behaviour, by design — not a bug: with a browser page attached, the question card stays on screen after an automatic answer until you dismiss it (「提交」/「跳过」 or a page reload). The answer is already recorded and the turn has continued; see “The question card stays on screen after an automatic answer” below.

Install

# from GitHub (no build step: the source is the artifact)
dsh plugin --profile web add github:AK-blank/dsh-plugin-auto-answer

# from a local checkout while developing
dsh plugin --profile web add /absolute/path/to/dsh-plugin-auto-answer

dsh plugin add writes the package into the profile and selects its bundle layer, so the row shows up in the GUI's Plugins page and in dsh --profile web --dump-config (# == dsh-plugin-auto-answer → id: auto-answer).

Installing a new bundle activates it through HMR. Replacing an installed copy of this plugin needs a dsh web restart: Host module code is cached per process, so a changed lib/index.js is not reloaded by a re-apply.

How it works

ask_user_question is dispatched as the user-questions/request waterfall. The browser UI answers it by rendering a question card; in a headless run nothing answers it at all.

This plugin registers in front of that chain (prepend) and calls next() — it is a proxy, not a veto:

what happensresult
a human answers inside the windowtheir answer wins, unchanged
nobody answers before the deadlinethe recommended option is submitted
the next answerer fails outright (NO_PROVIDER with no page, transport ended)the window keeps running, then the recommended option is submitted
the tool's own timed window expired (ASK_TIMED_OUT)the recommended option is submitted immediately instead of returning pending
the turn is cancelled (ASK_ABORTED, signal aborted)propagated — a cancelled turn is never answered

The listener is registered with { global: true, prepend: true }. The global flag is not optional: Agent events are scope-filtered by the context a listener was registered on, and a plugin installed through the plugin manager is applied inside one agent's scope — without it the plugin would only answer the session that installed it.

Which option counts as "recommended"

  • An option label ending in (Recommended), (推荐), (推荐) or (Recommended), case-insensitively. The option does not have to be first.
  • The label is submitted verbatim: the marker stays in the answer, because it is the value the asker offered.
  • Multi-select questions take every marked option.
  • No marked option → fallback decides: first (default), last, or none (never answer, leave the question to a human).
  • A question without options has nothing to choose: freeText: skip submits an empty selection — the protocol's own "skipped" answer — while block leaves it open.
  • plan-review intents are ignored by default: approving a plan is a decision with consequences. planReview: approve / decline opt in explicitly.
  • A batch is answered only when every question in it can be answered; the answer contract requires one item per question, and a partial batch would hide a human decision.

Config

All keys are optional; the row's config overrides the defaults.

keydefaultmeaning
enabledtruemaster switch; false registers no listener at all
timeoutSeconds120window before the recommended option is chosen (5 – 86400)
fallbackfirstfirst | last | none when no option is marked
freeTextskipskip | block for questions without options
planReviewignoreignore | approve | decline for plan reviews
# in the profile's cordis.patch.yml, after every bundle layer
- id: auto-answer
  name: 'dsh-plugin-auto-answer'
  config:
    timeoutSeconds: 90
    fallback: first

With the tool's own timed mode, keep timeoutSeconds below tool-ask-user's timeout; otherwise the tool returns pending first and this plugin's answer never applies. The default blocking tool has no such constraint.

Observability

Host logs in dsh web are not visible in the terminal, so the plugin writes an optional JSONL trace:

DSH_AUTO_ANSWER_LOG=/tmp/auto-answer.jsonl dsh web
{"at":"2026-10-18T03:31:56.138Z","event":"armed","agentId":"session-…","timed":false,"questions":1,"timeoutMs":20000,"picks":[{"id":"color","selected":["蓝色 (Recommended)"]}]}
{"at":"2026-10-18T03:32:16.141Z","event":"answered","agentId":"session-…","reason":"window-elapsed","timeoutMs":20000,"picks":[{"id":"color","selected":["蓝色 (Recommended)"]}]}

Events: armed, answered, delegated (a human answered), delegate_error, failed. A broken trace path never breaks the question it describes.

Verified behaviour

Offline self-test (node selftest.mjs) — 39 checks over the package contract, config normalisation, the recommendation rules, the registration options, the timer races, and "No unhandled rejection / no leaked timer".

Real installation path: installed into a throwaway profile with dsh plugin add, confirmed as a bundle layer and row in dsh --profile … --dump-config, and visible on the GUI's Plugins page under 已安装 → 无人值守自动应答.

End-to-end on a live host (blocking tool as shipped):

  • unattended: 20 s window, question left open — the trace shows armed → answered exactly 20.003 s later with the recommended option, and the turn finished in 22 s with "你最终选择了蓝色(Recommended)。"
  • attended: 60 s window, the human picked the non-recommended option 24 s in — the trace shows armed → delegated (answered-by-ui), the turn finished with "你最终选了香蕉。", and the card collapsed to 1/1 已回答 normally.

The question card stays on screen after an automatic answer — this is not a bug

Expected behaviour, by design. Please don't file an issue for it.

ask_user_question is answered through a waterfall: the browser Client renders the question card and waits for the human's own submission, while the Host waits for whoever answers. This plugin answers on the Host when the window elapses, and the Host has no message that tells a Client its question was settled elsewhere. The card therefore stays where it was:

  • it remains in the transcript, and still occupies the composer;
  • the session row may keep reading 「等待回答」 (waiting for an answer).

Nothing else is affected. The ask_user_question result already carries the picked answer, the turn continues and finishes normally, and the recorded session data is correct — the stale card is browser state, not session state.

Dismiss it by clicking 提交 (submit) or 跳过 (skip), or by reloading the page. Submitting a stale card is harmless: the request was already settled, so no late answer is injected and no error is raised (verified). Reloading also clears the session-row label.

A Host-side plugin cannot remove that card: the card belongs to the Client's own request, and only the Client settles it. If a future plugin should close it automatically, that needs a Client-side change.

Out of scope

The plugin does not touch approval/request (tool approvals): auto-approving a command is a different risk class, and it is deliberately out of scope.

Development

node selftest.mjs     # offline: no Harness, no timer left behind, no browser

lib/index.js exports normalizeConfig, isRecommendedLabel, decideQuestion, planRequest, createRuntime (with injectable now / setTimer / clearTimer / trace) and apply — the self-test drives the same functions the Harness loads.

MIT.

Disclaimer

Unofficial plugin: not affiliated with, endorsed by, or supported by DeepSeek. "DeepSeek" and "DeepSeek Harness" are names/trademarks of their respective owners.