dsh-webask: Forward Single-Line Questions to the Web to Save DSH Context

Introduction

DeepSeek Harness (DSH) resends the entire conversation history in every turn. This implies that even if you intend to ask a very brief, single-line question, it consumes tokens across the entire context window. This cost is unnecessary for verifying a simple concept or obtaining a quick definition.

The WebAsk plugin addresses this issue: it routes questions that are known to be very brief directly to DeepSeek’s free web chat, rather than letting them enter the DSH model conversation stream.

Plugin Overview

dsh-webask is a web-connected utility plugin focused on context conservation.

  • Positioning: Send single-line questions to DeepSeek’s web chat to avoid consuming DSH context.
  • Maintainer: DanZai233
  • License: MIT
  • Core Mechanism: Extract text from the DSH draft area via a plugin-provided button or global hotkey, copy it to the clipboard, and open the corresponding web chat in a new tab.

Core Features

The plugin implements the above functionality through three main mechanisms:

1. Composer Button

A button appears next to the DSH editor. Clicking it performs the following actions:
1. Extract: Takes the text you are editing from the draft.
2. Clear: Clears the draft via the official input action, ensuring the text never enters the model.
3. Copy: Copies the text to the system clipboard.
4. Navigate: Opens the configured target website in a new tab with parameters.

2. Global Hotkey Palette

Press mod+shift+k to summon a centered input box anywhere.
* Press Enter after typing a question to send it.
* Press Shift+Enter for a new line.
* Press Esc to close the palette.

The summoned palette features local history. Each question in the history can be:
* Reopened: Resent on the web interface.
* Copied: Copied to the clipboard again.
* Inserted back into Editor: Insert the answer back into the DSH editor for follow-up questions.

3. Settings & Multi-site Support

In the settings, you can configure:
* Target Site & Template: Supports various mainstream LLM web interfaces by default.
* Global Hotkey: Customize the summon shortcut.
* Clipboard Behavior: Toggle automatic copying.
* History: Toggle local history and set quantity limits.

The supported list includes: DeepSeek, Kimi, Qwen, Doubao, Tencent Yuanbao, Zhipu GLM, Gemini.

Installation & Activation

Install using the official plugin command. The plugin modifies the package graph, so you need to restart the corresponding profile after installation.

dsh plugin --profile web add dsh-webask

After restarting the profile, the plugin takes effect. You can verify if the configuration loaded successfully with the following command:

dsh --profile web --dump-config | grep -A2 webask

Typical Usage

  1. Enter a short confirmation question in DSH, such as “What is the latest version number of DeepSeek?”.
  2. Click the WebAsk button next to the Composer, or press mod+shift+k.
  3. The browser will automatically open a tab for the corresponding web chat and fill in the question (via the ?q= parameter).
  4. After viewing the result on the web, you can copy the answer and insert it back into the DSH editor to continue asking if needed.

Caveats & Principles

Before using, please understand the following facts:

  • ?q= is a community convention: Web interfaces usually do not automatically read the ?q= parameter from the URL; this is a community convention. The WebAsk plugin handles both “copying to clipboard” and “opening URL” steps to ensure the question reaches the web interface regardless.
  • Pure Local Storage: History and settings are only stored in the browser’s localStorage and are not uploaded to any server.
  • No Model Interaction: The plugin exists as an “empty mount row” and does not send any data to the model.
  • No Build Chain: The plugin does not rely on complex build tools and renders directly using React.createElement.

Summary

dsh-webask is a lightweight, privacy-focused, and simple-to-implement plugin. By redirecting non-core conversations to the web interface, it effectively solves the context waste problem in DSH when handling short Q&A, making it suitable for developers who wish to finely control token consumption.

  • GitHub Repository: https://github.com/DanZai233/dsh-webask
  • Community Directory: https://www.skillhub.cn/plugins/DanZai233/dsh-webask
羽毛球分组比赛记分
小程序二维码

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

Xiaoye