dsh-btw-live: Side Questions for Ongoing Sessions within DeepSeek Harness

Preface

When running long tasks in DeepSeek Harness (DSH), the main conversation often continues to call tools and stream output within the same turn. If you want to ask “what is the current status?” or “what does that error message mean?”, common practices include opening a new session, copy-pasting context, or waiting for the current turn to finish—the former fragments the context, while the latter disrupts the workflow. Fork-style bypass questioning also sometimes requires stopping the current turn to read the “current” state.

The following introduces the community plugin dsh-btw-live (maintainer neutron42-jp): it registers the /btw command in the Web session to ask a side question including the currently executing turn. Answers are displayed in a BTW card and are neither written to the conversation history nor entered into the context of subsequent model calls. The plugin is categorized as “Model Reasoning,” licensed under MIT, and the current package version is 1.4.1 (subject to the repository’s package.json).

What is this

dsh-btw-live is a Web-side bundle plugin for DSH (npm package name @local/btw-live). It registers the btw command on the host side and replaces the display of btw within conversation.chat.commandview on the browser side. It performs a single LLM call without executing tools or writing history.

Compared to “asking in a new session”: the model resolution order remains consistent with the session (unsent model selection → header of the previous request → default model), and it can read tool calls and results of the in-progress turn via session.snapshotEvents(), without needing to stop the main turn first.

Core Features

Based on the GitHub README and repository description, the verified capabilities are as follows:

  1. Bypass Single Inference: Compiles a transcript from the session log and calls the llm once via streaming. The result is returned via the text in command/done and is not attached to the main conversation chain.
  2. Covers In-Progress Turns: Reads events (including current turn tools and results) via session.snapshotEvents(). Unlike fork-style bypasses, you do not need to finish the turn to ask “what’s happening now.”
  3. Model and Reasoning Follow Session: Uses the current session’s provider / model / reasoning effort (adapter default if unspecified); only tightens the output limit (default maxTokens 4096). If the provider rejects this configuration, it will attempt a single retry with the same limit as the main session, following dsh-llm failure codes (e.g., EMPTY_RESPONSE, PI_AI_ERROR, TIMEOUT, TRANSPORT).
  4. Web Display: The answer is presented in the transcript as a BTW card supporting Markdown. Long text scrolls within the card, and clicking the title collapses it. While waiting, it displays “考えています…” (locales supported: ja / en / zh). Failures are shown in red, and successful cards auto-expand.
  5. Session Routing: The invocation carries the session id as sessionId (OpenCode systems route via x-opencode-session; a missing ID results in 400 MissingSessionID).

Environment and Dependencies

Item Requirement
DeepSeek Harness README validated on 0.2.1-rc.2 (uses conversation.chat.commandview slot)
Node.js 22 or above

The plugin runs under the current DSH process permissions. Please review the source code and MIT license before installation. The community directory skillhub.cn is an independent site with no official affiliation with DeepSeek / High-Flyer.

Installation and Activation

The installation method given in the official README is to use pnpm link for the local package in the Web profile directory (do not construct commands like dsh plugin add github:... that are not in the documentation).

Prepare the plugin directory locally first, then link it within the Web profile:

cd "${DSH_HOME:-$HOME/.dsh}/profiles/web"
pnpm add link:/path/to/dsh-btw-live

Add the bundle to the profile’s package.json under dsh.profile.bundles:

"bundles": [
  "@deepseek-ai/dsh-base",
  "@deepseek-ai/dsh-web-app",
  "@local/btw-live"
]

Restart dsh web and refresh the page. The client only scans bundles at startup, so a restart is mandatory for the first installation. Afterwards, if only client.js is changed, HMR can hot-reload.

Typical Usage

Use the slash command in the conversation input box, followed by your bypass question. README example (Japanese):

/btw いまどこまで進んだ?

In Chinese scenarios, you can use the same format, for example, to ask about current progress or clarify a tool result that just appeared. The specific wording is flexible, but the command name is fixed as btw.

Configuration Items

These can be changed in the plugin’s cordis.patch.yml under config (the table below shows the default values recorded in the README):

Key Default Meaning
maxEvents 80 Number of events to read (from the end)
maxChars 16000 Character limit for the compiled transcript
toolArgChars 300 Truncation length for tool argument display
toolResultChars 900 Truncation length for tool result display
maxTokens 4096 Maximum tokens for the bypass answer
timeoutMs 120000 Timeout for a single call (milliseconds)

Decreasing maxEvents / maxChars reduces context size but may miss earlier steps. A maxTokens that is too small is more likely to trigger failures with the limit configuration and enter the retry logic described in the README.

Failures and Troubleshooting

The card displays the outcome of each attempt per invocation (finish reason.kind and failure.code / HTTP status / message). Example format:

btw failed: no answer (#1 error PI_AI_ERROR HTTP 400 — …; #2 stop; provider=… model=…)

#1 represents the call with output limits; #2 represents the form with the same limits as the main session. If the second attempt succeeds, the interface still displays it as a success. Errors like authentication, quota, or context limits where “retrying the same form is useless” will not be blindly retried.

Suitable Scenarios and Notes

  • Suitable for: Temporarily confirming progress during long agent tasks, interpreting tool output from the current turn, or follow-up questions without wanting to pollute the main transcript.
  • Not suitable for: Questions requiring the bypass answer to be written back to the main conversation or relying on tool execution (this plugin explicitly does not run tools).
  • Notes: The bypass still consumes quota from the same provider. Transcript truncation is determined by the above configuration; in extremely long sessions, the earliest events may not be visible.

Conclusion

dsh-btw-live uses /btw to turn “asking a question to the current session (including in-progress turns)” into a one-time bypass inference. The answer remains in a BTW card and does not enter history. If you frequently use DSH Web for tool-based conversations, you can integrate it via the README’s link + bundles method.

  • Community Directory Page: https://www.skillhub.cn/plugins/neutron42-jp/dsh-btw-live
  • Source Code and Docs: https://github.com/neutron42-jp/dsh-btw-live
羽毛球分组比赛记分
小程序二维码

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

Xiaoye